Php compilation error

Source: Internet
Author: User
Php compilation error php-5.3.28/ext/mysql/php_mysql.c: 2266: undefined reference to '_ mysqlnd_fetch_lengths'
Mysql has been compiled. how can this problem be solved?


Reply to discussion (solution)

Post your compilation steps

Php compilation is successful. When apache is started, the following prompt is displayed: Cannot load modules/libphp5.so into server:/usr/local/apache/modules/libphp5.so: undefined symbol: unixd_config.

Lnmp.org

The problem is not very clear. paste the command you used when compiling php.

Apache does not support php.

Axps2 is not added to apache extension during php compilation.

Apache does not support php.

Axps2 is not added to apache extension during php compilation.
Added -- with-apxs2

The compilation is successful. When apache is restarted, the following error occurs: Unable to load dynamic library '/usr/local/php/include/php/ext/php_mysql.dll.
How can this problem be solved?

This php_mysql.dll exists!

The compilation is successful. When apache is restarted, the following error occurs: Unable to load dynamic library '/usr/local/php/include/php/ext/php_mysql.dll.
How can this problem be solved?
Check whether mysql extensions are not loaded in php. ini. extension = php _ mysql. dll and/usr/local/php/include/php/ext/php_mysql.dll.

The above problem is solved. restart apache and a new problem occurs. Cannot load modules/libphp5.so into server:/usr/local/apache/modules/libphp5.so: undefined symbol: php_escape_html_entities

It turns out that the installation package is incorrect. if the gz package does not work, you must use the bz2 package.

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.