Running PHP etc on your PC or laptop

It is possible to install a webserver with PHP, Mysql, (and Perl) on your PC/laptop. There are packages available, which are very easy to install and run (just a single file to download). This page provides an overview of such packages. One example is WAMP. Because I don't use PCs, I have not tested any of these packages and cannot guarantee that they will be save to use.

If you happen to own a Linux or Mac OS X computer, you don't need to install anything because these tools should be preinstalled. You just need to start the webserver.

You are allowed to use your laptop for the coursework demonstration.

Using your i-drive

  • You can edit the files on the I:-drive using Notepad or WordPad because the I:-drive provides access to the same files as the telnet window. You will still have to execute Perl in the SSH window. If you do not have an I:-drive, you need to map it: Go to All Programs -> School of Computing -> Unix -> Map Unix drives.
  • You can save your files to a floppy or to another drive via the I:-drive.

    Some hints for working in the SSH window

  • Editor: jpico (or pico or vi).
  • Use the arrow keys to repeat a previous command.
  • Use the tab key to complete a filename.
  • In jpico, you can use Ctrl-K to delete/cut a line and Ctrl-U to get it back (paste). You can cut/uncut several adjacent lines in one go.

    Connecting from a home computer

    A secure shell (SSH) client is needed. On Linux and Mac OS X, such a client is usually preinstalled (type "ssh" at the command-line). For PCs there are several clients freely available for download, such as PuTTY. Please, note that using and installing PuTTY on your home computer is at your own risk. Please, further note that encryption software such as PuTTY may be illegal is some countries (but PuTTY seems to be legally ok in the UK at the moment). The address for the server is

    Some general Unix commands

    Change to mydirectorycd mydirectory
    Create newdirectorymkdir newdirectory
    Remove (delete) olddirrmdir olddir
    Move (rename) olddir to newdirmv -i olddir newdir
    Show name of current dir.pwd
    Allow others to read and execute files in current directory chmod go+rx .
    List files in current
    List all (incl. hidden)files, with detailsls -la
    Show contents of myfile more myfile
    Move (rename) oldfile to newfilemv -i oldfile newfile
    Copy origfile to duplicatefilecp -i origfile duplicatefile
    Remove (delete) oldfile rm -i oldfile
    Allow others to read/change sharedfilechmod go+rw sharedfile
    Show the first few lines of largefile head largefile
    Show the last few lines of largefiletail largefile
    Edit a text filenano or emacs or vi or pico
    Find commands related to keywordman -k keyword
    Read manual for command man command
    Find true name of cmdwhich cmd
    Show environment variablesprintenv
    Change environvariablesetenv environvariable value