FAQ – Websites

Websites and pages

How to I create my [CADE/CoE/Engineering] website?

With a CADE account, you have an e-mail address (username@eng.utah.edu) AND you can create a personal web page/site (www.eng.utah.edu/~username).

To get started, log in to a CADE Linux, Mac OS X or Windows machine (or access it remotely) and create a directory named public_html (or .public_html, either works fine) in your home directory (/home/username/). Place any site files (php, html, etc.) or any file you want accessible via your web page for download in that directory.

See the other FAQ’s on permissions and services for more details on those.

Permalink.

What web services does CADE offer?

We offer basic services such as: php, perl, cgi and html.

For more information on what these services are, read the following:

php info
perl info
cgi info
html info

We allow CGI (filenames should end in .cgi), allow Server Side Includes (filenames should end in .shtml) and allow PHP (filenames should end in .php).

For services beyond these, please contact us.

Permalink.

What permissions should I set my web pages to?

All of your web pages must be world readable. Run ‘chmod 644 *.html’ inside your .public_html directory or run ‘chmod -R 644 ~/.public_html/*.html’.

Permalink.

What permissions should I set my .public_html Directory to?

Your .public_html directory must be world readable. Run ‘chmod 755 ~/.public_html’ to achive this.

Note:  If you set up your site in public_html, instead of .public_html (notice the ‘ . ‘), change the command above accordingly.

Permalink.

What if I need to write with a CGI script?

In general, our WWW server doesn’t allow writing by the WWW server.

As long as the permissions on the script are 555 and it ends in .cgi, CGI scripts will run in all user home directories.

Permalink.

Can I use files created for tomcat in my site?

CADE offers a public tomcat server. Please send an email to opers@eng.utah.edu and we will gladly set it up for you.

Please note that the files will not work from within your public_html directory.

Permalink.

Does the CADE allow CGI scripts?

As long as the permissions on the script are 555 and it ends in .cgi, CGI scripts will run in all user home directories.

Permalink.

How do I lock files in my public_html directory?

The best way of doing this is to use a combination of a .htaccess file and a .htpasswd in the directory you would like to lock.

An easy way to generate these 2 files can be found here.

An example .htaccess file:

********Start***********
AuthName “Restricted Stuff”
AuthType Basic
AuthUserFile /home/YOUR_USERNAME/Path to .htpasswd file

require valid-user
********End***********
An example .htpasswd file:

************START**************

username:jdui43JIIO

************END*************
Note that you shouldn’t have the .htpasswd file in a web accessible folder.

Once you have made both files you need to change the permissions using:

chmod 655 .htaccess .htpasswd

Permalink.

What is my web address?

Your web address is: http://www.eng.utah.edu/~username/ where username is your CADE login name.

Permalink.

How does one fix a “Firefox is already running” error on a Linux machine?

When logged in to a Linux lab machine or compute server, you may get the following error when opening Firefox:
“Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.”

This may occur even though no evidence of Firefox running can be found.
To remedy this, open a Terminal and run the command: foxlock

It’s a script we wrote that will remove the necessary files from your .mozilla folder and allow you to open Firefox once again.

Permalink.

Can I get a MySQL database?

Yes, we have MySQL (mysql.eng.utah.edu) available for student use.

To request a database, send an e-mail to opers@eng.utah.edu and let us know you need one. We will create it and likely place a file in your home directory with the database name and your login credentials.

The databases are only accessible directly from the Linux machines in CADE (‘mysql -u username -h mysql -p’), although if there is a need, we can open them up to the Windows machines. If you place website files in your .public_html directory, you can make calls to the db, and thus access it from anywhere via www.eng.utah.edu/~username.

Permalink.