Apache Syntax Error Serverroot Must Be A Valid Directory
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings serverroot must be a valid directory apache windows and policies of this site About Us Learn more about Stack Overflow serverroot must be a valid directory mac the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation xampp serverroot must be a valid directory Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it
Httpd.conf Serverroot Must Be A Valid Directory
only takes a minute: Sign up Apache could not be started - ServerRoot must be a valid directory and Unable to find the specified module up vote 8 down vote favorite 1 I'm using xampp portable server and I'm having some trouble with Apache http server, it says "ServerRoot must be a valid directory" Command line output: Please close this command server root must be a valid directory xampp only for Shutdown Apache 2 is starting ... httpd.exe: Syntax error on line 35 of K:/../../../xampp/apache/conf/httpd.conf: ServerRoot must be a valid directory Apache could not be started I checked the line 35 of xampp/apache/conf/httpd.conf and it was: ServerRoot "/xampp/apache" Which doesn't exist. My folders are: K:/../../../xampp/apache/conf <- where the httpd.conf is K:/../../../xampp/apache/ <- the server root K:/../../../xampp/apache/modules <- where server modules are If i change (at line 35) to ServerRoot ".." It says: Please close this command only for Shutdown Apache 2 is starting ... httpd.exe: Syntax error on line 65 of K:/../../../xampp/apache/conf/httpd.conf: Cannot load modules/mod_access_compat.so into server: Unable to find the specified module Apache could not be started I checked, and modules/mod_access_compat.so exists, so i can't figure out how to fix it. Any help will be appreciated apache httpd.conf share|improve this question edited Mar 16 at 19:30 Roman C 34k133559 asked Jan 27 '13 at 15:13 BackSlash 11.6k63775 add a comment| 8 Answers 8 active oldest votes up vote 11 down vote Just run setup_xampp.bat from shell and the paths should be set automatically for the portable versi
comments Last post Thu, 10/10/2013 - 01:28 #1 Community documentroot must be a directory (not verified) apache doesnt start on Windows(works on linux)
Cannot Load Modules/mod_access_compat.so Into Server
http://community.southpawtech.com/tactic-sys-admin_sys-admin_install-tac... i followed this to install tactic enterprise and apache. While tactic is working,
Cannot Load Modules/mod_actions.so Into Server: The Specified Module Could Not Be Found.
apache is not. I tried the same for linux and i can run tactic through apache and its fine. In windows when http://stackoverflow.com/questions/14548768/apache-could-not-be-started-serverroot-must-be-a-valid-directory-and-unable-to i start apache, it gives me this error. Any idea or any page on how to properly run tactic through apache for Windows(7)? Image: Top Log in or register to post comments Thu, 10/24/2013 - 10:43 #2 oboreo If you have Skype or certain security software http://community.southpawtech.com/content/apache-doesnt-start-on-windowsworks-on-linux running blocking the port, it could cause Apache not starting. Top Log in or register to post comments Mon, 10/28/2013 - 11:16 #3 albert To determine the exact error, run the Apache executable directly from the command line. eg. "C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\httpd.exe" Albert Top Log in or register to post comments Mon, 10/28/2013 - 12:35 (Reply to #3) #4 X-jo (not verified) C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin>httpd.exe httpd.exe: Syntax error on line 35 of C:/Program Files (x86)/Apache Software Fou ndation/Apache2.2/conf/httpd.conf: ServerRoot must be a valid directory C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin>httpd.exe Syntax error on line 177 of C:/Program Files (x86)/Apache Software Foundation/Ap ache2.2/conf/httpd.conf: DocumentRoot must be a directory fixed those, and it started working. Thanks a bunch Top Log in or register to post comments Main menu Get Started Docs Forum Downloads Plugins Support
contribution towards the costs, the time and effort that's going in https://www.apachelounge.com/viewtopic.php?p=31999 this site and building. Thank You! Steffen Apache Lounge is not sponsored by anyone.Your donations will help to keep this site alive and well, and continuing the building of the binaries. Apache doesn't start with a ServerRoot error Apache Forum Index -> Apache View previous topic must be :: View next topic Author Message emulmanJoined: 28 Apr 2006Posts: 3Location: 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 must be a 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 SteffenModeratorJoined: 15 Oct 2005Posts: 2405Location: 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 Apache Forum Index -> Apache Page 1 of 1