all your php files need to be in one location. you can setup virtuahost to allow you to run php scripts from multiple locations. if you have a domain name, then see the virtualhost section of my manual. if you do not have a domain name then you can just use different ports instead of domain names
http://httpd.apache.org/docs/2.0/vhosts/examples.html#portthe way apache is setup to use port 80. and when you access apache, it severs files from
c:\wamp\www. we are going to add another port for apache to use. when you use that new port, apache will serve files out of your
f:\ drive.
open
httpd.conf (c:\wamp\apache2\conf\httpd.conf ) and find:
Listen 80below that add:
Listen 8080then find this line:
#Include conf/extra/httpd-manual.confremove the pound sign ( # ) in front to enable this setting. change it to:
Include conf/extra/httpd-manual.conf
now open httpd-manual.conf (c:\wamp\apache2\conf\extra\#Include conf/extra/httpd-manual.conf ) and find:
#NameVirtualHostchange it to this:
NameVirtualHost *80
NameVirtualHost *:8080then below the
NameVirtualHost setting add these line:
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp\www
</VirtualHost>
<VirtualHost *:8080>
ServerName localhost
DocumentRoot F:/Your/Folder/Here
</VirtualHost>now, change the
F:/Your/Folder/Here above to what folder on your
f:\ drive you want to use for your php files.
now save all the files you just edited and restart apache for the new setting to take effect.
so, to now access php files in the default wamp directory
c:\wamp\www use:
http://localhostto access the php files now located on your
f:\ drive use:
http://localhost:8080CyberSpatium----------------------WAMP English Forum Admin
Need help? Check out my
WAMP User Manual/Guide here!
Cellular Phone Deals - The Best on the Net! -
FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a
FREE cellular phone with
FREE shipping!
Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in geek speak, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.
Mortgage and Home Loan Advice:Clarify Loans