Results 1 to 7 of 7
Hi All,
Trying to change the root directory away from /var/www to a subfolder in my home folder (sick of using root to get around). What I did was this:
...
- 08-11-2011 #1
Error 403 for Apache After Changing Root Directory
Hi All,
Trying to change the root directory away from /var/www to a subfolder in my home folder (sick of using root to get around). What I did was this:
sudo gedit /etc/apache2/sites-available/default
Changed Document Root and Directory to /home/user/Documents/PHP
I then changed my PHP folder to 777.
Before the change my test php worked fine, now it's spitting out a 403 error. Any help would be appreciate
These are the instructions I followed for changing the directory:
Configuring the PHP Development Environment in Linux UbuntuBodhi 1.3 & Bodhi 1.4 using E17
Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17
"The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"
- 08-11-2011 #2
Every directory from / to your site will need read and execute permissions. Take a look at this tutorial for ideas on setting up development web servers
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 08-12-2011 #3
I do have both permissions as it is my home folder, I have made it executable and put permissions at 777 and it still fails
Bodhi 1.3 & Bodhi 1.4 using E17
Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17
"The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"
- 08-12-2011 #4
Ah but does the user or group www-data have read and execute permission? That's who runs Apache. Or user httpd on the Red Hat based systems.
If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 08-12-2011 #5
How do I go about doing that? I added my user to the www-data group, I also checked the folder properties but I don't see www-data in the drop down menu for permissions. Thanks again
Bodhi 1.3 & Bodhi 1.4 using E17
Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17
"The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"
- 08-12-2011 #6
Did you look at the tutorial I linked to?
The way that does it is to change the group on the folders to www-data. It also creates the sites outside of your home directory so that no additional users need access to that. It definitely works on LMDE.If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 08-12-2011 #7
solved! thanks Elija
Bodhi 1.3 & Bodhi 1.4 using E17
Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17
"The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"


Reply With Quote