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: Apache doesn't start with a ServerRoot error
Author
emulman



Joined: 28 Apr 2006
Posts: 3
Location: Italy

PostPosted: Wed 04 Nov '15 20:43    Post subject: Apache doesn't start with a ServerRoot error Reply with quote

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: 3058
Location: Hilversum, NL, EU

PostPosted: Fri 06 Nov '15 12:03    Post subject: Reply with quote

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


Reply to topic   Topic: Apache doesn't start with a ServerRoot error View previous topic :: View next topic
Post new topic   Forum Index -> Apache