CentOS 6.5 Web Service mode system installation PHP

Source: Internet
Author: User
Tags mcrypt pear

1 The first is to adhere to LIBXML2 problems, the following tips:

Checking for Xml2-config path .../home/www/thirdlib/libxml2/bin/xml2-config
Checking whether Libxml build works ... no
Configure:error:build test failed. Please check the Config.log for details.

Resolved as follows:

Shell > Yum-y Install Libxml2-devel

Change the--WITH-LIBXML-DIR=/HOME/WWW/THIRDLIB/LIBXML2 in the installation command to--WITH-LIBXML-DIR=/USR because the Libxml2-devel is installed in the/user by default.

2 No XPM installed, reinstall Yum-y Install ....

3 error configure:error:freetype.h not found.

Yum Install Freetype-devel

The following is the installation command line

./configure--prefix=/home/www/php

--with-config-file-path=/home/www/php/etc

--with-mysql=/home/www/mysql

--with-mysqli=/home/www/mysql/bin/mysql_config

--with-zlib=/home/www/thirdlib/zlib

--WITH-LIBXML-DIR=/USR--with-pcre-dir=/home/www/thirdlib/pcre

--with-jpeg-dir=/home/www/thirdlib/jpeg

--with-png-dir=/home/www/thirdlib/libpng

--with-freetype-dir=/home/www/thirdlib/freetype

--with-gd=/home/www/thirdlib/gd2

--with-openssl=/home/www/thirdlib/openssl

--with-mcrypt=/home/www/thirdlib/libmcrypt

--with-mhash=/home/www/thirdlib/mhash

--with-xpm-dir=/usr/lib64

--enable-fpm

--enable-mbstring

--enable-xml

--enable-soap

--enable-sockets

--enable-zip

--without-sqlite3

--without-pear

--without-pdo-sqlite

--without-cdb

Final installation Successful command line:

./configure--prefix=/home/www/php--with-config-file-path=/home/www/php/etc--with-mysql=/home/www/mysql-- With-mysqli=/home/www/mysql/bin/mysql_config--with-zlib=/home/www/thirdlib/zlib--WITH-LIBXML-DIR=/USR-- With-pcre-dir=/home/www/thirdlib/pcre--with-jpeg-dir=/home/www/thirdlib/jpeg--with-png-dir=/home/www/thirdlib/ Libpng--with-freetype-dir=/home/www/thirdlib/freetype--with-gd=/home/www/thirdlib/gd2--with-openssl=/home/www/ Thirdlib/openssl--with-mcrypt=/home/www/thirdlib/libmcrypt--with-mhash=/home/www/thirdlib/mhash--with-xpm-dir= /usr/lib64--enable-fpm--enable-mbstring--enable-xml--enable-soap--enable-sockets--enable-zip--without-sqlite3- -without-pear--without-pdo-sqlite--without-cdb

4 Installing the Extension Library curl hint no autoconf, yum install autoconf after resolving

5 Installing the Curl extension

A separate section discusses

6 Installing SSH2

Yum Install Libssh2-devel

./configure--with-php-config=/home/www/php/bin/php-config

Phpize ...

CentOS 6.5 Web Service mode system installation PHP

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.