Quote:
Originally Posted by
elduderino
I have a question about something i can't work out....if i use ftp to transfer files ( php, html, javascript files mainly) to my server. The files have to go into a directory named httpdocs to be later parsed by the server. When i connect to my server via ssh and search for the httpdocs directory it doesnt show up....why is this? Does this folder not exist? I need to find out where that directory is in unix so i can specify it as the document root when i'm creating virtual hosts in my apache httpd.conf.
Most likely ... your ftp'ing into a virtual user most likely, though you may be named the same thing, the virtual user is setup to run as the same user id as your webserver (so it doesn't have ownership/permission issues with files)
Your ssh account on the other hand is not the same user as the webserver and if it was this would be somewhat bad policy wise (potentially all the ssh users could then have access to your webserver's family jewels)
If your intent on seeing where the httpdocs REALLY are you need only look to the webserver's environmental variables for DOCUMENT_ROOT or what not (just dump the entire ENV to the screen to see) it might be something lilke "/cust/webfarm/u/unix.com/httpdocs/" from looking there. then you can ssh to the server and "cd "/cust/webfarm/u/unix.com/httpdocs/" and get a permission denied.
This would because you could access things like SQL database passwords and what not.
Things could be setup otherways, obviously your hosting website has some documentation for this or support.