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.

3 Answers 3



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:\windows\system32\drivers\etc\hosts”. Open the file in Notepad and simply add;       localhost       urServerName

Also add to check errors;

ErrorLog        ErrorLog @rel_logfiledir@/urServerName-error_log  

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


Remember, logs directory must exist before start server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.