Apache php configured resuming normal operations

PHP перестал интепретироваться на Apache, что могло стать причинной?

Являюсь пользователем системы ubuntu 14.04, стоит apache 2.4. и php 5.5.9.1
Дело установки было еще летом. Работало все нормально. В последние два дня. Единственное что кардинально изменялось в системе, так это попытка установок Krita и Pinta, значимого ничего больше вроде как не было. Никаких настроек новых локальных серверов не выполнял.
Просто за один день вместо отработки интерпретатора при запросе на любом домене к файлу php, Chrome теперь предлагает их скачать оО.

Дело я подозреваю что скорее всего в Apache, так как при загрузке сайтов на nginx php работает вроде так как и должен.

Сам Apache запускается без ошибок. В логах при обращение к сайту записывается

[Fri Oct 23 16:49:20.046612 2015] [authz_core:debug] [pid 9386] mod_authz_core.c(802): [client 127.0.0.1:55545] AH01626: authorization result of : granted

Но это судя по файлу было всегда, и с этим уведомлением все работало всегда и все нормально было.

В var/log/apache2 пишется такое:

[Fri Oct 23 14:19:32.167175 2015] [mpm_prefork:notice] [pid 17003] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations [Fri Oct 23 14:19:32.193444 2015] [core:notice] [pid 17003] AH00094: Command line: '/usr/sbin/apache2' [Fri Oct 23 14:49:57.661341 2015] [mpm_prefork:notice] [pid 17003] AH00169: caught SIGTERM, shutting down [Fri Oct 23 14:56:17.755882 2015] [mpm_prefork:notice] [pid 3268] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations

Но опять же подобное повторяется и в те дни когда все было ок.

Помогите, куда копать? Что смотреть? Что показывать?

Источник

Apache is OK, but what is this in error.log — [mpm_prefork:notice]?

My apache server is running OK without any problems. It also doesn’t issue any warning during restart. However, if I examine error.log I can see the following lines repeating from time to time:

[Wed Jun 25 18:15:56.295408 2014] [mpm_prefork:notice] [pid 8817] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4 configured -- resuming normal operations [Wed Jun 25 18:15:56.295570 2014] [core:notice] [pid 8817] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 25 18:26:34.511247 2014] [mpm_prefork:notice] [pid 8817] AH00169: caught SIGTERM, shutting down 

@SvW, within an interval of 20 minutes. But I’m currently working with the server (ofter restarting it) so this maybe the cause

Читайте также:  Apache poi java docx

No, I simply assumed that you know how to configure Apache and have seen the config directives for mpm_prefork .

1 Answer 1

The log file just shows some startups/shutdowns of Apache workers. In your Apache configuration, you can set how many workers (aka threads) Apache may use. On a regular setup, Apache can be started several times. Especially when your server is busy (e.g. there are many visitors on one of your vhosts), it’s not strange to see 20 (or more) Apache processes running. There is nothing to worry about, they’re just informational.

[mpm_prefork:notice] [pid 8817] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4 configured — resuming normal operations

This means a new thread spawned under process id 8817.

[core:notice] [pid 8817] AH00094: Command line: ‘/usr/sbin/apache2’

This is just a notice saying that the /usr/sbin/apache2 command was used to start the thread, so no special flags/options were passed to it.

[mpm_prefork:notice] [pid 8817] AH00169: caught SIGTERM, shutting down

This line tells you that the process with process id 8817 has shut down again.

[Updated] This log was invoked by /etc/apache2/apache2.conf which it has the directive pointing to the log file that you are seeing at. To see less of the logging, you can edit this line in apache2.conf LogLevel warn to LogLevel error which will log only if there is error that causing the server to malfunction. Options for that logging are: trace1, debug, info, notice, warn, error, crit, alert, emerg. You can play with all of these options to find which logging level you like the most.

To see the log for your domain, you can find that in your conf file that hold the configurations for the domain host in /etc/apache2/sites-available . I.e. yoursite.conf

Читайте также:  Кто больше питон анаконда

Источник

php7 on 16.04 not working after reinstall of Apache

I was making changes to Apache and killed the configuration. Apache didn’t work. So, I removed it and reinstalled. Apache works. Mysql works. But, the PHP test won’t work. The php test file is there in /var/www/html but won’t come up. http://localhost/test2.php in the browser just give me an empty screen. Reinstalling PHP doesn’t seem to help. I just get a blank screen without an error message. WordPress doesn’t come up either. Any suggestions? Error Log:

