2015年3月24日火曜日

libapache2-mod-fastcgiがApacheのモジュールとしてロードされていない時の対処方法

Apacheでfastcgiを使っていて、Ubuntuのリリースアップグレードなどのきっかけで、FastCgiServerのシンタックスがiipsrv.confで使えませんというエラーが出た。

/etc/apache2/mods-enabled/iipsrv.conf

---> FastCgiServer .......    ------>ここがエラーになる。

1.fastcgiがApacheのモジュールとしてロードされていない事を確認

  %> sudo apache2ctl -M

2./etc/apt/source.listでfastcgiが含まれるmultiverseに編集
3.sudo apt-get udpate
4.sudo apt-get install libapache2-mod-fastcgi
5.sudo a2enmod fastcgi でfastcgiをApacheのモジュールとしてロード
6.sudo apachectl configtest で設定ファイルのシンタックスが正しいかチェック
7.sudo /etc/init.d/apache2 restart

これでfastcgi_module (shared)が出ればOK。

きっかけはUbuntuのリリース・アップグレードで起こったので、注意しないなと思いました。こういうところは気づきにくい。。。


参考
https://help.ubuntu.com/community/HelpOnInstalling/FastCgi
https://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-ubuntu-10.04
http://serverfault.com/questions/599707/e-package-libapache2-mod-fastcgi-has-no-installation-candidate-debian-ser
http://serverfault.com/questions/395139/cant-install-fastcgi-ubuntu-server-package-libapache2-mod-fastcgi-is-not-availa
http://www.binarytides.com/install-apache-php-mod-fastcgi-ubuntu/
https://wiki.archlinux.org/index.php/Apache_and_FastCGI
http://superuser.com/questions/284898/how-to-check-which-apache-modules-are-enabled-installed
http://www.unixmen.com/install-apache2-fastcgi-ubuntu-server-14-0413-10/


0 件のコメント:

コメントを投稿