Install php5.4 on ubuntu

Source: Internet
Author: User
Tags vps
I encountered a problem yesterday. I was depressed for one afternoon and talked about a php bug, So I almost upgraded PHP. Now I have a vps, and I want to dress php5.4. Compilation is troublesome. So record the installation process. All the commands are as follows: apt-getinstallpython-software-propertiessudoadd-apt-repositorypp

I encountered a problem yesterday. I was depressed for one afternoon and talked about a php bug, So I almost upgraded PHP. Now I have a vps, and I want to dress php5.4. Compilation is troublesome. So record the installation process. All the commands are as follows: apt-get install python-software-propertiessudo add-apt-repository pp

I encountered a problem yesterday. I was depressed for one afternoon and talked about a php bug, So I almost upgraded PHP. Now I have a vps, and I want to dress php5.4. Compilation is troublesome. So record the installation process. All the commands are as follows:

apt-get install python-software-propertiessudo add-apt-repository ppa:ondrej/php5sudo apt-get updatesudo apt-get install php5-cli php5-fpm php-pear php5-mysql libcurl4-openssl-devsudo apt-get install php5-devsudo pecl install pecl_http  # Update /etc/php5/fpm/php.ini and /etc/php5/cli/php.ini with http.so

The php5.4 method will be 5.3

# Install ppa-purge apt-get install ppa-purge # Remove source ppa-purge ppa: ondrej/php5 apt-get update & apt-get upgrade-y & apt-get autoremove-y & apt-get autoclean-y

By default, fpm of php5.4 is connected using socket, so you need to change it to 127.0.0.1: 9000 IN nginx settings.

Original article address: Install php5.4 on ubuntu. Thank you for sharing it with me.

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.