Public_html Permissons

awww

Verified User
Joined
Jun 29, 2010
Messages
9
The Zip Function on my server only works when the Public_html Folder is set to 777 This is dangerous i know the Public_html folder should be set to 750 or 755.But once i put it to 750 i get the 404 Not Found error and also .Once i set it to 755 The script on my server doesnt read the Zip_extension ive talked to the coder or my script and he has said its not his code but its the permissons. Here are the Ownership of the Public_html folder

ls -ald /home
drwx--x--x. 5 root root 4096 Aug 29 07:21 /home

ls -ald /home/admin
drwx--x--x 7 admin admin 4096 Sep 3 21:56 /home/admin

ls -ald /home/admin/public_html
lrwxrwxrwx 1 admin admin 37 Aug 29 08:06 /home/admin/public_html -> ./domains/domain.com/public_html

ls -ald /home/admin/public_html/config.php
-rwxr-xr-x 1 admin admin 1707 Sep 3 02:49 /home/admin/public_html/config.php

Can anyone tell me please what to do as im stuck
 
public_html is just a symbolic link to domains/domain.com/public_html
 
i did that it still turns off the zip_extension i dont know what to do
 
If it is a permission problem you need to switch your webserver install to use mod_ruid, php-fpm or fastcgi so everything executes as the user and not as the webserver user. There are many guides on the forum on how to switch things.
 
Back
Top