School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 306,973 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,850 people online right now. Registration is fast and FREE... Join Now!




Apache does not start after modification

 

Apache does not start after modification, \xampp\apache\conf\extra\httpd-vhost.conf

Autocrat

16 Oct, 2009 - 11:43 PM
Post #1

New D.I.C Head
*

Joined: 27 Sep, 2009
Posts: 46


My Contributions
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:

CODE
NameVirtualHost 127.0.0.1:80

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


CODE
<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: 16 Oct, 2009 - 11:44 PM

User is offlineProfile CardPM
+Quote Post


no2pencil

RE: Apache Does Not Start After Modification

16 Oct, 2009 - 11:47 PM
Post #2

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,488



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

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

Is Apache running as a service? start -> run -> services.msc
User is offlineProfile CardPM
+Quote Post

Autocrat

RE: Apache Does Not Start After Modification

17 Oct, 2009 - 04:05 AM
Post #3

New D.I.C Head
*

Joined: 27 Sep, 2009
Posts: 46


My Contributions
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).

This post has been edited by Autocrat: 17 Oct, 2009 - 04:07 AM


Attached thumbnail(s)
Attached Image
User is offlineProfile CardPM
+Quote Post

Autocrat

RE: Apache Does Not Start After Modification

18 Oct, 2009 - 12:27 AM
Post #4

New D.I.C Head
*

Joined: 27 Sep, 2009
Posts: 46


My Contributions
Hey guys, anyone?
User is offlineProfile CardPM
+Quote Post

X@MPP

RE: Apache Does Not Start After Modification

18 Oct, 2009 - 09:52 AM
Post #5

Techno4ever
Group Icon

Joined: 20 Feb, 2009
Posts: 744



Thanked: 1 times
Dream Kudos: 50
My Contributions
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 .

User is offlineProfile CardPM
+Quote Post

Autocrat

RE: Apache Does Not Start After Modification

19 Oct, 2009 - 07:57 AM
Post #6

New D.I.C Head
*

Joined: 27 Sep, 2009
Posts: 46


My Contributions
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
User is offlineProfile CardPM
+Quote Post

no2pencil

RE: Apache Does Not Start After Modification

19 Oct, 2009 - 05:19 PM
Post #7

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,488



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
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.
User is offlineProfile CardPM
+Quote Post

Autocrat

RE: Apache Does Not Start After Modification

21 Oct, 2009 - 05:50 AM
Post #8

New D.I.C Head
*

Joined: 27 Sep, 2009
Posts: 46


My Contributions
QUOTE(no2pencil @ 19 Oct, 2009 - 05: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.

You should have mentioned this before!
I was just missing a logs folder in my site folder. Thanks a lot.
User is offlineProfile CardPM
+Quote Post

no2pencil

RE: Apache Does Not Start After Modification

21 Oct, 2009 - 11:38 AM
Post #9

i R L33t Skiddie, k?
Group Icon

Joined: 10 May, 2007
Posts: 13,488



Thanked: 303 times
Dream Kudos: 2875
Expert In: Goofing Off

My Contributions
Sorry, I didn't see it earlier tongue.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 04:56AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month