homepage Welcome to WebmasterWorld Guest from 54.196.136.119
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
how to create folders in SSH?
sodani




msg:3096193
 4:54 pm on Sep 25, 2006 (gmt 0)

I need to create a folder using SSH because I can't do it with my FTP program due to some permissions issue. Can someone tell me how to navigate to a particular domain.com and then create a folder in SSH? I know how to log in, but that's about it.

 

Karabaja




msg:3096253
 5:47 pm on Sep 25, 2006 (gmt 0)

You can navigate with "cd" command which will take you to a desired folder, like: cd /path/to/desired/folder
You can create folder with "mkdir foldername"

[edited by: Karabaja at 5:47 pm (utc) on Sep. 25, 2006]

benevolent001




msg:3096262
 5:55 pm on Sep 25, 2006 (gmt 0)

can you use some program like putty? just see that then connect to your server and do what ever you want using commands of linux

coopster




msg:3096316
 6:17 pm on Sep 25, 2006 (gmt 0)

PuTTY is an SSH client. Alternatively, if you would like to use a graphical user interface (GUI), there is an open source project named FileZilla [filezilla.sourceforge.net] that actually incorporates PuTTY as it's SSH connection engine. Now you have a graphical interface to your SSH client.

sodani




msg:3096372
 6:55 pm on Sep 25, 2006 (gmt 0)

Okay, I'm getting the following error from my CMS

mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /var/www/vhosts/domain.com/httpdocs/files/images owned by uid 48 in /var/www/vhosts/domain.com/httpdocs/includes/file.inc on line 91.

I'm pretty sure that I need to change the access for that folder. Can someone tell me how to do that?

sodani




msg:3096377
 6:58 pm on Sep 25, 2006 (gmt 0)

Another thing is that when I try to go to
/var/www/vhosts/domain.com/httpdocs/files/images in SSH, it says permission denied...

lammert




msg:3098349
 11:18 pm on Sep 26, 2006 (gmt 0)

/var/www/vhosts/domain.com/httpdocs/files/images owned by uid 48

Another thing is that when I try to go to
/var/www/vhosts/domain.com/httpdocs/files/images in SSH, it says permission denied...

On many Linux distributions, user id 48 is reserved for the user "apache" which runs the httpd server. These error messages indicate that the folder is owned by the httpd server user and is not accesible by a user logging in under another name. If you want to change the ownership, or change the access rights of this directory, you either have to do this as user apache, or as user root. With your limited experience on the SSH command line, I would be very careful to execute any command as root.

sodani




msg:3103843
 11:00 pm on Sep 30, 2006 (gmt 0)

I actually figured out a way around it. I went into plesk, deleted the folder, and the created a new folder giving it the proper permissions. I know it's not the most efficient way to do this, but it works.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
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