Your source for fun, free games-services-software
The PCman's Perl Scripts FAQ
The PCman's Perl Scripts FAQ
Our Perl Scripts FAQ
- Basic Requirements
- We are using Perl 5
- We need the ability to have and run scripts from a cgi-bin directory.
- The scripts were generally written for Unix, Linux servers.
- We use Sendmail.
- The scripts need the use of forms for the users input information.
- You need an FTP program to upload and one like WSFTP to change the permissions on the scripts to make them executable.
- You need to know your path to Perl and Sendmail.
- General FAQs
- All settings are made in the settings.txt file!
- NOTE: Everything we write is in lower case letters use them so you don't get any "Not Found" errors. In Unix / Linux the same word that is in
upper case and lower case are two different words or file names. In windows they are treated as the same. e.g. ascii.pl does not equal Ascii.pl or ASCII.PL !
- Did you check/change the top line of the .pl file to your servers perl path using Windows Notepad? Open up the .pl file in Windows Notepad and put the top line to point to your web servers Perl path !#/usr/bin/perl or !#usr/local/bin/perl.
It is set to !#/usr/bin/perl which will work most of the time.
- For the files in the cgi-bin directory make sure you upload these in Ascii mode!
- In the cgi-bin directory, chmod the .pl file "755", Chmod the others listed "644", except emailog.txt chmod it "666".
- Did you upload the cgi-bin directory files in Ascii and images in binary?
- Did you chmod the cgi-bin directory you created 755?
- Did you keep the directories and file names lower case?
- Did you correctly spell the directory and file names?
- Internal Server Error 500
- Did you upload the .pl file in ascii mode?
- Did you change the top line of the perl script to point to your servers Perl path?
- Did you set the permissions of the .pl file to 755? rwx-rx-rx
- Did you put in your site variables in the settings.txt file?
- When editing the settings.txt file did you erase or alter any quotes or semi-colons around your site variable entries?
- When you put your email address in the settings.txt file did you put a backslash before the @ sign like this: "email\@yourdomain.com"?
- Did you edit the .pl file using other than Windows Notepad? If so some editors can add extra characters to the .pl file thereby corrupting it.
Start with a new copy of the .pl file.
- File Not Found 404 Error
- When I push the Generate/Submit button I get a 404 error.
- Did you upload all of the files?
- Did you create the properly named(spelled) directories?
- Did you use lower case names?
- Does the action URL in the form point to the proper location where you put the perl script? Make sure it is where the form wants it to be.
- My images don't show up
- Did you upload the images?
- Did you upload them in binary mode?
- Did you name the images directory properly?
- Did you specify the location of the images in the settings.txt file?
- Did you use lower case characters when naming the images directory?
- If you used your own images did you name them what you named them in the settings.txt file?
- The page layout is all messed up
- Did you correctly modify the header and footer files? Try uploading the originals, if it is OK start again with your modifications.
New features are always added so check back often.