13

ubuntu 12.04のvmでapache 2.4とphp 5.5を使用してテスト環境を設定しようとしています。最初にリポジトリを追加します

apt-add-repository ppa:ptn107/apache
apt-add-repository ppa:ondrej/php5

次に、Apache 2.4 をインストールします。

apt-get install apache2-mpm-worker

Apache のバージョンを確認しています:

# apache2 -v
Server version: Apache/2.4.6 (Ubuntu)
Server built:   Sep 23 2013 07:23:34

PHP 5.5 のインストール

apt-get install php5-common php5-mysqlnd php5-xmlrpc php5-curl php5-gd php5-cli php5-fpm php-pear php5-dev php5-imap php5-mcrypt

phpのバージョン確認

php -v
PHP 5.5.8-3+sury.org~precise+1 (cli) (built: Jan 24 2014 10:15:11) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
     with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies

mod_fastcgi が必要ですが、インストールできません。

apt-get install libapache2-mod-fastcgi
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libapache2-mod-fastcgi : Depends: apache2.2-common (>= 2.2.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

mod_fastcgi を有効にできない場合、どうすれば php-fpm で php ファイルを実行できますか? 私が欠けているものはありますか?

4

2 に答える 2

11

ここから fastcgi mod と apache2 をインストールできます。私の側で動作することが確認されています。https://launchpad.net/~ondrej/+archive/apache2?field.series_filter=precise

于 2014-02-08T06:32:34.253 に答える