FAQ – Websites

Websites and pages

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

With a CADE account, you can create a personal web page/site hosted from your home directory and viewable at www.eng.utah.edu/~username.

To get started, log in to a CADE Linux, Mac OS 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, and html.

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

php info
perl info
html info

We 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.

Does the CADE allow CGI scripts?

Not anymore. The usage dwindled, and they pose a security risk.

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.

If you place website files in your .public_html directory, you can make calls to the db, and thus access it from anywhere via eng.utah.edu/~username.

Permalink.