![]() |
Perlaccess : Tutorials : General Installing Script in Unix (1.2) by Jacob A. Wheeler http://www.bigresources.com |
| A
unix-based OS has to be the most common operating system for
web servers. If you do-not have perl installed on your system,
you can find it here: http://www.perl.com/CPAN If you will be using FTP to upload your scripts to your web server, be sure to always upload the files in Ascii mode. (Compared to the default setting, binary) The next thing you need to do is make your script executable. To make a script executable you will need to change the permissions of the script to 755. The following unix command is used for changing permissions: chmod 755 Again, if you are transfering files through FTP you will need to do some things differently. To change the permissions of a file through FTP, you will need to right mouse click on the file you would like to change permissions on. Then click on "Chmod (Unix)" . A little window, with checkboxe's will pop-up. Check all checkboxes so they look similiar to the snapshot below:
(Screenshot from Ws_FTP v5.08 - Free!) Then click ok. Your file should now be chmod'd to 755! A note about file extensions. Some common extensions for cgi/perl scripts are ".cgi" and ".pl". Depending on how your apache server is setup both may work. CGI (Common Gateway Interface) is the most widely used extension for scripts that are ran through a web browser. And PL is common for scripts that are run from a unix shell. But like I said, it is possible to work either way. |