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: Apache doesn't start with a ServerRoot error |
|
Author |
|
emulman
Joined: 28 Apr 2006 Posts: 3 Location: Italy
|
Posted: Wed 04 Nov '15 20:43 Post subject: Apache doesn't start with a ServerRoot error |
|
|
i have formatted my PC (with windows 10 pro 64 bit) and reinstalled apache 2.4.17 and PHP 5.6.15. But from the line command when i give a "httpd -k install" i receive the error
"httpd: Syntax error on line 37 of C:/Server/Apache/conf/httpd.conf: ServerRoot must be a valid directory"
in the line 37 of httpd.conf i put
ServerRoot "C:/Server/Apache"
so why httpd.conf don't find this directory???? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Fri 06 Nov '15 12:03 Post subject: |
|
|
Apache installed in C:/Server/Apache ?
In the inluded readme:
- Unzip the Apache24 folder to c:/Apache24 (that is the ServerRoot in the config).
Default folder for your your webpages is DocumentRoot "c:/Apache24/htdocs"
When you unzip to an other location, change ServerRoot in the httpd.conf,
and change in httpd.conf the Documenroot, Directories, ScriptAlias,
also when you use the extra folder config file(s) change to your location there. |
|
Back to top |
|
|
|
|
|
|