Compile and install Centos 6.5 under php5.6.2

Source: Internet
Author: User

  1. Pure CentOS 6.5 System

  2. Configure a 163yum source (a document will be written later)

  3. Install the development package:yum-y groupinstall "Development Tools"

  4. installation MySQL: yum-y install MySQL mysql-server mysql-devel

  5. download php-5.6.2 wgethttp://cn2.php.net/distributions/php-5.6.2.tar.gz

  6. Decompression TAR-ZXVF php-5.6.2.tar.gz

  7. Switch to php-5.6.2

  8. ./configure \
    --prefix=/usr/local/php \
    --WITH-CONFIG-FILE-PATH=/USR/LOCAL/PHP/ETC \
    --ENABLE-FPM \
    --WITH-FPM-USER=PHP-FPM \
    --WITH-FPM-GROUP=PHP-FPM \
    --WITH-MYSQL=MYSQLND \//Here Mysqlnd is the internal find command
    --with-mysql-sock=/tmp/mysql.sock \
    --with-libxml-dir \
    --WITH-GD \
    --with-jpeg-dir \
    --with-png-dir \
    --with-freetype-dir \
    --with-iconv-dir \
    --with-zlib-dir \
    --with-mcrypt \
    --ENABLE-SOAP \
    --ENABLE-GD-NATIVE-TTF \
    --ENABLE-FTP \
    --enable-mbstring \
    --ENABLE-EXIF \
    --disable-ipv6 \
    --with-pear \
    --with-curl \
    --with-openssl

9. No installation errors, install directly with Yum Remember to pack the-devel (libcurl libpng libcrul12, etc.)
10. If the file path cannot be found, use Find/-name ' name ' to look up
11. Most of the warning occurs because the version is installed by default and can be removed from the line

12.make



This article is from "Hey Linux" blog, be sure to keep this source http://heilinux.blog.51cto.com/6123663/1575582

Compile and install Centos 6.5 under php5.6.2

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.