? Pro-Test Install PHP

Source: Internet
Author: User

Pro-Test Install PHP
1. Tar zvxf php-5.3.8.tar.gz
2. CD php-5.3.8
3.
./configure \
--prefix=/usr/local/php \
--with-mysql=/usr/local/mysql \
--WITH-APXS=/USR/LOCAL/APACHE2/BIN/APXS \
--with-libxml-dir=/usr/local/libxml2

A problem occurred:
Configure:error:xml2-config not found. Please check your

LIBXML2 installation.
[Email protected] php-5.3.28]#--prefix=/usr/local/php \
-------------------------------------------------------
Solution:
Check if the LIBXM package is installed

[Email protected] php-5.3.8]# Rpm-qa |grep libxml2
libxml2-2.6.26-2.1.12
libxml2-python-2.6.26-2.1.12


Reinstall the LIBXML2 and Libxml2-devel packages

Yum Install LIBXML2

Yum Install Libxml2-devel-y

Find out if the Xml2-config file exists after installation

[[email protected] php-5.3.8]# Find/-name "Xml2-config"
/usr/bin/xml2-config
Reinstall PHP if it exists

[Email protected] php-5.3.8]#./configure

The sign of successful installation is the presence of a license
--------------------------------------------------
And then re-
4.
Make && make install


Method Two: Install LIBXML2 (not tested)
1 tar zxvf libxml2-2.6.32.tar.gz
2 CD libxml2-2.6.32
3./configure--PREFIX=/USR/LOCAL/LIBXML2
4 Make
5 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.