homepage Welcome to WebmasterWorld Guest from 54.227.67.210
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
what does base UNIX directory mean?
Acternaweb




msg:914540
 12:37 pm on Jun 13, 2001 (gmt 0)

what does base UNIX directory mean?
Is this right?
$config = "/usr/home/directory/directory/filename";

or

$config = "/usr/home/public_html/directory/directory/filename";

this is the url:
www.domainname.com/testing/cgi-bin/filename

Thanks for your help

 

sugarkane




msg:914541
 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.

Acternaweb




msg:914542
 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.

Paul

mivox




msg:914543
 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.

evinrude




msg:914544
 6:52 pm on Jun 13, 2001 (gmt 0)

If you are allowed PHP scripts try this:
---------
<?
phpinfo();
?>
---------

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.

sugarkane




msg:914545
 8:24 am on Jun 14, 2001 (gmt 0)

Good point evinrude, I hadn't thought of that. The same idea in Perl:

#!/usr/bin/perl

print "content-type: text/html\n\n";

print "$ENV{DOCUMENT_ROOT}";

Acternaweb




msg:914546
 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?

evinrude




msg:914547
 5:00 pm on Jun 14, 2001 (gmt 0)

Hmmmm...another thought...

The first line of a perl script is generally something along the lines of:
#!/usr/bin/perl

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved