Apache xampp web server does not start, exit code 8

My knowledge is very limited by these apache settings. I wanted to have several sites on which I could work locally.

Yesterday it worked fine after installation, but after closing and starting again today it didn’t work.

The server does not start, and the application log says:

Starting the Apache web server ...
Exit code: 8
Stdout: Apache
config configuration error,
Stderr interrupt :
AH00526: Syntax error on line 237 from /Applications/XAMPP/xamppfiles/etc/httpd.conf:
DocumentRoot must be a directory

This is the 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,

+4
source share
3 answers

Well, because of the comma, your text editor has changed from " to " aftersite-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">
+7
source

If you use xampp under windows, you must add a drive letter, for example:

DocumentRoot "C:/Users/username/Sites/xampp/site-folder"
<Directory "C:/Users/username/Sites/xampp/site-folder">

( , Windows \( ), apache /( ) \ .)

0

xampp - Windows, ? lampp linux, , . (: , - , , , ).

Try

<Directory "C:\Users\username\Sites\xampp\site-folder">
</Directory>

Windows - "\", , "" . "C:" - , . - ( "-" /), "C:" , .

0

Source: https://habr.com/ru/post/1523272/


All Articles