Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
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
|
Posted: Sat 16 Sep '23 3:23 Post subject: I could not start the Apache in my Windows. |
|
|
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
|
Posted: Sat 16 Sep '23 5:18 Post subject: Re: I could not start the Apache in my Windows. |
|
|
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 |
|
Back to top |
|
|
|
|
|
|