I have an Apache Web (version 2.4.10) server running on Debian 8 (Jessie). It is mainly used as a SVN repository server.
It was working well since a few weeks, and suddenly, I got an internal error when attempting to list the SVN repos from a Web Browser as can be seen below:
Apache Internal Error & Authentication
As you can see, authentication is still working fine.
I ran the 2 following commands:
systemctl status apache2.service
and
journalctl -xn
commands
But that doesn't help me much, maybe I'm missing something?
I did NOT modify any configuration file recently related to Apache (or even anything else for that matter): neither the main apache conf file nor any vHost conf file.
I tried restarting Apache, it does restart but the Web Server still encounters an internal error.
error.log:
[Sun Jan 31 18:36:17.372502 2016] [core:notice] [pid 27449:tid 140087289513856] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 31 18:37:07.641329 2016] [mpm_event:notice] [pid 27449:tid 140087289513856] AH00491: caught SIGTERM, shutting down
[Sun Jan 31 18:38:31.156131 2016] [wsgi:warn] [pid 1049:tid 140557851056000] mod_wsgi: Compiled for Python/2.7.8.
[Sun Jan 31 18:38:31.156330 2016] [wsgi:warn] [pid 1049:tid 140557851056000] mod_wsgi: Runtime using Python/2.7.9.
[Sun Jan 31 18:38:31.157222 2016] [mpm_event:notice] [pid 1049:tid 140557851056000] AH00489: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations
[Sun Jan 31 18:38:31.157241 2016] [core:notice] [pid 1049:tid 140557851056000] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 31 19:21:39.401930 2016] [mpm_event:notice] [pid 1049:tid 140557851056000] AH00491: caught SIGTERM, shutting down
[Sun Jan 31 19:22:35.038612 2016] [wsgi:warn] [pid 1313:tid 139813423814528] mod_wsgi: Compiled for Python/2.7.8.
[Sun Jan 31 19:22:35.038672 2016] [wsgi:warn] [pid 1313:tid 139813423814528] mod_wsgi: Runtime using Python/2.7.9.
[Sun Jan 31 19:22:35.039592 2016] [mpm_event:notice] [pid 1313:tid 139813423814528] AH00489: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations
[Sun Jan 31 19:22:35.039611 2016] [core:notice] [pid 1313:tid 139813423814528] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 31 19:24:57.303622 2016] [mpm_event:notice] [pid 1313:tid 139813423814528] AH00491: caught SIGTERM, shutting down
[Sun Jan 31 19:26:20.336578 2016] [wsgi:warn] [pid 1050:tid 140178825381760] mod_wsgi: Compiled for Python/2.7.8.
[Sun Jan 31 19:26:20.336805 2016] [wsgi:warn] [pid 1050:tid 140178825381760] mod_wsgi: Runtime using Python/2.7.9.
[Sun Jan 31 19:26:20.337601 2016] [mpm_event:notice] [pid 1050:tid 140178825381760] AH00489: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations
[Sun Jan 31 19:26:20.337617 2016] [core:notice] [pid 1050:tid 140178825381760] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jan 31 19:31:24.663351 2016] [mpm_event:notice] [pid 1050:tid 140178825381760] AH00491: caught SIGTERM, shutting down
[Sun Jan 31 19:31:25.827873 2016] [wsgi:warn] [pid 1208:tid 139958437914496] mod_wsgi: Compiled for Python/2.7.8.
[Sun Jan 31 19:31:25.827919 2016] [wsgi:warn] [pid 1208:tid 139958437914496] mod_wsgi: Runtime using Python/2.7.9.
[Sun Jan 31 19:31:25.828655 2016] [mpm_event:notice] [pid 1208:tid 139958437914496] AH00489: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations
[Sun Jan 31 19:31:25.828679 2016] [core:notice] [pid 1208:tid 139958437914496] AH00094: Command line: '/usr/sbin/apache2'
Could that come from the Python version that mod_wsgi is running which differs from what mod_wsgi is apparently expecting?
try two commands blow:
sudo apt-get purge apache2
sudo apt-get install apache2
after that use systemctl status apache2 to check you apache's status
These commands solved my problem:
sudo apt-get remove apache2
sudo apt-get install apache2
Note: if you use purge as another answer, you should set all Apache config again, But when you use remove it just removes core of Apache and after installing you don't need anything more.
Related
My apache web server goes down several moment ago. I have Ubuntu 14.04 on digitalocean with PHP 7. When I visit my site, it shows this:
This site can’t be reached
crystalcrowd.ge refused to connect.
When I run service apache2 restart command, it Shows this:
* Restarting web server apache2
Segmentation fault (core dumped)
Action 'start' failed.
The Apache error log may have more information.
last Error in the error_log:
[Thu Dec 08 08:55:41.970435 2016] [mpm_prefork:notice] [pid 25213] AH00169: caught SIGTERM, shutting down
[Thu Dec 08 08:55:42.995218 2016] [mpm_prefork:notice] [pid 30673] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Thu Dec 08 08:55:42.995313 2016] [core:notice] [pid 30673] AH00094: Command line: '/usr/sbin/apache2'
[Thu Dec 08 08:58:17.074621 2016] [mpm_prefork:notice] [pid 30673] AH00169: caught SIGTERM, shutting down
[Thu Dec 08 08:58:18.087459 2016] [mpm_prefork:notice] [pid 30738] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Thu Dec 08 08:58:18.087522 2016] [core:notice] [pid 30738] AH00094: Command line: '/usr/sbin/apache2'
[Thu Dec 08 09:28:16.914107 2016] [mpm_prefork:notice] [pid 30738] AH00169: caught SIGTERM, shutting down
Last moment I was trying to set up mail server.
I have a problem start apache from webmin, it works but webmin not registre it's running. And the log shows this failed.
In running procsses it work, and the testpages running on the server.
Fedora 19
Apache version 2.4.6
Webmin 1.660
What to do. please help?
---------------LOG----------------
Failed to start apache : Apache does not appear to be running :
[Thu Dec 05 23:57:56.773010 2013] [core:notice] [pid 4712] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Dec 05 23:57:56.774357 2013] [suexec:notice] [pid 4712] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Dec 05 23:57:56.860940 2013] [auth_digest:notice] [pid 4712] AH01757: generating secret for digest authentication ...
[Thu Dec 05 23:57:56.975651 2013] [mpm_prefork:notice] [pid 4712] AH00163: Apache/2.4.6 (Fedora) OpenSSL/1.0.0-fips PHP/5.5.6 mod_perl/2.0.8-dev Perl/v5.16.3 configured -- resuming normal operations
[Thu Dec 05 23:57:56.975690 2013] [core:notice] [pid 4712] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
I installed AMPPS
I work with some folders without any problem (magento, phpmyadmin, etc).
But with one folder a website downloaded from from the server, I can not access it, also it is not listed in localhost.
When I access the folder which gives me problems, the browser give me this error: 500 Internal Server Error
And from Apache error.log, I receive this:
[Wed Oct 16 22:51:25.062078 2013] [mpm_winnt:notice] [pid 8132:tid 396] AH00455: Apache/2.4.6 (Win32) OpenSSL/1.0.1e PHP/5.3.27 mod_wsgi/3.4 Python/2.7.2 configured -- resuming normal operations
[Wed Oct 16 22:51:25.062078 2013] [mpm_winnt:notice] [pid 8132:tid 396] AH00456: Server built: Jul 24 2013 14:06:52
[Wed Oct 16 22:51:25.062078 2013] [core:notice] [pid 8132:tid 396] AH00094: Command line: 'apache\\bin\\httpd.exe -d C:/Program Files (x86)/Ampps/apache'
[Wed Oct 16 22:51:25.065078 2013] [mpm_winnt:notice] [pid 8132:tid 396] AH00418: Parent: Created child process 7960
[Wed Oct 16 22:51:26.214144 2013] [mpm_winnt:notice] [pid 7960:tid 408] AH00354: Child: Starting 64 worker threads.
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'
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.
Another solution is to change this line in /etc/apache2/apache2.conf from:
IncludeOptional sites-enabled/*.conf
to:
IncludeOptional sites-enabled/*
I've got a few Zend projects on my xampp, but if I'm going to the public directory to show the project, there's only a blank, white page. Testscripts with just an echo or the xampp tools are working fine. The xampp installation is fresh, I didn't change anything and even the Windows 7 installation is new. Also PHP errors and exceptions are showing, if there are any, this is what is written in the error.log:
[Fri May 03 15:49:37.072758 2013] [ssl:warn] [pid 5784:tid 256] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri May 03 15:49:38.945865 2013] [mpm_winnt:notice] [pid 5784:tid 256] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Fri May 03 15:49:38.946865 2013] [mpm_winnt:notice] [pid 5784:tid 256] AH00456: Server built: Aug 18 2012 12:41:37
[Fri May 03 15:49:38.946865 2013] [core:notice] [pid 5784:tid 256] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Fri May 03 15:49:38.952865 2013] [mpm_winnt:notice] [pid 5784:tid 256] AH00418: Parent: Created child process 5428
[Fri May 03 15:49:44.385176 2013] [ssl:warn] [pid 5428:tid 268] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri May 03 15:49:44.702194 2013] [mpm_winnt:notice] [pid 5428:tid 268] AH00354: Child: Starting 150 worker threads.
just notices and warnings, the php error log is empty. Any ideas how I could fix this?