How can fix 404 Forbidden

xuancong6000

Verified User
Joined
Oct 12, 2012
Messages
79
I had do this:

Code:
find /home/*/domains/*/public_html -type f -exec chmod 0644 {} \; -print
find /home/*/domains/*/private_html -type f -exec chmod 0644 {} \; -print
find /home/*/domains/*/public_html -type d -exec chmod 0755 {} \; -print
find /home/*/domains/*/private_html -type d -exec chmod 0755 {} \; -print

Code:
find /home/*/domains/*/public_html -name "*.pl" -exec chmod 0744 {} \; -print
find /home/*/domains/*/private_html -name "*.pl" -exec chmod 0744 {} \; -print
find /home/*/domains/*/public_html -name "*.cgi" -exec chmod 0744 {} \; -print
find /home/*/domains/*/private_html -name "*.cgi" -exec chmod 0744 {} \; -print
then it had problem:( demo; http://hostingdomainpro.net/info.php
please help me fix it thanks
 
Last edited:
It seems to be working. You must of fixed it. I dont see any errors with your commands though. It might have been a ownership permission problem not a chmod issue.

You can also try:

Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh user_homes
 
It seems to be working. You must of fixed it. I dont see any errors with your commands though. It might have been a ownership permission problem not a chmod issue.

You can also try:

Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh user_homes
Yes thanks alot I had fixed:)
 
Back
Top