Where is sendmail, perl, and date located?
Some CGI scripts require to supply the system path to certain system binaries. Here is some information you may need:
| Sendmail |
/usr/sbin/sendmail |
|
Perl |
/usr/bin/perl |
|
Date |
/bin/date |
|
Remote Host Directory |
/yourdomain-www/ |
|
Script URL |
http://www.yourdomain.com/cgi-bin/script.pl |
|
Home directory |
/home/yourusername/yourdomain-www/ |
What version of perl do you support?
What file extensions can I use for CGI scripts with Doctor PC?
What do I need to fix if I'm getting a "500 Internal Server" error?
First, make sure you read ALL of the instructions that came with the CGI script.
Second, make sure that you upload your CGI script in ASCII format. Your FTP client should allow you to choose between either ASCII(or plain text), Binary(or images), or auto. Select ASCII. If you upload your CGI script in Binary mode, it will put a "^M" at the end of every line in the file, which causes problems with CGI scripts.
Third, if your CGI script is a perl script, make sure the top line says:
#!/usr/bin/perl
Fourth, contact the author of the script, many scripts have user help forums for people who are having trouble installing a program.
What do I need to fix if I'm getting a "Forbidden" error?
owner - read, write, and execute
group - read, and execute
other - read, and execute
When it asks you to set the permissions to 777 it will have these permissions:
owner - read, write, and execute
group - read, write, and execute
other - read, write and execute
How do I use Server Side Includes?
So a practical example is to include a file, eg. test.txt into a page.
The syntax for it is:
To show the date of the last time the html document was updated, you can use a SSI like this: