logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: I could not start the Apache in my Windows.
Author
ganhuilin



Joined: 15 Sep 2023
Posts: 1
Location: Manchester, Greater Manchester, England, United Kingdom

PostPosted: Sat 16 Sep '23 3:23    Post subject: I could not start the Apache in my Windows. Reply with quote

I have typed the below:
> C:\Program Files\Apache\Apache24\bin>httpd.exe

This is the error appears:
> httpd.exe: Syntax error on line 39 of C:/Program Files/Apache/Apache24/conf/httpd.conf: ServerRoot must be a valid directory

Anybody have any idea why? Thank you!
Back to top
axel.kam



Joined: 11 Jul 2023
Posts: 7

PostPosted: Sat 16 Sep '23 5:18    Post subject: Re: I could not start the Apache in my Windows. Reply with quote

Please edit the C:/Program Files/Apache/Apache24/conf/httpd.conf file:

1. 37 line change to:
Define SRVROOT "C:/Program Files/Apache/Apache24"

2. Do not change 39 line, it must remain:
ServerRoot "${SRVROOT}"

3. And, of course, before use the Apache http server, please read documentation Smile
Back to top


Reply to topic   Topic: I could not start the Apache in my Windows. View previous topic :: View next topic
Post new topic   Forum Index -> Apache