| |
Cgi FAQ
- What is the path to perl, sendmail, etc?
The path to perl is /usr/bin/perl
The path to sendmail is /usr/sbin/sendmail
The path to date is /bin/date
- What is the full path to my home directory?
The document root for a virtual sites' web page content is: /home/public_html/sitename/web
For example, www.mattcas.com would have a document root of /home/public_html/www.mattcas.com/web
Only the site administrator can upload to this directory. Web content
in this directory is associated with the URL http://sitename/ .
For example, a file saved as:
/home/sites/sitename/web/testdir/test.html
would be accessed via the URL:
http://sitename/testdir/test.html
- Will my scripts work that I transferred
from my previous host?
Most scripts require at the very least some changes. With well written
scripts, any changes that are machine specific will be well documented
within the script. Most scripts will require changing the absolute
path references as listed above.
- When I run my scripts I receive an
'Internal Server Error'. Why?
Internal Server Errors or Misconfiguration Errors are general errors.
If you are receiving these errors than anything could be wrong. To
narrow the problem down, telnet to the server and run your script from
the command line. If your scripts run without errors from the command
line then your file and/or directory permissions are the most likely
cause.
- My scripts won't run, they did with my
previous host. Why?
Unlike most servers, the Unix server usually allows scripts to be run
from any directory. To allow this, the server must utilize stricter
security. Generally if a script runs on another server but fails to
run now, it is because the file permissions are not set correctly.
- How do I make my scripts 'executable'?
1. Telnet to the server. If you are using Windows, click on Start,
then Run. In the popup window type telnet yourdomain.com.
Login using your username/password.
2. Change directories by typing 'cd directory-name'. Replace 'directory-name'
with the name of your directory.
3. Generally most executable scripts are set to 755, so type 'chmod
755 script-name.cgi' . Replace 'script-name.cgi' with the name of the
script file.
4 Log out of the server by typing 'logout'
- Is there a debugger available for my
scripts?
Yes. To use the debugger your file names must end with '.cgid' or '.pld'.
|
|
| |
|
 |
|
|
>> 3.95/mo
• 200
Megs of storage
• 2
GB transfer
• up
to 5 domains and sub domains
• Full control
of your site
with Cpanel control
• bring your
site to life with
pre installed cgi scripts
• 50
email accounts you@yourwebsite.com
• optional
SiteBuilding software*
|
|
|
365 days
a year support |
|
Offline?
You can still leave us a message
Just click the above link
|
|