How to install a Perl script

What you will need:

·     Get the QuizFaber perl script files.

Actually, QuizFaber supplies the following Perl script: QmakeCGI.pl, QmakeCGIQuery.pl, QmakeCGITop.pl and QmakeCGITopView.pl.
After the installing this software, the script files are copied into your QuizFaber destination directory (as it has been defined in the setup procedure), into the folder 'cgi-bin'.

·     A text editor: to make changes in the perl script files. For example, Windows users can use Notepad, and UNIX users can use vi or emacs.
·     An FTP program: to move (upload) the perl script files onto your server. There are many available, such as WsFTP (http://www.ipswitch.com) for Windows. Also, you should know how to change the permissions of a file with your FTP program.
·     An account on a web server, for example a hosting service (provider).

Configure the script

In order to run QuizFaber scripts, you'll have to modify only the first two lines of each perl script file with the correct path to the Perl interpreter, that it should appear after '#!',  and the absolute directory (for example your home directory) where to store the archive file (with quizz results).
Contact your System Administrator (or your hosting service) if you want to ignore this information, or

1) If you have a Linux/Unix web server, type at the command line:

  which perl

You should see something like this:

  /usr/bin/perl

This is the path to your Perl interpreter. So you should change the first line of the Perl script (for each script) as follows:

  #!/usr/bin/perl

In order to know the path of your home directory, type at the command line, just after login:

  pwd

You should see something like this:

  /usr/local/vhosts/my_domain.com/

This is called 'Home Directory'. From this directory, you can choose a (new or existing) directory where to create your archive file. If you decide to store the archive file in this directory, you should change the second line (for each script) of the Perl script as follows:

  $file_path = '/usr/local/vhosts/my_domain.com/';

It is very important that you add the slash (/) at the end of the directory name.
Also, in some cases, you should create an empty archive file (then setup the file permission with chmod 666 my_file.log). Obviously, the name will be the same as that one choosen in the server settings of QuizFaber