Linux under php5.6.30 installation

Source: Internet
Author: User

Download PHP Package
wget http://Au1.php.net/get/php-5.6.30.tar.gz/from/this/mirror
Move to the/usr/local directory and switch to the/usr/local directory
MV Php-5.6.30.tar.gz/usr/local
Cd/usr/local
Extract
TAR-ZXVF php-5.6.30.tar.gz
Go to Catalog
CD php-5.6.30
Configuration
./configure--prefix=/usr/local/php--with-curl--with-freetype-dir --with-gd--with-gettext--with-iconv- dir --with-kerberos--with-libdir=lib64--with-libxml-dir --with-mysql--with-mysqli-- With-openssl--with-pcre-regex--with-pdo-mysql--with-pdo-sqlite--with-pear--with-png-dir --with-xmlrpc- -with-xsl--with-zlib--enable-fpm--enable-bcmath--enable-libxml--enable-inline-optimization-- Enable-gd-native-ttf--enable-mbregex--enable-mbstring--enable-opcache--enable-pcntl--enable-shmop--enable-soap --enable-sockets--enable-sysvsem--enable-xml--enable-zip

Configuration of the process may encounter a lot of error, basically is the dependency package is not installed, according to the specific error yum List | grep error keyword, search for the package to be installed, and then directly yum installation can be, below with a few of the errors I encountered

Generally installed is a 64-bit Linux system, directly select X86_64 installation can be

Take the last picture as an example

Yum-y Install libxslt.x86_64 libxslt-devel.x86_64 The two are usually

Compile && Install

Make && make install

Move related profiles

CP Php.ini-development/usr/local/php/lib/php.ini
Cp-r./sapi/fpm/php-fpm.conf/usr/local/php/etc/php-fpm.conf



Establish a soft connection start

Ln-s/usr/local/php/sbin/php-fpm/etc/init.d/

/etc/init.d/php-fpm

To see if it started successfully

PS aux | grep php-fpm

Kill PHP-FPM.

Killall PHP-FPM




about how Nginx and PHP communicate can step into my other blog: http://www.cnblogs.com/changfengSven/p/7205000.html

Linux under php5.6.30 installation

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.