Source Installation PHP

Source: Internet
Author: User
<span id="Label3"></p><p><p>Php<br>Installing the extension source<br>Yum Install Epel-release<br>Yum Update<br>Yum install Libmcrypt libmcrypt-devel mcrypt mhash-y<br>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 gdb M-devel db4-devel libxpm-devel libx11-devel gd-devel gmp-devel readline-devel libxslt-devel expat-devel xmlrpc-c Xmlrpc-c-devel</p></p><p><p>Compiling the installation<br>Tar zxvf php-5.6.24.tar.gz<br>CD php-5.6.24<br>./configure--prefix=/usr/local/lnmp/php-5.6.24 \<br>--enable-fpm--with-mcrypt--enable-mbstring \<br>--disable-pdo--with-curl--disable-debug \<br>--disable-rpath--enable-inline-optimization \<br>--with-bz2--with-zlib--enable-sockets \<br>--ENABLE-SYSVSEM--ENABLE-SYSVSHM--ENABLE-PCNTL \<br>--enable-mbregex--with-mhash--enable-zip \<br>--WITH-PCRE-REGEX--WITH-MYSQL--WITH-MYSQLI \<br>--with-gd--with-jpeg-dir--with-openssl<br>Make &&make Install</p></p><p><p>Creating a configuration file<br>CP Php-fpm.conf.default php-fpm.conf<br>Vim/usr/local/lnmp/php-5.6.24/etc/php-fpm.conf<br>Change<br>user = www<br>Group = www</p></p><p><p>Create WWW users and groups<br>Groupadd www<br>Useradd-g www www</p></p><p><p>Cp/var/opt/lnmp/php-5.6.24/php.ini-production/usr/local/lnmp/php-5.6.24/lib/php.ini<br>Vim/usr/local/lnmp/php-5.6.24etc/php-fpm.conf<br>Turn on pid = run/php-fpm.pid Comment</p></p><p><p>Vim/usr/local/lnmp/nginx-1.10.1/conf/nginx.conf<br>Open Interpreting PHP Home page</p></p><p><p>Start PHP and Nginx<br>/usr/local/lnmp/php-5.6.24/sbin/php-fpm<br>/usr/local/lnmp/nginx-1.10.1/sbin/nginx</p></p><p><p>Source Installation PHP</p></p></span>

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.