Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error after upgrading to Apache 2.4.6

Tags:

The "a2ensite""a2dissite" are not working

Echo:

ERROR: Site XXXXXX does not exist!

I swear it exists in sites-available folder.

After I typed a2ensite and double clicked the Tab button, it shows the /root directory.

There must be something wrong with the a2en/dissite script.

How can I make it back to work?

===================== Here are the last lines of the error log:

[Sun Aug 04 22:59:31.406192 2013] [mpm_event:notice] [pid 5378:tid 140459282536256] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations [Sun Aug 04 22:59:31.406433 2013] [core:notice] [pid 5378:tid 140459282536256] AH00094: Command line: '/usr/sbin/apache2' [Sun Aug 04 23:09:44.648984 2013] [mpm_event:notice] [pid 5378:tid 140459282536256] AH00491: caught SIGTERM, shutting down [Sun Aug 04 23:09:46.001182 2013] [mpm_event:notice] [pid 5692:tid 139671144335168] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations [Sun Aug 04 23:09:46.001490 2013] [core:notice] [pid 5692:tid 139671144335168] AH00094: Command line: '/usr/sbin/apache2' 
like image 844
Shiji.J Avatar asked Aug 05 '13 06:08

Shiji.J


People also ask

Why is my Apache Web server not working?

There are several reasons your Apache server might fail to run. Something could be blocking the port it uses; there could be another instance of Apache already running; or there might be an incompatibility with the version of PHP you're using in MAMP.

How do I start Apache 2.4 on Windows 10?

Step by step Apache install on Windows Download the installation media in the form of a ZIP file. Extract the contents of the Apache Web Server 2.4 zip to the file system. Locate the extracted Apache24 folder and copy this folder to the root of C:\ Open the C:\Apache24\bin folder and run the httpd.exe command.

What is the CVE number of the vulnerability that was solved in version 2.4 51?

important: Possible buffer overflow when parsing multipart content in mod_lua of Apache HTTP Server 2.4. 51 and earlier (CVE-2021-44790)


2 Answers

Renaming site configuration files in /etc/apache2/sites-available/* into *.conf helped.

Example, when enabling site dummy.com, configuration file must be named dummy.com.conf.

like image 153
Benoît Avatar answered Oct 14 '22 06:10

Benoît


Another solution is to change this line in /etc/apache2/apache2.conf from:

IncludeOptional sites-enabled/*.conf 

to:

IncludeOptional sites-enabled/* 
like image 37
johndodo Avatar answered Oct 14 '22 05:10

johndodo