|
|||||
|
GUIDE How do I install a perl script? You need the following before you start.
Find out the location of perl on your server. its usually at /usr/bin/perl. Open hello.cgi using notepad and edit the first line to #!/usr/bin/perl ie. #! followed by the location of the perl script. Connect to your server using the FTP software and change to the /cgi-bin/ directory on your server. Sometimes you have to create this directory. An FTP software can upload via two methods. ASCII or Binary. For Script we change the method of upload to ASCII and upload the file. Now change hello.cgi on the servers property to 755. This is usually done by right clicking on the file name. This tells the server that the file is a executable file. To check if your script works, using your browser go to http://www.yourdomain.com/cgi-bin/hello.cgi. (Replace yourdomain.com with actual domain). You should get the output "Hello Word" on your browser screen. A sample of the Hello World script can be got here. |
|||||
|
|
|||||