I have a web server running apache and php5 installed by xampp, since 2006 it has been running a single web site without issue. Now we want to add a second so here's what I did.
Added the following to the httpd-vhosts.conf file
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName www.site1.com
DocumentRoot “C:/xampp/htdocs/site1folder”
ErrorLog “C:/xampp/htdocs/site1folder/errorlog”
DirectoryIndex index.html index.php index.html
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName www.site2.com
DocumentRoot “C:/xampp/htdocs/site2folder”
ErrorLog “C:/xampp/htdocs/site2folder/errorlog”
DirectoryIndex index.html index.php index.html
</VirtualHost>
Then I uncommented this line within httpd.conf
# Virtual hosts
Include "conf/extra/httpd-vhosts.conf"
When I restarted apache I got this:
The Apache service named reported the following error:
>>> [Thu Feb 03 17:29:42 2011] [warn] module php5_module is already loaded, skipping
and apache would not start.
I checked for two instances of LoadModule php5_module, which there is not.
Soooo, why when I enable virtual hosts does php5 try to load twice?