I have a dev box running and i changed the path of the vhost from /home/username/www to /home/username/public_html.

Retarted apache and now the site is giving me a 403 when i visit the site and php isnt working now either.

The server is centos 5.5 x64, php is 5.3.5

Any help is appriciated.



I am referring the portions between "




Document root and "Directory" directive are different.

DocumentRoot /home/username/public_html
<Directory /home/mobile/www>

Make that same.

Also make sure that there is at least one file in DocumentRoot with any of the following name

index.html index.htm index.php index.php4 index.php5

Check acccess permission to this folder and to parent folder. Drfault permission to user's homedir in CentOS is 700 (rwx for owner, no access to any other user).

  • @Paul: I did chmod 0777 /home/username/, no luck – Kyle Hudson Mar 31 '11 at 14:58
  • @Kyle Hudson: ouch, please do not do that unless you do not care about the safety of your server and others. 777 means that anyone can read and write to it. – Lekensteyn Mar 31 '11 at 15:03
  • @Lekensteyn: It was only a temp measure to ensure it wasn't a simple permissions error. I will restore the permissions when this issue is resolved. Thanks for the concern :) – Kyle Hudson Mar 31 '11 at 15:09
  • @Kyle Hudson: You said you've chmodded /home/username to 777. That's not recursive, have you tried chmod +rx /home/username/public_html? – Lekensteyn Mar 31 '11 at 15:14
  • @lekensteyn: No change – Kyle Hudson Mar 31 '11 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.