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/
2015年3月24日火曜日
2012年9月6日木曜日
Ubuntu 12.04にIIPImageをインストールする時の追加メモ
予め必要なライブラリをインストールしようとしたのだが、どうやら本家のドキュメントに書いてあるlibfcgi0ldbl がすんなりインストールできない。
以下からdebをダウンロードして、
http://pkgs.org/ubuntu-12.04/ubuntu-universe-amd64/libfcgi0ldbl_2.4.0-8.1_amd64.deb.html#download
あとは、本家のドキュメントに従えばOK。
http://iipimage.sourceforge.net/2012/05/new-debian-and-ubuntu-packages-released/
% sudo apt-get install libfcgi0ldbl libjpeg8 libtiff4 zlib1g libstdc++6 libmemcached6調べてみるとAPTリポジトリには含まれていないライブラリらしいので、別のdebを追加してインストールすることに成功。
以下からdebをダウンロードして、
http://pkgs.org/ubuntu-12.04/ubuntu-universe-amd64/libfcgi0ldbl_2.4.0-8.1_amd64.deb.html#download
% sudo dpkg -i libfcgi0ldbl_2.4.0-8.1_amd64.debを実行すれば完了。
あとは、本家のドキュメントに従えばOK。
http://iipimage.sourceforge.net/2012/05/new-debian-and-ubuntu-packages-released/
登録:
投稿 (Atom)