Solution to the php and mysql problems in ubuntu7.04

Source: Internet
Author: User
Ubuntu server is installed, and php can run. However, it seems that there is a problem with the connection between php and mysql. This error occurs when the apt-getinstallapache2libapache2-mod-php5php5mysql-server is running php files related to mysql operations. ezSQL_mysqlrequiresmySQLLibtobecompiledandor newly installed Ubuntu7.04 server, php can run, but it seems that there is a problem with the connection between php and mysql. Apt-get install apache2 libapache2-mod-php5 php5 mysql-server

This error occurs when you run the PHP file related to mysql operations.

EzSQL_mysql requires mySQL Lib to be compiled and or linked in to the PHP engine.

Later found that this php5-mysql was not installed, so installed on the php5-mysql, but does not seem to have any effect, depressed.

Solution:

Php. ini of php5 is extension_dir = "./" by default. You can change it to the directory where mysql. so is located.

Ubuntu 20060613 is in the/usr/lib/php5/+ lfs/directory. It's dizzy, but it's okay. Find it.
Related Article

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.