Welcome to WebmasterWorld Guest from 54.158.240.147

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)

Full Member

10+ Year Member

joined:Aug 16, 2005
posts:240
votes: 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.
5:47 pm on Sept 25, 2006 (gmt 0)

New User

5+ Year Member

joined:July 6, 2006
posts:23
votes: 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]

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 22, 2004
posts:1082
votes: 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
6:17 pm on Sept 25, 2006 (gmt 0)

Administrator

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

joined:July 31, 2003
posts:12541
votes: 1


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 Sept 25, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Aug 16, 2005
posts:240
votes: 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?

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

Full Member

10+ Year Member

joined:Aug 16, 2005
posts:240
votes: 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...
11:18 pm on Sept 26, 2006 (gmt 0)

Senior Member from KZ 

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

joined:Jan 10, 2005
posts:2889
votes: 5


/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 Sept 30, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Aug 16, 2005
posts:240
votes: 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.