CONTENTS


Lastmodified 2014-04-26 (土) 10:17:58


pkg upgrade de Apache 転ける の巻

# pkg upgrade

してrebootしたら、wwwプロセスが上がってない!

# apachectl start
Performing sanity check on apache22 configuration:
httpd: Syntax error on line 106 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/libphp5.so into server: Cannot open
 "/usr/local/libexec/apache22/libphp5.so"
Starting apache22.
httpd: Syntax error on line 106 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/libphp5.so into server: Cannot open
 "/usr/local/libexec/apache22/libphp5.so"
/usr/local/etc/rc.d/apache22: WARNING: failed to start apache22

phpのアパッチモジュールがない・・・という事らしいが、

root@blackcube2:/usr/ports/lang/php5 # make showconfig
===> The following configuration options are available for php5-5.4.27_1:
     CLI=on: Build CLI version
     CGI=on: Build CGI version
     FPM=on: Build FPM version
     EMBED=off: Build embedded library
     DEBUG=off: Enable debug
     DTRACE=off: Enable DTrace support
     IPV6=on: Enable ipv6 support
     MAILHEAD=off: Enable mail header patch
     LINKTHR=on: Link thread lib (for threaded extensions)
     ZTS=off: Force Zend Thread Safety (ZTS) build
===> Use 'make config' to modify these settings

php5のオプションには・・・?ない?

ということで、

/usr/local/etc/apache22/httpd.conf

の該当行をコメントアウトして、取り敢えず起動

#LoadModule php5_module        libexec/apache22/libphp5.so

Total access 1709:本日 1:昨日 0

Counter: 1709, today: 1, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS