Students and staff in the School of Computer Science & Informatics, can upload and publish their own websites on the School's project and users Web servers. One way to administer your sites – to structure the sites and upload, edit or remove pages – is to use the web-based adminstration application described here.
The Website Administration Application is a web application which you can use to
upload files to your website and perform other administrative tasks.
Connect your browser to the website administration program by going to URL
Enter your user name and password and click
Choose the website you want to administer –
projectfor the project web server
usersfor the users web server
Once you have chosen the website, click the
Select website button.
The program shows you the current files and directories which make up your website.
In the following, there are no web page files and just one directory,
This is the initial state of a user's website file space.
To upload a file from your local workstation, click on the
This will pop up a browser that you can use to locate the file on your local file
system. For example, here we have located
first.html in directory
/home/eg on the local workstation.
Click on the
to copy the file from your local system to your website
on the users server.
The file now appears in the contents of your
The file first.html can be viewed over the web at URL
If it is renamed index.html, it will appear as the default page when
Rename/Change Mode alongside the file name to rename the file.
properties window can also be used to change the access modes of a file.)
index.html and click on the
Apply changes button
to change the name
of the file.
To delete a file, or a directory and all its contents, click on the
rubbish bin icon
which appears besides the
name. An appropriate confirmation alert pops up.
You can create a directory within your website file space by entering its
name in the
Create a new directory field and clicking on
Make directory button.
For example, this will create a directory called hobby.
The directory appears in the listing of files and directories in your
Click on the directory's name to make the website administration program
display the new directory.
Now you can upload files to the new directory.
You can upload a TAR or zip archive containing files for your website.
For example, suppose we have a file
site.zip on our local workstation
containing HTML, PHP and other files and directories for the
sub-site. We can browse and locate the file for uploading as before.
The zip file is listed with an extra
Extract Files option
Extract Files to extract the files from the archive and place
them in the
Note that files and the sub-directory general which were contained in the zip archive, have been created in the website file space.
We should now remove the file
site.zip and change the modes of the PHP files to make them
Extract Files option will work for TAR files as well as for zip files,
and it will cope with compressed (
.bz) TAR files too.
You can download a file from your website by clicking on its name in the directory listing.
When files are downloaded, your browser will look at the file type (usually by looking at the extension part of the file name). The browser may give you the choice of opening or saving the file.
For example, in
Windows Internet Explorer, click on the
to save the file to your file space.
In Firefox, select the
Save to Disc option
and click the
The administration application can also download an entire directory, or even the whole website, as a single zip file. Click on the
option alongside a sub-directory or current directory entry in the lists of files and directories.
The files and sub-directories in the directory you have chosen are archived into a zip archive file.
In Internet Explorer, click the
button to save the zip file to
your filespace. Later, you can unzip it with the Windows zip application to
extract the files into your local file space.
In Firefox, choose the
Save to Disc option
and click the
On Linux, you can later extract the files with the unzip command or archive manager.
Suppose we have the following in file test-my-cgi on our local workstation.
#!/bin/bash echo "Content-type: text/html" echo echo "<p>This is a test CGI script.</p>" echo "<p>The date is " date echo ".</p>"
To install this on your website, change the directory in the website administration
program by clicking on
cgi-bin. Then upload the file from
your local workstation as described above.
The file now appears in the listing of directory
The URL for this CGI script would be
But note that the access mode of the file is
rw. This means
read/write. It needs to be executable in order to run as a CGI script.
If we try to access it as it is, we will get an error message.
Go back to the website administration program
and click on
Rename/Change Mode to change the access mode of
Execute/search permission checkbox and click the
Apply changes button.
Now the script will run when we access
in a browser.
to finish administering the website, and visit your site
on the users or project server
to see that you
have achieved the result you expected.