Why cant i find my ftp directories in the unix structure


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Why cant i find my ftp directories in the unix structure
# 1  
Old 02-13-2008
why cant i find this directory?

Hi,

I'm new here so hello to everyone...i'm also new to linux/unix but got my first dedicated server about 2 weeks ago and have been using ssh to configure it on ubuntu linux.

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.

Last edited by elduderino; 02-13-2008 at 08:11 PM..
# 2  
Old 02-13-2008
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.
# 3  
Old 02-14-2008
Hi,

Thanks for the reply...i found it in the end....turned out to be in a directory called vhosts inside /var/www.....i have plesk software installed on my server so thats why i couldnt originally find it where httpd.conf said it should be....

Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Structure of find command

I am assuming questions about find command have been asked many times, however I couldn't find in the old threads what I was looking for. I want to know the basic structure of find command. I believe it is something like that: find <paths> <conditions> <actions> Does each command finally... (6 Replies)
Discussion started by: Rameshck
6 Replies

2. HP-UX

FTP the whole file structure

Hi I need to ftp the whole file structure from various unix servers to a windows server I have a sub script for each machine and am using ftp -is:../%name%_prog.bat -i %server% on the windows side. The problem then comes with the mget command it gets all the files , but puts them in one... (4 Replies)
Discussion started by: madmacher
4 Replies

3. UNIX for Dummies Questions & Answers

Using grep command to find the pattern of text in all directories and sub-directories.

Hi all, Using grep command, i want to find the pattern of text in all directories and sub-directories. e.g: if i want to search for a pattern named "parmeter", i used the command grep -i "param" ../* is this correct? (1 Reply)
Discussion started by: vinothrajan55
1 Replies

4. UNIX for Dummies Questions & Answers

find mv and create directory structure

Hi there, I'm trying to pull all my flacs out of my Music collection. I can do it with following command find b/ -name *.flac -exec mv {} flac/ \; which works great except it moves all the flac files to the flac folder. I want it to recreate the original folder the flacs were found in and mv... (8 Replies)
Discussion started by: fistikuffs
8 Replies

5. Shell Programming and Scripting

How to find 777 permisson is there or not for Directories and sub-directories

Hi All, I am Oracle Apps Tech guy, I have a requirement to find 777 permission is there or not for all Folders and Sub-folders Under APPL_TOP (Folder/directory) with below conditions i) the directory names should start with xx..... (like xxau,xxcfi,xxcca...etc) and exclude the directory... (11 Replies)
Discussion started by: gagan4599
11 Replies

6. Shell Programming and Scripting

find size, cp breaks directory structure

I'm using this now: find /some/path/with/sourcefiles -type f -size -7M -exec /bin/cp -uv {} /some/path/ \; but it doesn't preserve the directory structure, also I've tried it with find /some/path/with/sourcefiles -type f -size -7M -exec /usr/bin/rsync -auv {} /some/path/ \; but that doesn't... (9 Replies)
Discussion started by: unclecameron
9 Replies

7. UNIX for Dummies Questions & Answers

Find a tree structure in software modules

I have a list of software funtions in tcl code. Some of these functions call other functions. I want to build a tree structure of all called functions. Right now I list all the functions into a file then read this file so that I can cat each function and grep for EXECUTE (command that calls... (0 Replies)
Discussion started by: MissI
0 Replies

8. UNIX for Dummies Questions & Answers

FTP Directories

Hi Unix Gurus, Been trying to find a thread on this matter but somehow it's not related. I'm trying to ftp a few directories from Unix to the Wintel server but somehow its not working at all :( i've tried to use mput but mput is only working for files but not directory. any suggestion... (1 Reply)
Discussion started by: lweegp
1 Replies

9. Shell Programming and Scripting

stop unix find on a directory structure after finding 1st occurrence

Hi, Has anyone tried to restrict Solaris 10 unix find on a large directory structure based on time to stop running after finding the first occurrence of a matching query. Basically I'm trying to build up a usage map of user workspaces based on file modification (week/month/3 months/year etc) and... (3 Replies)
Discussion started by: jm0221
3 Replies

10. HP-UX

URGENT: UNIX FTP cannot find path error

Dear all We are currently working on to install some ERP system in wjhich we need to FTP from unix to windows 2000 machine We run ./lodrun to get files from d/xxxxx/xxxx directory but the ftpoutput.log file shows following error FTP: xxxxxxxxx system cannot find the path specified... (1 Reply)
Discussion started by: minix
1 Replies
Login or Register to Ask a Question