Mobile app version of vmapp.org
Login or Join
Martha676

: 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

@Martha676

Posted in: #Apache #Virtualhost #Windows7 #Xampp

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.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Martha676

3 Comments

Sorted by latest first Latest Oldest Best

 

@Pierce454

Remember, logs directory must exist before start server.

10% popularity Vote Up Vote Down


 

@Jamie184

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

10% popularity Vote Up Vote Down


 

@Gonzalez347

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme