PHP ʖ²ἯTH º󍋼/A Ղ 48. °²װ [mybox:user /src/php4] root# apachectl configtest apachectl: /usr/local/apache/bin/httpd Undefined symbols: _compress _uncompress cgi error: The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: --with-config-file-path=/etc gdb httpd run -X -f /path/to/httpd.conf run -X -f /path/to/httpd.conf ʤȫ£ºbt 3. Unix£ºΒ´ӠRPMS °²װK PHP£¬µ«ʇ Apache ²»´¦- PHP ҳ棡բʇԵô»؊£¿ # Extra Modules AddModule mod_php.c AddModule mod_php3.c AddModule mod_perl.c # Extra Modules LoadModule php_module modules/mod_php.so LoadModule php3_module modules/libphp3.so /* for PHP 3 */ LoadModule php4_module modules/libphp4.so /* for PHP 4 */ LoadModule perl_module modules/libperl.so AddType application/x-httpd-php3 .php3 /* for PHP 3 */ AddType application/x-httpd-php .php /* for PHP 4 */ rpm -e mod_php3 rpm -Uvh mod_php3-3.0.5-2.src.rpm ½ӗű༭ /usr/src/redhat/SPECS/mod_php3.spec ΄¼þ Ԛ %build һ½ڼӈ넣ϫҪµĊþ¿¢–§³֣¬Ҕ¼°·¾¶¡£ ¶ԓ¦Ӛ MySQL ģӦ¸üӈ늠 --with-mysql=/usr\ ./configure --prefix=/usr\ --with-apxs=/usr/sbin/apxs\ --with-config-file-path=/usr/lib\ --enable-debug=no\ --enable-safe-mode\ --with-exec-dir=/usr/bin\ --with-mysql=/usr\ --with-system-regex rpm -bb /usr/src/redhat/SPECS/mod_php3.spec Ȼº󰲗° rpm rpm -ivh /usr/src/redhat/RPMS/i386/mod_php3-3.0.5-2.i386.rpm [mybox:user /src/php4] root# apachectl configtest apachectl: /usr/local/apache/bin/httpd Undefined symbols: _compress _uncompress cgi error: The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ΄¼þȨϞΊ̢£¬ģµĠPHP ½ű¾£¬php.exe£¬php4ts.dll£¬php.ini »򈎺΄㒪¼ӔصĠPHP )չ¿⊇Ĥû internet Ӄ»§ ISUR_ machinename ΞȨ·Îʵġ£ 10. Windows£ºΒґ¾­Օׅ˹Ӑµċµ÷׶K£¬µ«»¹ʇ²»Ĝȃ PHP º͠IIS һư¹¤׷£¡ º󍋼/A ưµ㼯A ʽ¾ݿ⎊̢ ɏһ¼¶ ±ҫΊ̢