When php5.5.6 is installed in Linux, the following error occurs: libxml2.config is missing.

Source: Internet
Author: User
When php5.5.6 is installed in Linux, the following error occurs: libxml2.config is missing, but libxml2 has been installed and can be found in the directory. it has not been used in Linux, now the project needs to be, forget to help ......


Reply to discussion (solution)

Hurtful Linux...

Reinstall libxml2 and libxml2-devel packages
Yum install libxml2
Yum install libxml2-devel-y
Find the xml2-config file after installation
[Root @ test31 php-5.4.1] # find/-name "xml2-config"
/Usr/bin/xml2-config

Reinstall libxml2 and libxml2-devel packages
Yum install libxml2
Yum install libxml2-devel-y
Find the xml2-config file after installation
[Root @ test31 php-5.4.1] # find/-name "xml2-config"
/Usr/bin/xml2-config
This problem has been fixed, but the php file cannot be parsed after apache is restarted.

I learned. It's just about LUNIX!

Use phpinfo ();


Check whether it is loaded.

Command line: php-m can also


Reinstall libxml2 and libxml2-devel packages
Yum install libxml2
Yum install libxml2-devel-y
Find the xml2-config file after installation
[Root @ test31 php-5.4.1] # find/-name "xml2-config"
/Usr/bin/xml2-config
This problem has been fixed, but the php file cannot be parsed after apache is restarted.
That is the problem of apache and php configuration.

Like windows, php and related modules need to be loaded.


Use phpinfo ();


Check whether the file has been loaded [/quote
That is, phpinfo () cannot come ....

If the boss has already gotten it out, I will close it...

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.