Running XAMP on Win 8 64. New machine.
Have been running XAMPP for a few weeks with work in sub directories hanging off htdocs without any real problems.
Downloaded a currently operational website and to make it work properly (document root addressing etc) wanted to create a simple virtual host setup. I did this once before with very clear, simple instructions without problems. This time found so much conflicting stuff and I cannot restart Apache after an edit of httpd.conf.
I get error message:
1:49:55 PM [Apache] Error: Apache shutdown unexpectedly.
1:49:55 PM [Apache] This may be due to a blocked port, missing dependencies,
1:49:55 PM [Apache] improper privileges, a crash, or a shutdown by another method.
1:49:55 PM [Apache] Press the Logs button to view error logs and check
1:49:55 PM [Apache] the Windows Event Viewer for more clues
1:49:55 PM [Apache] If you need more help, copy and post this
1:49:55 PM [Apache] entire log window on the forums
I had edited etc in drivers to:
127.0.0.1 ot48
127.0.0.1 sanetext
127.0.0.1 saneText22
127.0.0.1 alohaenergy
127.0.0.1 unify
127.0.0.1 myexample
127.0.0.1 test etc etc (10 directories)
Reading Apache info and other places edited httpd.conf to add:
Listen 80
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
DocumentRoot c:/xampp/htdocs/ot48
ServerName ot48.loc
</VirtualHost>
<VirtualHost 127.0.0.1:80>
DocumentRoot c:/xampp/htdocs/sanetext
ServerName sanetext.loc
</VirtualHost>
<VirtualHost 127.0.0.1:80>
DocumentRoot c:/xampp/htdocs/saneText22
ServerName saneText22.loc
</VirtualHost>
<VirtualHost 127.0.0.1:80>
DocumentRoot c:/xampp/htdocs/alohaenergy
ServerName alohaenergy.loc
</VirtualHost>
Grateful for any suggestions
EDIT Should have said that if I remove the edits in httpd.conf Apache starts no problem
httpd -t
?