setting DocumentRoot outside var/www/Apache2-default

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

r3luctan8
New php-forum User
New php-forum User
Posts: 5
Joined: Wed Jun 25, 2008 5:51 am

setting DocumentRoot outside var/www/Apache2-default

Postby r3luctan8 » 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

http://localhost/hworld.php
just gives me a 404.

Drew a blank at http://be.php.net/manual/en/, so time to post again; thanks in advance for your help.

Return to “PHP Installation”

Who is online

Users browsing this forum: No registered users and 1 guest