Apache doesn't start

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Apache doesn't start

Postby dmitriyss » 20. December 2020 16:38

Apache doesn't start after reload my PC! Here is LOG maybe someone can say me what's wrong?

ERROR: Failed to start "apache": cannot start service: httpd: Syntax error on line 488 of /opt/lampp/etc/httpd.conf: Syntax error on line 45 of /opt/lampp/etc/extra/httpd-vhosts.conf: </VirtualHost> without matching <VirtualHost> section
dmitriyss
 
Posts: 3
Joined: 20. December 2020 16:34
XAMPP version: 8.0.0
Operating System: MacOS

Re: Apache doesn't start

Postby Altrea » 20. December 2020 16:49

What is the contents of your httpd-vhosts.conf file?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Apache doesn't start

Postby dmitriyss » 20. December 2020 16:49

New error:

ERROR: Failed to start "apache": cannot start service: AH00112: Warning: DocumentRoot [/opt/lampp/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [/opt/lampp/docs/dummy-host2.example.com] does not exist
AH00526: Syntax error on line 40 of /opt/lampp/etc/extra/httpd-vhosts.conf:
<VirtualHost> directive requires additional arguments
dmitriyss
 
Posts: 3
Joined: 20. December 2020 16:34
XAMPP version: 8.0.0
Operating System: MacOS

Re: Apache doesn't start

Postby dmitriyss » 20. December 2020 16:51

Altrea wrote:What is the contents of your httpd-vhosts.conf file?

# Virtual Hosts
#
# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/opt/lampp/docs/dummy-host.example.com"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error_log"
CustomLog "logs/dummy-host.example.com-access_log" common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "/opt/lampp/docs/dummy-host2.example.com"
ServerName dummy-host2.example.com
ErrorLog "logs/dummy-host2.example.com-error_log"
CustomLog "logs/dummy-host2.example.com-access_log" common
</VirtualHost>

<VirtualHost>
ServerAdmin webmaster@fructcode.com
DocumentRoot "/opt/lampp/htdocs/kinomonster"
ServerName kinomonster.com
ErrorLog "logs/kinomonster.com-error_log"
CustomLog "logs/kinomonster.com-access_log" common
</VirtualHost>
dmitriyss
 
Posts: 3
Joined: 20. December 2020 16:34
XAMPP version: 8.0.0
Operating System: MacOS

Re: Apache doesn't start

Postby Altrea » 20. December 2020 16:55

You uncommented the example VHosts. Of course this cannot work, these are just syntax examples and doesn't fit in any way your environment.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 9 guests