Welcome to WebmasterWorld Guest from 54.166.46.226

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

how to create folders in SSH?

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

5+ Year Member



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.
5:47 pm on Sep 25, 2006 (gmt 0)

5+ Year Member



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]

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

WebmasterWorld Senior Member 10+ Year Member



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
6:17 pm on Sep 25, 2006 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.
6:55 pm on Sep 25, 2006 (gmt 0)

5+ Year Member



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?

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

5+ Year Member



Another thing is that when I try to go to
/var/www/vhosts/domain.com/httpdocs/files/images in SSH, it says permission denied...
11:18 pm on Sep 26, 2006 (gmt 0)

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



/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.

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

5+ Year Member



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.