CONTENTS
Lastmodified 2014-04-26 (土) 10:17:58
php:5.4.27 から libphp5.so は、オプション扱いから外れ、 mod_php というパッケージへ独立。
これが、libphp5.soとなります。
知らずに、pkg2ng して、pkg upgrade するとapacheが起動できなくなりますよ~~~(^^ゞ
というお話
OS : FreeBSD 10.0-RELEASE-p1
# 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のアパッチモジュールがない・・・という事.
どうやら、pkgのPerlには、アパッチのモジュールが含まれていないらしい。
と言う訳で、portsからインストールし直してみる。
portupgrade -rf php5-5.4.27_1
でも、まだ、libphp5.soがはいらない。というか、PHPのインストールコンフィグに、Apacheモジュールの選択枝がなくなってる。Σ(⊙ω⊙ )
で、しばしググりますと、「5.4.27 から libphp5.so のために mod_php としてパッケージが独立」
【参考URL】http://www.yomaigoto.jp/archives/511
とのこと。
# portinstall www/mod_php5
して、OK!
# pkg upgrade Updating repository catalogue Upgrades have been requested for the following 3 packages: Reinstalling php5-5.4.27_1 (options changed) Reinstalling php5-gd-5.4.27_1 (direct dependency changed) Reinstalling mod_php5-5.4.27_1,1 (options changed) The upgrade will free 11 MB 1 MB to be downloaded Proceed with upgrading packages [y/N]: y mod_php5-5.4.27_1,1.txz 100% 1010KB 1.0MB/s 709.5KB/s 00:01 Checking integrity... done [1/3] Reinstalling php5-5.4.27_1... done [2/3] Reinstalling php5-gd-5.4.27_1... done [preparing module `php5' in /usr/local/etc/apache22/httpd.conf] [3/3] Reinstalling mod_php5-5.4.27_1,1...[activating module `php5' in /usr/local/etc/apache22/httpd.conf] done *************************************************************** Make sure index.php is part of your DirectoryIndex. You should add the following to your Apache configuration file: AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps *************************************************************** # # # # pkg upgrade Updating repository catalogue Nothing to do # apachectl restart Performing sanity check on apache22 configuration: Syntax OK Stopping apache22. Waiting for PIDS: 8914. Performing sanity check on apache22 configuration: Syntax OK Starting apache22. #
Total access 1636:本日 1:昨日 1