Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

setting DocumentRoot outside var/www/Apache2-default

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

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.
r3luctan8
New php-forum User
New php-forum User
 
Posts: 5
Joined: Wed Jun 25, 2008 5:51 am

Return to PHP Installation

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.