Linux Hosting : Paths
The paths to Perl and sendmail are located on the main page in your CPanel control panel. Typically these are: Perl - /usr/bin/perl and sendmail - /usr/sbin/sendmail
Paths on a CGI generated page should be full or relative URL
from the script location unless you include a BASE reference in
the <head></head> for a different location. It may
be best to include the whole URL path for links and image sources
in CGI generated pages so the browser can find the images even
if you move the script.
- Example:
- print qq(<p><img src="/~user/images/some.gif">\n);
Paths for files you open in a script for reading or
writing should be UNIX or system paths relative to the script
or full path from root (which may differ from your shell root).
- Example:
- open (FILE, "/home/machine/user/public_html/log.txt");