Назад | Перейти на главную страницу

Переключитесь на Apache Event MPM из Prefork в Debian 8

С участием a2query -M Я обнаружил, что Apache 2.4 использует Prefork, поэтому сегодня я хочу переключиться на Event MPM. Я установил Event MPM с apt-get install apache2-mpm-event команда и перезапустил Apache, как показано Вот. Но a2query -M говорит мне, что Prefork все еще включен.

Затем я бегу a2dismod mpm_prefork и a2enmod mpm_event. При перезапуске Apache произошла ошибка:

Job for apache2.service failed. See 'systemctl status apache2.service' and 'jour nalctl -xn' for details.

Далее я бегу systemctl status apache2.service что подсказывает

● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─forking.conf
   Active: failed (Result: exit-code) since Tue 2017-04-18 02:13:12 CEST; 32s ago
  Process: 29867 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 11895 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
  Process: 29961 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Apr 18 02:13:12 localhost apache2[29961]: Starting web server: apache2 failed!
Apr 18 02:13:12 localhost apache2[29961]: The apache2 configtest failed. .......
Apr 18 02:13:12 localhost apache2[29961]: Output of config test was:
Apr 18 02:13:12 localhost apache2[29961]: [Tue Apr 18 02:13:12.111084 2017] ....
Apr 18 02:13:12 localhost apache2[29961]: AH00013: Pre-configuration failed
Apr 18 02:13:12 localhost apache2[29961]: Action 'configtest' failed.
Apr 18 02:13:12 localhost apache2[29961]: The Apache error log may have more....
Apr 18 02:13:12 localhost systemd[1]: apache2.service: control process exit...=1
Apr 18 02:13:12 localhost systemd[1]: Failed to start LSB: Apache2 web server.
Apr 18 02:13:12 localhost systemd[1]: Unit apache2.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.

и journalctl -xn

-- Logs begin at Tue 2017-04-11 11:38:36 CEST, end at Tue 2017-04-18 02:14:01 CEST. --
Apr 18 02:13:14 localhost sshd[29955]: pam_unix(sshd:session): session closed for user root
Apr 18 02:13:28 localhost sshd[29981]: reverse mapping checking getaddrinfo for 177.64.uzpak.uz [213.230.102.177] failed - POSSIBLE BREAK-IN ATTEMPT!
Apr 18 02:13:28 localhost sshd[29981]: Accepted password for root from 213.230.102.177 port 64786 ssh2
Apr 18 02:13:28 localhost sshd[29981]: pam_unix(sshd:session): session opened for user root by (uid=0)
Apr 18 02:14:01 localhost CRON[29990]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 18 02:14:01 localhost CRON[29989]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 18 02:14:01 localhost CRON[29992]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.
Apr 18 02:14:01 localhost CRON[29991]: (root) CMD (/usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.lo
Apr 18 02:14:01 localhost CRON[29989]: pam_unix(cron:session): session closed for user root
Apr 18 02:14:01 localhost CRON[29990]: pam_unix(cron:session): session closed for user root

Понятия не имею, на каком этапе я сделал не так. Я последовал за этот учебник установить сервер. Любые идеи, рекомендации приветствуются.

ОБНОВИТЬ

Я нашел это в моем журнале apache:

[mpm_prefork:notice] [pid 28858] AH00163: Apache/2.4.10 (Debian) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 Phusion_Passenger/4.0.53 mod_python/3.3.1 Python/2.7.9 OpenSSL/1.0.1t configured -- resuming normal operations

[core:notice] [pid 28858] AH00094: Command line: '/usr/sbin/apache2'

[mpm_prefork:notice] [pid 28858] AH00169: caught SIGTERM, shutting down
[ 2017-04-18 02:17:19.3278 30199/7f89356db740 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python', 'default_ruby' => '/usr/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_version' => '4.0.53', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.53', 'web_server_pid' => '30197', 'web_server_type' => 'apache', 'web_server_worker_gid' => '33', 'web_server_worker_uid' => '33' }

Также, apache2ctl configtest результат:

AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/sites-enabled/000-ispconfig.conf:69
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
Syntax OK