[PHP-users 8591] Re: MacOS X¤ÇPHP

Yasuo Ohgaki php-users@php.gr.jp
Thu, 11 Jul 2002 21:14:31 +0900


Âç³À¤Ç¤¹¡£

¤Ê¤«¤Ë¤· wrote:
> ÃæÀ¾¡÷MacOSX¤Ç¤¹¡£
>>¾¤ÎOutput handler¡Êob_gzhandler)¤Ç¤âƱ¤¸¤Ç¤·¤ç¤¦¤«¡©
>>Apache¤¬segfault¤·¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©
>>backtrace¤¬¤¢¤ì¤Ð¡¢³ä¤È´Êñ¤Ëľ¤»¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡£
> 
> output_handler  = ob_gzhandler
> ¤È¤·¤Þ¤·¤¿¤¬¡¢Æ±Íͤˤ¦¤Þ¤¯Î©¤Á¾å¤¬¤é¤Ê¤¤¤è¤¦¤Ç¤¹¡£

¤â¤·¤«¤·¤ÆMac OS X¤Ç¤Ïoutput buffering¤¬
²õ¤ì¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©Â¾¤ÎMax OS X¤ÎÊý¡©¡©¡©

> ÅöÊý½é¿´¼Ô¤Ê¤Î¤Ç¡Ösegfault¡×¤ä¡Öbacktrace¡×¤È¤¤¤Ã¤¿¸ÀÍÕ¤Ï
> º£²ó½é¤á¤Æʹ¤­¤Þ¤¹(^^;)
> ²¿¤«²ò·èÊýË¡¤¬¤¢¤Ã¤¿¤é¶µ¤¨¤Æ¤¤¤¿¤À¤±¤ë¤È´ò¤·¤¤¤Ç¤¹¡£

google¤Çgdb sefault backtrace¤ò¥­¡¼¥ï¡¼¥É¤·¤Æ¸¡º÷
¤¹¤ë¤ÈÂô»³½Ð¤Æ¤¯¤ë¤È»×¤¤¤Þ¤¹¡£

# Max OS X¤ÏBSD UNIX¤ÈƱ¤¸¤è¤¦¤Êʪ¡¢¤È
# ¹Í¤¨¤Æ¤¤¤ë»ä¤Îǧ¼±ÉÔ­¤Ç¤·¤ç¤¦¤«¡©

> 
> ¤Á¤Ê¤ß¤Ë root ¤Ç
>     /usr/sbin/httpd restart
> ¤È¤¹¤ë¤È¡¢
> [alert] httpd: Could not determine the server's fully qualified domain name,
> using 127.0.0.1 for ServerName
> ¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤¬½Ð¤Þ¤¹¡£

¥Æ¥¹¥ÈÍѤΥޥ·¥ó¤Ç¤¢¤ì¤Ð¡¢FQDN¤¬¸«¤Ä¤«¤é¤Ê¤¤¤È¸À¤¦¥¨¥é¡¼
¤Ï̵»ë¤Ç¤­¤Þ¤¹¡£Apache¤Î¥Þ¥Ë¥å¥¢¥ë¤ò¸«¤ë¤«¡¢¥¨¥é¡¼¥á¥Ã
¥»¡¼¥¸¤ò¥­¡¼¥ï¡¼¥É¤Ë¤·¤Ægoogle¤Ç¸¡º÷¤·¤Æ¤ß¤ë¤È¿ʬɬÍ×
¤Ê¾ðÊ󤬸«¤Ä¤«¤ê¤Þ¤¹¡£

> ¤Þ¤¿ Phpinfo() ¤Ç¡¢¥³¥ó¥Ñ¥¤¥ë¥ª¥×¥·¥ç¥ó¤¬
> './configure' '--disable-cli' '--with-apxs' '--with-mysql' '--with-pgsql'
> '--with-gd=/usr/local' '--with-png-dir=/usr/local' '--with-zlib-dir=/usr'
> '--with-jpeg-dir=/usr/local' '--with-freetype-dir=/usr/local'
> '--with-t1lib=/usr/local' '--enable-trans-sid' '--enable-exif' '--with-xml'
> '--enable-wddx' '--with-curl=/usr/local' '--with-pdflib=/usr/local'
> '--enable-ftp' '--enable-mbstring' '--enable-mbstr-enc-trans' '--with-ldap'
> '--enable-xslt' '--with-xslt-sablot=/usr/local' '--with-imap=../imap-2001a'
> '--enable-dbx' '--enable-dbase' '--with-mcrypt=/usr/local'
> '--enable-sockets'
> ¤È½Ð¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬¡¢¥Þ¥Ë¥å¥¢¥ë¤Ç¤Ï
>     --enable-zend-multibyte
> ¤¬Æþ¤Ã¤Æ¤¤¤Ê¤¤¤ÈÆâÉô¤¬EUC¡¢³°Éô¤¬SJIS¤ËÊÑ´¹¤Ç¤­¤Ê¤¤¤È¤¢¤ê¤Þ¤·¤¿¡£
> ¤ä¤Ï¤ê¤­¤Á¤ó¤È¥³¥ó¥Ñ¥¤¥ë¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤¤Î¤Ç¤·¤ç¤¦¤«¡©

¹ñºÝ²½ÈÇPHP4¤Ç¤¹¤«¡©

--enable-zend-multibyte¤Ç¤Ï¤Ê¤¯enable-mbstr-enc-trans¤Î
´Ö°ã¤¤¤Ç¤Ï¡©INPUT¤Î¼«Æ°ÊÑ´¹¤Ïenable-mbstr-enc-trans¤Ç¹Ô¤Ê¤ï¤ì
OUTPUT¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤ÎÊÑ´¹¤Ïmb_output_handler¤Ç¹Ô¤Ê¤¤¤Þ¤¹¡£

PHP¤Îconfigure¥¹¥¯¥ê¥×¥È¤Ï¥¿¥¤¥Ý¤¬¤¢¤Ã¤Æ¤â²¿¤â¥¨¥é¡¼¤ò¤À¤µ¤Ê¤¤
¤Î¤ÇÃí°Õ¤¬É¬ÍפǤ¹¡£

Max OS X¤Î¥µ¥Ý¡¼¥È¤ÏÈæ³ÓŪ¿·¤·¤¤¤Î¤Ç
http://snaps.php.net/
¤«¤éºÇ¿·¤ÎCVS¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤ÇºÇÄã¸Â¤Î¥ª¥×¥·¥ç¥ó¤Ç¥Ó¥ë¥É¤·¤ÆÆ°ºî
¤¹¤ë¤«³Î¤«¤á¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£

--
Yasuo Ohgaki