Page 1 of 1

PHP.ini deafult directory

PostPosted: 16. April 2005 19:58
by crash75uk
I'm trying to change the php deault directory from it's default (C:\apachefriends\xampp\htdocs) to another part of my pc unsuccessfully.

Tried searching for the php.ini to change it but managed to find 11 php.ini file on my disc????

I'm using xampp.

So which one do i change and is it as simple as changing the doc root to
doc_root = "c:/bloody/thing/"?

PostPosted: 16. April 2005 20:26
by Wiedmann
I'm trying to change the php deault directory from it's default (C:\apachefriends\xampp\htdocs) to another part of my pc unsuccessfully.

You mean your document_root?

That's a configuration option from Apache (httpd.conf) and not PHP (php.ini).

PostPosted: 16. April 2005 20:46
by crash75uk
Did try editing the httpd.conf file first but that didn't seem to work, so assumed i was doing things wrong and tried the php.ini.

it current says

DocumentRoot "C:/Apache/htdocs"

but it the actual location php is running from is "C:\apachefriends\xampp\htdocs"

I originall edited this line and the <Directory "C:/Apache/htdocs"> line.

PostPosted: 16. April 2005 21:05
by crash75uk
ok, looks like i edited the wrong httpd.conf file, but fixed that and still doesn't work with the correct httpd.conf file. and now my localhost has stopped working, aaargh.