CONTENTS
#contents
----
Lastmodified &lastmod;
----
php:5.4.27 から libphp5.so は、オプション扱いから外れ、 mod_php というパッケージへ独立。

これが、libphp5.soとなります。 

知らずに、pkg2ng して、pkg upgrade するとapacheが起動できなくなりますよ~~~(^^ゞ

というお話
----

*pkg upgrade de Apache 転ける の巻 [#r3e24fd3]
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のアパッチモジュールがない・・・という事.

【参考URL】http://april.fool.jp/blogs/2008/11/php5%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8%E3%81%AB%E3%81%AFapache%E5%90%91%E3%81%91php%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%81%8C%E5%90%AB%E3%81%BE%E3%82%8C%E3%81%A6%E3%81%84/

どうやら、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 &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);



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