setting DocumentRoot outside var/www/Apache2-default

Forum for you who has PHP installation issues

Moderators: egami, macek, gesf

Post Reply

Wed Jun 25, 2008 9:03 am

I'm going to be developing and testing - sounds impressive, doesn't it ;-} - on my local machine and uploading the results to my ISP. To edit my php files comfortably, I'd like them to live somewhere under /home so I don't have to mess with permissions.

PHP 5 on ubuntu 7.10 has a file called httpd.conf in /etc/apache2. I've added the line

Code: Select all

DocumentRoot /home/ngn/projects/phpDocRoot
, saved the file, restarted ... and trying to open

Code: Select all

just gives me a 404.

Drew a blank at, so time to post again; thanks in advance for your help.

Post Reply