프로그램 |
폴더 |
httpd-2.4.3-win32 (Apache) | d:/server/apache |
php-5.4.10-Win32-VC9-x86 (PHP) | d:/server/php |
mod_fcgid-2.3.7-win32 (Fast CGI) | d:/server/apache/modules |
* Apache 2.4.3과 mod_fcgid-2.3.7 Win32 binary 위치
http://www.apachelounge.com/download/
(thread-safe module 사용에 주의)
1. Module 로드
LoadModule fcgid_module modules/mod_fcgid.so
2. d:/server/apache/conf/httpd.conf 수정
DocumentRoot "d:/server/htdocs"
<Directory "d:/server/htdocs">
...
AddHandler fcgid-script .php
FCGIWrapper "d:/server/php/php-cgi.exe" .php
Options ExecCGI FollowSymlinks Indexes
</Directory>
3. Test (d:/server/htdocs/index.php)
<?php phpinfo();?>
참고: http://phphints.wordpress.com/2009/01/10/improving-php-performance-with-apache2-mpm-worker-mod_fcgid-2/