Apache does not start after modification

\xampp\apache\conf\extra\httpd-vhost.conf

Page 1 of 1

8 Replies - 3073 Views - Last Post: 21 October 2009 - 12:38 PM

#1 Autocrat  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 4
  • View blog
  • Posts: 307
  • Joined: 27-September 09

Apache does not start after modification

Posted 17 October 2009 - 12:43 AM

I have XAMPP Lite installed. Apache starts well from the control panel after a clean install, however, when I append the following information to the bottom of the above mentioned file, Apache does not show "running" upon clicking "Start" in the control panel:

NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1:80>
  DocumentRoot C:/xampp/htdocs/
  ServerName localhost
</VirtualHost>


<VirtualHost example.local>
  DocumentRoot "C:\path\to\your\site"
  ServerName example.local

  CustomLog "C:\path\to\your\site\logs\example.local.access.log" combined
  ErrorLog "C:\path\to\your\site\logs\example.local.error.log"

  <Directory "C:\path\to\your\site">
	Options Indexes FollowSymLinks
	AllowOverride All
	Order allow,deny
	Allow from all
  </Directory>
</VirtualHost>


I have modified the second bloc of code to point to my website and I have been using it under XP, I face this problem only under Vista.

This post has been edited by Autocrat: 17 October 2009 - 12:44 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Apache does not start after modification

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5388
  • View blog
  • Posts: 27,383
  • Joined: 10-May 07

Re: Apache does not start after modification

Posted 17 October 2009 - 12:47 AM

This has nothing to do with PHP : Moved to Web Hosting

Is Apache running as a service? start -> run -> services.msc
Was This Post Helpful? 0
  • +
  • -

#3 Autocrat  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 4
  • View blog
  • Posts: 307
  • Joined: 27-September 09

Re: Apache does not start after modification

Posted 17 October 2009 - 05:05 AM

Here.

When I click Start in front of Apache, the given output appears, but Apache does not show Running.

This problem came up when I modified the above mentioned file to append the given code (that is needed to configure my site).

Attached image(s)

  • Attached Image

This post has been edited by Autocrat: 17 October 2009 - 05:07 AM

Was This Post Helpful? 0
  • +
  • -

#4 Autocrat  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 4
  • View blog
  • Posts: 307
  • Joined: 27-September 09

Re: Apache does not start after modification

Posted 18 October 2009 - 01:27 AM

Hey guys, anyone?
Was This Post Helpful? 0
  • +
  • -

#5 X@MPP  Icon User is offline

  • 僕わ馬鹿ですね?
  • member icon

Reputation: 36
  • View blog
  • Posts: 1,014
  • Joined: 20-February 09

Re: Apache does not start after modification

Posted 18 October 2009 - 10:52 AM

that happens to me a lot if im running Skype or something that trys to auto connect to the internet, what you can do is Re-install Xampp and then on a fresh install have nothing but XAMPP and Apache running, if it stops,than its a service/and or process that is running .
Was This Post Helpful? 0
  • +
  • -

#6 Autocrat  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 4
  • View blog
  • Posts: 307
  • Joined: 27-September 09

Re: Apache does not start after modification

Posted 19 October 2009 - 08:57 AM

I changed the file back to default, and now Apache is starting all right. When I add the block of code, the problem appears again. Could anyone optimize that code apropos this site:

autocrat.local
E:\autocrat.web\

Maybe I did not modify this file correctly: C:\xampp\apache\conf\extra\httpd-vhost.conf
Was This Post Helpful? 0
  • +
  • -

#7 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5388
  • View blog
  • Posts: 27,383
  • Joined: 10-May 07

Re: Apache does not start after modification

Posted 19 October 2009 - 06:19 PM

It's my understanding that the vhost is going to need access & error logs of it's own. Check your apache logs, it should say EXACTLY why it won't start.
Was This Post Helpful? 1
  • +
  • -

#8 Autocrat  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 4
  • View blog
  • Posts: 307
  • Joined: 27-September 09

Re: Apache does not start after modification

Posted 21 October 2009 - 06:50 AM

View Postno2pencil, on 19 Oct, 2009 - 05:19 PM, said:

It's my understanding that the vhost is going to need access & error logs of it's own. Check your apache logs, it should say EXACTLY why it won't start.

You should have mentioned this before!
I was just missing a logs folder in my site folder. Thanks a lot.
Was This Post Helpful? 0
  • +
  • -

#9 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5388
  • View blog
  • Posts: 27,383
  • Joined: 10-May 07

Re: Apache does not start after modification

Posted 21 October 2009 - 12:38 PM

Sorry, I didn't see it earlier :P
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1