Litespeed + webmin

#1
CentOS, litespeed, webmin-virtualmin, proftp, mysql

Hi.
i have created virtual host in webmin and in litespeed. now i have issue with "Document Root". when i change it to "/home/nadirloc/" everything works fine. But i must place my php files under directory "/home/nadirloc/" and it's not secure. But when i change doc root to "/home/nadirloc/public_html/" it shows error "*path /home/nadirloc/public_html/ is not readable".

I am new to linux, can anyone help me?
 
#3
drwxr-x--- 8 nobody nadirloc 4096 Feb 23 16:29 /home/nadirloc

drwxr-x--- 3 nadirloc nadirloc 4096 Feb 23 15:33 /home/nadirloc/public_html
 

NiteWave

Administrator
#4
looks your php is running as "nobody". need grant "nobody" read and execute permissions. current permission of /home/nadirloc/public_html is 750.

try:

chmod 751 /home/nadirloc/public_html

if still fail, try

chmod 755 /home/nadirloc/public_html
 
#5
with 751 it worked fine.

but now i have another problem. i can read one sties files and folders from another with php.

how i can prevent this?
 
Top