|
The following are details you will need to know
if you are installing scripts on the server.
It is important to note that these items do not apply
to all scripts and it is important to consult the README or
INSTALL files with your script to determine exactly what they
are looking for.
At the top of your PERL scripts
you should have:
#!/usr/bin/perl
Our path to sendmail is:
/usr/sbin/sendmail -t -i
Please note the following paths
below. Please make sure you replace user with whatever
your username is and also YourDomain with your domain name.
/home/user/www.YourDomain.com/htdocs - This is your web files
/home/user/www.YourDomain.com/cgi-bin - This is the path to your cgi directory
and this is also where all cgi programs should be stored. When you are trying to access your cgi-bin
from a browser, you can access it by going: http://www.yourdomain.com/cgi-bin/filename.cgi
Also, if you call a cgi program
from within a html file, then use:
http://www.yourdomain.com/cgi-bin/filename.cgi
Your cgi programs can end in .cgi
OR .pl
The following is ONLY EXAMPLES
AND MAY NOT APPLY to your script.
We are showing you this ONLY as an example, however you
should read your install manual in detail to determine what
your values should be.
The following would be am example
for the domain controlpanelsupport.com in a given script.
Base directory:
The script said:
$basedir=’/home/directory/www.yourdomain.com/htdocs’
so we replaced that line with:
$basedir=’/home/contro/www.controlpanelsupport.com/htdocs’
SERVER SIDE INCLUDES
If your script calls for server side includes then you will want
to use .shtml extension. If you are calling the script from within
an html page, then you want to refernce it as follows.
1. Make sure your domain has been totally transferred to our company.
If you are accessing your site at our preview link, you should wait
to test your CGI and programs that use SSI when you can type in
your domain name and your site comes up.
2. Files should end in .shtml
3. Do not display have the absolute path like: /home/user/domain/cgi-bin/cgi.pl
However, have: /cgi-bin/cgi.pl
an example would be: <!-- #exec cgi="/cgi-bin/counter.cgi" -->
Please note that there is no spaces between <!-- and the #
If you are using SSI to insert text files into pages, then you
want to put the text file in your htdocs directory and call it for
example:
Header.txt
Then in your .shtml file where you are calling the document use:
<!--#include virtual="Header.txt"-->
|