Go Back   Cloud Computing > Support > vps hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-17-11, 21:38
BOD Member
 
Join Date: Aug 2011
Posts: 76
Default LiteSpeed unable to add new domains -- permissions issue?

I've long used LSWS via shared hosting, but this is my first attempt to set it up in a VPS. Specifically, the standard free version. I have LiteSpeed installed, but I can't create new domains from the LSWS admin panel. I think it lacks write permissions to the '/home/domains' folders. How do I change permissions from SSH? I don't remember the syntax. I was going to change the entire '/home' to write permissions, assuming that's a good admin policy.
Reply With Quote
  #2 (permalink)  
Old 10-18-11, 16:51
carl owen's Avatar
Super Moderator
 
Join Date: Nov 2008
Posts: 1,061
Default

This is possible if you enter the commands given below with the given instructions.

cd /home
ls -l (list domains in /home folder)
chmod 644 or 755 (depends on file or folder respectively) filename or foldername
e.g. chmod 644 filename
chmod 755 foldername
If you wish to set permissions recursively (for subfolders and files)
chmod 644 * -R
chmod 755 * -R (with precautions)

If something goes wrong and you wish to reset all permissions, you can enter the commands given below with the given instructions.

find . -type f -exec chmod 644 {} \; # Set 'rw-r--r--' for all files.
find . -type d -exec chmod 755 {} \; # Set 'rwxr-xr-x' for all folders.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 22:55.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.