[Sun Nov 05 16:34:24.764857 2017] [mpm_event:notice] [pid 3887:tid 140535676766080] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Sun Nov 05 16:34:24.764954 2017] [core:notice] [pid 3887:tid 140535676766080] AH00094: Command line: '/usr/sbin/apache2' [Sun Nov 05 16:37:41.761332 2017] [mpm_event:notice] [pid 3887:tid 140535676766080] AH00491: caught SIGTERM, shutting down [Sun Nov 05 16:37:42.834654 2017] [mpm_event:notice] [pid 4105:tid 140542285068160] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Sun Nov 05 16:37:42.834749 2017] [core:notice] [pid 4105:tid 140542285068160] AH00094: Command line: '/usr/sbin/apache2' [Sun Nov 05 16:57:35.990992 2017] [mpm_event:notice] [pid 4105:tid 140542285068160] AH00491: caught SIGTERM, shutting down [Sun Nov 05 16:57:37.056553 2017] [mpm_event:notice] [pid 4647:tid 140007533836160] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Sun Nov 05 16:57:37.056632 2017] [core:notice] [pid 4647:tid 140007533836160] AH00094: Command line: '/usr/sbin/apache2' [Sun Nov 05 18:01:18.870157 2017] [mpm_event:notice] [pid 4647:tid 140007533836160] AH00491: caught SIGTERM, shutting down [Sun Nov 05 18:01:19.944634 2017] [mpm_event:notice] [pid 6272:tid 140286123997056] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Sun Nov 05 18:01:19.944719 2017] [core:notice] [pid 6272:tid 140286123997056] AH00094: Command line: '/usr/sbin/apache2' [Sun Nov 05 18:07:31.641146 2017] [mpm_event:notice] [pid 6272:tid 140286123997056] AH00491: caught SIGTERM, shutting down [Mon Nov 06 06:55:45.343332 2017] [mpm_event:notice] [pid 1031:tid 139664376633216] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Mon Nov 06 06:55:45.366228 2017] [core:notice] [pid 1031:tid 139664376633216] AH00094: Command line: '/usr/sbin/apache2' [Mon Nov 06 07:00:30.525862 2017] [mpm_event:notice] [pid 1031:tid 139664376633216] AH00493: SIGUSR1 received. Doing graceful restart 

Источник

Читайте также:  От минимума до максимума питон

Apache not working after macOS Mojave update

Ok, after update macOS from High Sierra to Mojave, Apache with PHP stop working properly, so I did everything as is said in this guide — https://getgrav.org/blog/macos-mojave-apache-multiple-php-versions but after that, still apache not working properly, sometimes working, sometimes not, and its says in browsers ERR_CONNECTION_REFUSED or other errors like 404 or 500. In apache log is:

[Tue Oct 02 15:02:23.209423 2018] [mpm_prefork:notice] [pid 14579] AH00173: SIGHUP received. Attempting to restart [Tue Oct 02 15:02:23.255957 2018] [mpm_prefork:notice] [pid 14579] AH00163: Apache/2.4.35 (Unix) PHP/7.2.10 configured -- resuming normal operations [Tue Oct 02 15:02:23.256008 2018] [core:notice] [pid 14579] AH00094: Command line: '/usr/local/opt/httpd/bin/httpd' [Tue Oct 02 15:14:37.626645 2018] [mpm_prefork:notice] [pid 14579] AH00173: SIGHUP received. Attempting to restart [Tue Oct 02 15:14:37.674603 2018] [mpm_prefork:notice] [pid 14579] AH00163: Apache/2.4.35 (Unix) PHP/7.2.10 configured -- resuming normal operations [Tue Oct 02 15:14:37.674672 2018] [core:notice] [pid 14579] AH00094: Command line: '/usr/local/opt/httpd/bin/httpd' [Tue Oct 02 15:28:40.715060 2018] [mpm_prefork:notice] [pid 14579] AH00173: SIGHUP received. Attempting to restart [Tue Oct 02 15:28:40.752117 2018] [ssl:warn] [pid 14579] AH01909: www.example.com:8443:0 server certificate does NOT include an ID which matches the server name [Tue Oct 02 15:28:40.766009 2018] [mpm_prefork:notice] [pid 14579] AH00163: Apache/2.4.35 (Unix) OpenSSL/1.0.2p PHP/7.2.10 configured -- resuming normal operations [Tue Oct 02 15:28:40.766052 2018] [core:notice] [pid 14579] AH00094: Command line: '/usr/local/opt/httpd/bin/httpd' 

Источник

Оцените статью