I use MySQl 5.0, PHP 5.12, Apache 2.055, Dreamweaver MX 2004, Windows XP+SP2 and use localhost to programme PHP.
I put all the php files under apache installnation directory "D:\Apache Group\Apache2\htdocs", and the project folder is Learn, so all the files are under "D:\Apache Group\Apache2\htdocs\Learn", and use Dreamweaver MX 2004 to set up the Local Server, Remote Server and Testing Server. But for Testing Server, I don't know what should I put under URL prefix? Because currently it is under "http://localhost:8080/Learn/Testing/"
Just wonder how do I change the php.ini or httpd.conf to let me change the php file location to other places?
I heard from my friend, something like VirtualHost is the place I need to modify.
Thank you.
How to change the php file location to other place?
Moderator: General Moderators
And what was unclear in the documentation for the Virtual Hosts? Btw, have you searched this forum since i've posted that section of my httpd.conf quite some times...
Btw, what you really need to read is the documentation for DocumentRoot.
Btw, what you really need to read is the documentation for DocumentRoot.
Well, this is probably the best entry point for reading up on Configuration Files.
-
hanxiao
- Forum Newbie
- Posts: 12
- Joined: Sun Apr 16, 2006 10:58 pm
- Location: Auckland, New Zealand
- Contact:
Yeah, thanks. I think I made it. I can uncomment and modify the VirtualHost section at the end of httpd.conf file, and also the NameVirtualHost to be the port I want to use for Apache.
So everything works. I can show the php page from the default directory and also other directories which are not under the Apache folder.
Thank you.
So everything works. I can show the php page from the default directory and also other directories which are not under the Apache folder.
Thank you.