试图获得一个运行 PHP 5.6 的 14.04 机器,但在 apache 中启用 PHP 时遇到问题。具体来说,似乎不再安装 mod_php 了?
apt-get update
apt-get install -y python-software-properties
add-apt-repository -y ppa:ondrej/php
add-apt-repository -y ppa:ondrej/apache2
apt-get update
apt-get upgrade -y
apt-get install -y htop apache2 php5.6 php5.6-curl php5.6-mcrypt mongodb-org curl git
a2enmod
不列出php
or mod_php
,并locate php.ini
输出:
/etc/php/5.6/cli/php.ini
/etc/php/5.6/fpm/php.ini
/usr/lib/php/5.6/php.ini-development
/usr/lib/php/5.6/php.ini-production
/usr/lib/php/5.6/php.ini-production.cli
但是,在apache 提供<?php phpinfo();
的服务中包含 a 不会被处理。index.php
帮助表示赞赏!