Compile and install php5.6.2 under Centos6.5

Source: Internet
Author: User
Install the development package: yum-ygroupinstall & quot; DevelopmentTools & quot; install mysql :&
  1. Pure Centos 6.5 system

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

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

  4. Install mysql: yum-y install mysql-server mysql-devel

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

  6. Unzip 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 an internal search 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. if an uninstalled error occurs, directly use yum for installation. do not forget to install-devel (libcurl libpng libcrul12, etc.) 10. if the file path cannot be found, use find/-name 'Name' to search for 11. warning occurs mostly because the version has been installed by default. you can remove this row 12. make13.make install

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.