아파치 worker 방식으로 변경

1 개요[ | ]

아파치 worker 방식으로 변경
  • (PHP 사용시) PHP가 threadsafe를 지원해야 함

2 확인[ | ]

root@zetawiki:~# apache2ctl status | grep '^Server MPM'
Server MPM: prefork
root@zetawiki:~# ll /etc/apache2/mods-available/mpm*
-rw-r--r-- 1 root root 668 Jan  3  2014 /etc/apache2/mods-available/mpm_event.conf
-rw-r--r-- 1 root root 114 Jan  3  2014 /etc/apache2/mods-available/mpm_event.load
-rw-r--r-- 1 root root 571 Jan  3  2014 /etc/apache2/mods-available/mpm_prefork.conf
-rw-r--r-- 1 root root 116 Jan  3  2014 /etc/apache2/mods-available/mpm_prefork.load
-rw-r--r-- 1 root root 836 Jan  3  2014 /etc/apache2/mods-available/mpm_worker.conf
-rw-r--r-- 1 root root 115 Jan  3  2014 /etc/apache2/mods-available/mpm_worker.load
root@zetawiki:~# a2dismod mpm_prefork
Module mpm_prefork disabled.
To activate the new configuration, you need to run:
  service apache2 restart
root@zetawiki:~# a2enmod mpm_worker
Considering conflict mpm_event for mpm_worker:
Considering conflict mpm_prefork for mpm_worker:
Considering conflict mpm_itk for mpm_worker:
Enabling module mpm_worker.
To activate the new configuration, you need to run:
  service apache2 restart
root@zetawiki:~# service apache2 restart
 * Restarting web server apache2                                                               [fail] 
 * The apache2 configtest failed.
Output of config test was:
[Thu Jan 14 10:37:08.259736 2016] [:crit] [pid 25697:tid 139761302456192] Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.
AH00013: Pre-configuration failed
Action 'configtest' failed.
The Apache error log may have more information.

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}