I tried dozens of guides and read a ton of information, but I still canβt find a solution to the problem. I uninstalled, reinstalled and checked and double checked every possible problem.
The problem remains. No matter what change I make, the document root ALWAYS displays as c: \ wamp \ www.
Even if I changed the httpd.conf DocumentRoot to a different path, it still displays as c: \ wamp \ www
Which is strange, if vhost was configured incorrectly, my index.php should not display. But actually it is. And I have a line of code for the echo $_SERVER['DOCUMENT_ROOT'] , and it ALWAYS displays as c: \ wamp \ www, and NOT ANY of the roots of the vhosts document that I assigned.
Thus, the pages load, of course, with errors. My ALL reference $_SERVER['DOCUMENT_ROOT'] and ALL pages work fine on my live sites.
So, on the bottom line, I checked my configurations back and forth. / vs. \, the hosts file is correct, the document root paths are correct and point to the actual folders containing the correct files. I played with every βstandardβ and non-standard configuration option.
There must be some other element that does not allow this to work. Please help if you can.
Please do not suggest me try a different configuration. I tried them all.
Please tell me, do you know why this is happening and how to fix it. I'm on a script that almost did the trick, but feel like it is not. I left a message for the poster and did not hear an answer from him.
I hope someone has a fix, not an offer to try another configuration. If you do not know about the problem and do not correct the error, please do not respond. It may seem rude, but I saw and tried all the configs.
NameVirtualHost 127.0.0.1:80 <VirtualHost 127.0.0.1:80> DocumentRoot C:\wamp\www\itsaboutwirelessnetworks ServerName itsaboutwirelessnetworks.localhost ServerAlias itsaboutwirelessnetworks </VirtualHost> <VirtualHost 127.0.0.1:80> DocumentRoot C:\wamp\www\computerstore ServerName computerstore.localhost ServerAlias computerstore </VirtualHost> <VirtualHost 127.0.0.1:80> DocumentRoot C:\wamp\www ServerName localhost ServerAlias localhost </VirtualHost>
This is the config. Why can't I edit with carriage return in comments?