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.