Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xampp apache web server not starting, exit code 8

My knowledge is very limited with these apache settings. I wanted to have multiple sites that I could work on locally.

Yesterday it worked okay after installation but after shutting down and starting again today, it did not work.

Server won't start and Application log says:

Starting Apache Web Server...
Exit code: 8
Stdout:
apache config test fails, aborting
Stderr:
AH00526: Syntax error on line 237 of /Applications/XAMPP/xamppfiles/etc/httpd.conf:
DocumentRoot must be a directory

It is a folder

httpd.conf
line
237 DocumentRoot "/Users/username/Sites/xampp/site-folder”
238 Directory "/Users/username/Sites/xampp/site-folder">

Any ideas what is wrong and what to do?

Thanks,

like image 531
user3226566 Avatar asked Feb 14 '23 00:02

user3226566


1 Answers

Well, It is because of the comma that your text editor changed from " to after site-folder”

237 DocumentRoot "/Users/username/Sites/xampp/site-folder” 
238 Directory "/Users/username/Sites/xampp/site-folder">

Change to:

237 DocumentRoot "/Users/username/Sites/xampp/site-folder"
238 Directory "/Users/username/Sites/xampp/site-folder">
like image 94
tika Avatar answered Feb 24 '23 08:02

tika