| 4:52 pm on Jun 13, 2001 (gmt 0)|
Unfortunately there's no single answer to this - it all depends on the setup of your server. If you have telnet access to your server, you can find out by typing 'pwd' from the directory where your .html files reside, but if not your hosting company should be able to tell you.
| 6:27 pm on Jun 13, 2001 (gmt 0)|
Unfortunately, the company that is hosting my site told me I do not have telnet access because I share the server with too many people and they have security issues if I have telnet access. I asked them to give me the Unix directory, (and told them where the file currently resides, but have not heard back).
Are there standard ways that severs are setup that I could find out through trial and error?
I am getting a: No such file or directory error message. I know the file is on the server, but guess I have the Unix directory wrong.
I appreciate your help and expertise.
| 6:33 pm on Jun 13, 2001 (gmt 0)|
It may be a case of miscommunication with your host... ask them specifically what the "file path" is to your html directory.
On one of my accounts the path to my cgi-bin is /home/username/virtual/cgi-bin, on another account it's /home/username/public_html/cgi-bin... and I've seen others that were much longer and more convoluted.
| 6:52 pm on Jun 13, 2001 (gmt 0)|
If you are allowed PHP scripts try this:
In the resulting page look for the section labled Apache Environment. The first thing listed should be Document Root, which may be what you are looking for.
| 8:24 am on Jun 14, 2001 (gmt 0)|
Good point evinrude, I hadn't thought of that. The same idea in Perl:
print "content-type: text/html\n\n";
| 12:39 pm on Jun 14, 2001 (gmt 0)|
My ISP finally got back to me, "/usr/local/www/virtual/shellname/cgi-bin/superguestconfig <-- where
'shellname' enter your ftp username."
I tried this, but am still being told it can not find the file. Any advice?
Do you put the perl code at the top of the script?
| 5:00 pm on Jun 14, 2001 (gmt 0)|
The first line of a perl script is generally something along the lines of:
This tells the script where to find the perl interpreter. If this line does not match the actual location Perl on the system you are using it will generate a File Not Found error ("No such file or directory") On an old FreeBSD system I have an account on, for example, the admin installed it to /usr/local/bin/perl. You might wanna check the location.