problem on suphp

sadeghkz

Verified User
Joined
Apr 18, 2014
Messages
9
hi guys
i have problem on suphp
installation suphp on my server and :
all site error : forbidden 403


plz help me
 
./build clean
./build autoconf
./build automake
./build libtool
./build suphp
./build apache
./build rewrite_confs
service httpd restart

Please check you folders and files permessions.
755 Folders and 644 files.
Thanks
 
fixing the permissons

Hello Again
IF you Installing suphp from this way :
Code:
cd /usr/local/directadmin/custombuild/
./build set php5_cgi yes
./build set php5_cli no
./build all d
./build rewrite_confs

Now after suphp is installed on the server. You will need to fix phpMyAdmin, Roundcube and squirrelmail
Code:
./build roundcube
./build squirrelmail
./build phpmyadmin

No you can fix the permissions of all the files and folders of the users:
Code:
for i in `/bin/ls /usr/local/directadmin/data/users/` ; do chown -R $i.$i /home/$i/domains/* ; echo $i ;done 
for i in `/bin/ls /usr/local/directadmin/data/users/` ; do find /home/$i/domains/ -type f -exec chmod 644 {} \; ; echo $i ;done
for i in `/bin/ls /usr/local/directadmin/data/users/` ; do find /home/$i/domains/ -type d -exec chmod 755 {} \; ; echo $i ;done

Regards , Hossein
 
Hello Again
IF you Installing suphp from this way :
Code:
cd /usr/local/directadmin/custombuild/
./build set php5_cgi yes
./build set php5_cli no
./build all d
./build rewrite_confs

Now after suphp is installed on the server. You will need to fix phpMyAdmin, Roundcube and squirrelmail
Code:
./build roundcube
./build squirrelmail
./build phpmyadmin

No you can fix the permissions of all the files and folders of the users:
Code:
for i in `/bin/ls /usr/local/directadmin/data/users/` ; do chown -R $i.$i /home/$i/domains/* ; echo $i ;done 
for i in `/bin/ls /usr/local/directadmin/data/users/` ; do find /home/$i/domains/ -type f -exec chmod 644 {} \; ; echo $i ;done
for i in `/bin/ls /usr/local/directadmin/data/users/` ; do find /home/$i/domains/ -type d -exec chmod 755 {} \; ; echo $i ;done

Regards , Hossein



tanx you hossein IzaD...
The work done

And the problem is not solved
 
...

tests this way :
Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
nano options.conf

Just replace the following:
Code:
php5_cli=no
php5_cgi=yes


With:
Code:
php5_cli=yes
php5_cgi=no



And start "./build php n".



and if not solving read http://help.directadmin.com/item.php?id=176 may helps more.
 
Back
Top