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:
If you use an actuall version there is a "setup_xampp.bat/.sh" script in the root directory. The path has to be absolute but the script changes all needed paths to your current location.
I checked the line 35 of xampp/apache/conf/httpd.conf and it was:
ServerRoot "/xampp/apache"
Which doesn't exist. ...
Create the directory, or change the path to the directory that contains your hypertext documents.
Use the drive letter with forward slashes to get started (c:/apache/...).
Make sure your ServerRoot
in httpd.conf points correctly to the Apache path. Otherwise you will see this message for every further module.
Examples:
/etc/apache2/apache2
for Linux"C:\Program Files\Apache24"
for WindowsServerRoot "xampp\apache"
ServerRoot "D:\Hacking Tools 2\Programs\XAMPP V2\apache"
ServerRoot "D:\XAMPP\apache"
It worked for me, if it doesn't work for you, just comment with the error value after opening the xampp_start.exe
I would think that ServerRoot needs to be absolute. Use something like "/apache/docroot"