php compiler installation in CentOS Linux

Source: Internet
Author: User
Tags curl openssl php compiler nginx server

One, download PHP source package wget http://php.net/distributions/php-5.6.3.tar.gz Second, add dependent application yum install-y gcc gcc-c++ autoconf libjpeg Libjpeg-devel libpng libpng-devel freetype freetype-devel libpng libpng-devel libxml2 libxml2-devel zlib zlib-devel glibc Glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses Curl openssl-devel gdbm-devel db4-devel libxpm-devel libX11-devel Gd-devel gmp-devel readline-devel libxslt-devel expat-devel xmlrpc-c xmlrpc-c-devel Three, unzip PHP and configure the installation tar-zvxf php-5.6.3.tar.gz
cd php-5.6.3
./configure--prefix=/usr/local/php-- With-config-file-path=/usr/local/php/etc--enable-fpm--enable-sysvsem--enable-sockets--enable-pcntl-- Enable-mbstring--enable-mysqlnd--enable-opcache--enable-shmop  --enable-zip--enable-ftp-- Enable-gd-native-ttf--enable-wddx--enable-soap

  四、拷贝一份正式的php-fpm,文件位于/usr/local/php/etc/下。From php5.3 onwards, PHP-FPM has been integrated into PHP, so even if you use the Nginx server, you do not need to install fastcgi or PHP-FPM. cp php-fpm.conf.default php-fpm.conf。然后从安装目录下拷贝一份php.ini到/usr/local/php/etc/下。   五、运行/usr/local/php/sbin/php-fpm启动php-fpm  vi. Edit/usr/local/nginx/conf/nginx.conf, php-fpm related uncomment Seven,CP php-5.5.25/sapi/fpm/init.d.php-fpm/etc/init.d/php-fpmchmod +x/etc/init.d/php-fpmchkconfig--add php-fpmchkconfig--level php-fpm on 

So you can use service PHP-FPM s

php compiler installation in CentOS Linux

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.