ubuntu16.4 deepin 15.3 Add PPA source installation php5.6

Source: Internet
Author: User

To install PHP5.6 on Ubuntu 16.4 or deepin 15.3, we need to add the source manually.

On https://launchpad.net/+search?field.text=php, you can find the source of the software you want by searching for it, and the PPA is the source of the software.

How to install PHP5.6:

1. Add PPA Source
sudo su-"deb Http://ppa.launchpad.net/ondrej/php/ubuntu xenial main" | Tee-a/etc/apt/"deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main"  | Tee-a/etc/apt/sources.listapt-key adv--keyserver keyserver.ubuntu.com--recv-keys e5267a6capt- Get Updateexit

2, Installation PHP5.6
sudo apt-get install php5.6 php5.6-fpm php5.6-cli php5.6-mcrypt

3. View the installation version
Php-version

4. Configure PHP
sudo gedit/etc/php/5.6/fpm/php.ini

Open php config file, find the cgi.fix_pathinfo=1 option, remove the comment semicolon in front of it; , and then set its value to 0, as follows
             Cgi.fix_pathinfo=0

Then configure the www.conf file

sudo gedit/etc/php5/fpm/pool.d/www.conf

Search Listen keyword, find listen =/run/php/php5.6-fpm.sock , change to listen =/var/run/php/php5.6-fpm.sock

6. Restart PHP5-FPM
sudo service php5. 6-fpm Restart

ubuntu16.4 deepin 15.3 Add PPA source installation php5.6

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.