SWE 432 PHP Deployment Instructions
13 Oct, 2008
All students of SWE 432 have been given an account on the web application (Hermes) cluster.
Your username should be the same as your GMU email account
and you should have gotten an email earlier in the semester with the password.
Please contact me immediately if you did not recieve this email!
If you do not remember your password,
you should contact the ITE support staff.
Their email is
system@ite.gmu.edu
and more information can be gotten from the Frequently Asked Questions pages:
http://labs.ite.gmu.edu/reference/faq_hermes.htm
and
http://labs.ite.gmu.edu/reference/faqs.htm
Please do NOT ask the ITE systems staff for help learning PHP,
debugging your program,
or using ssh / sftp.
Try to figure it out yourself and ask the instructor or the TA if you need help.
To deploy a PHP program on the Hermes cluster,
you will need to do the following:
-
If you are off campus, you will need to set up a VPN link to the Hermes cluster.
(Some of you had to do this to fill in the information form at the beginning of the semester.)
Instructions and software to download can be obtained from
http://labs.ite.gmu.edu/reference/ITE-vpn.htm.
(For security reasons, port 8080 is disabled except for GMU students and faculty.)
Once you have the VPN software installed on your computer,
you can establish the link with your GMU mail ID and password.
-
Login to the class's web apps server:
apps-swe432.ite.gmu.edu
hermes-web.ite.gmu.edu.
(We will use apps-swe432 for the servlets.)
Your username should be the same as your GMU username
and the password was sent to you by email.
Note that this is a Unix computer, not windows.
(Update: The web directory mentioned below was mounted on apps-swe432
Tuesday afternoon, October 16.
Now it does not matter which server name you log in to.
)
-
The first time you log in,
use the Unix command passwd to change your password.
-
Use sftp to upload files from your computer to your account on
hermes-web
and ssh to log in.
-
Once logged in,
put your PHP files in the directory
/data/hermes_web/USERNAME (where "USERNAME" is your username).
Use the Unix command
cp FILE /data/hermes_web/USERNAME (where "FILE" is the name of your file).
You can create a symbolic link (shortcut) to this directory from your home directory:
ln -s /data/hermes_web/USERNAME public_html
-
The web address for the PHP and HTML files on the Hermes cluster is:
http://hermes-web.ite.gmu.edu/.
So if your PHP program is named
hello.php
and your username is
gpburdell,
the URL to your PHP program will be
http://hermes-web.ite.gmu.edu/~gpburdell/hello.php.
An example in my directory is
http://hermes-web.ite.gmu.edu/~offutt/hello.php.
For more PHP examples, please see the
examples
on the class website.