Configuring APACHE2 Support PHP7

Source: Internet
Author: User
Tags glob aliyun

[Email protected]:/etc/apache2# sudo apt-get install libapache2-mod-php*
Reading Package Lists ... Done
Building Dependency Tree
Reading state information ... Done
Note, selecting ' Libapache2-mod-php5filter ' for Glob ' libapache2-mod-php* '
Note, selecting ' libapache2-mod-php ' for Glob ' libapache2-mod-php* '
Note, selecting ' libapache2-mod-php5 ' for Glob ' libapache2-mod-php* '
Note, selecting ' Libapache2-mod-phpfilter ' for Glob ' libapache2-mod-php* '
Note, selecting ' libapache2-mod-php7.0 ' for Glob ' libapache2-mod-php* '
Suggested Packages:
Php-pear
The following NEW packages'll be installed:
libapache2-mod-php libapache2-mod-php7.0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,232 KB of archives.
After this operation, 4,344 KB of additional disk space would be used.
Get:1 http://mirrors.aliyun.com/ubuntu xenial-updates/main amd64 libapache2-mod-php7.0 amd64 7.0.18-0ubuntu0.16.04.1 [1,229 KB]
Get:2 Http://mirrors.aliyun.com/ubuntu xenial/main amd64 libapache2-mod-php all 1:7.0+35ubuntu6 [2,960 B]
fetched 1,232 kB in 1s (1,058 kb/s)
Selecting previously unselected package libapache2-mod-php7.0.
(Reading database ... 111438 files and directories currently installed.)
Preparing to unpack .../libapache2-mod-php7.0_7.0.18-0ubuntu0.16.04.1_amd64.deb ...
Unpacking libapache2-mod-php7.0 (7.0.18-0ubuntu0.16.04.1) ...
Selecting previously unselected package libapache2-mod-php.
Preparing to unpack .../libapache2-mod-php_1%3a7.0+35ubuntu6_all.deb ...
Unpacking libapache2-mod-php (1:7.0+35UBUNTU6) ...
Setting up libapache2-mod-php7.0 (7.0.18-0ubuntu0.16.04.1) ...

Creating config File/etc/php/7.0/apache2/php.ini with new version
Module mpm_event Disabled.
Enabling module Mpm_prefork.
APACHE2_SWITCH_MPM Switch to Prefork
Apache2_invoke:enable Module php7.0
Setting up libapache2-mod-php (1:7.0+35UBUNTU6) ...
[Email protected]:/etc/apache2#

Configuring APACHE2 Support PHP7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.