: Under an Xampp install, I modify the apache httpd-vhosts.conf file and then my Apache server will not start I have read all the articles but still must be doing something wrong... I modified
I have read all the articles but still must be doing something wrong... I modified the httpd-vhosts.conf file to access the project I am working on... I have tried many different configurations and none work. My apache service will not start (I am on Windows 7)... any ideas would be helpful - here is the code I added to the conf file:
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
DocumentRoot C:/xampp/htdocs/socengv1"
ServerName socengv1.local
I have also tried this with NameVirtualHost *:80 command with no difference to note.
More posts by @Martha676
3 Comments
Sorted by latest first Latest Oldest Best
Go to this link and I you will find the solution in my case it was SQL
How to Solve Port 80 Problems When Running Apache on Windows
First;
add port to your ServerName
< VirtualHost *:80 >
DocumentRoot C:/server/htdocs
ServerName localhost:80
< /VirtualHost >
Second Chance, give a different name to ServerName and add the ServerName to the windows hosts file, this is located in “C:windowssystem32driversetchosts”.
Open the file in Notepad and simply add;
127.0.0.1 localhost
127.0.0.1 urServerName
Also add to check errors;
ErrorLog ErrorLog @rel_logfiledir @/urServerName-error_log
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.