Monday, August 4, 2008

403 Error After Restructuring Files

I was trying to move my site (sbiz) from /home2/sbiz to /home/sbiz so I did
cp -R /home2/sbiz /home
I then changed the appropriate lines in my httpd.conf (documentRoot) and restarted apache to be greeted with a 403 Forbidden error when accessing a page. This was an easy fix.

cp -rp /home2/sbiz /home

The '-p' switch preserves permissions. I am not sure what copying did exactly to the permissions but this was the fix.

No comments: