Problems with apache2 + php5 + mysql5 configuration On debian

Source: Internet
Author: User
Problems encountered when configuring apache2 + php5 + mysql5 On debian-Linux Enterprise Application-Linux server application information. The following is a detailed description. Because I wrote a php extension, I initially installed only apache2 + php5 On debian. php5 downloaded the source code and compiled it myself. In this environment, I lowered the extension because it was useless, so I never expected to install mysql. Recently, I promised my friends to help me write something and use mysql, so I am ready to install it. At first, I thought it was not easy. I didn't expect many unexpected small problems.

The mysql version was first installed on the mysql official website. The result is from 4. x to 5. in Version x, neither src, rpm, nor non-rpm can be installed on debian, which is very depressing and has not been solved yet.

No way, you can only install it through the debian source.

Apt-get install mysql-server, and a version of 5.0 is installed,

Apt-get install mysql-client, which is a client tool,

After installation, I will re-compile php and add the -- with-mysql item,

$ PHP_SRC_DIR/configure -- with-apxs2 =/usr/local/apache2/bin/apxs -- with-mysql

$ PHP_SRC_DIR/make

$ PHP_SRC_DIR/make install

The results showed that the mysql client library could not be found. google found the required

Apt-get install libmysqlclient15-dev, and then recompile the installation, phpinfo () has a mysql project.

During the installation process, the system prompts that a samba package cannot be updated, resulting in the following apt-get install columns not updating normally, no way to sudo rm-f/var/lib/dpkg/info/samba. after p *, apt-get remove samba can continue to be installed. There is ssh, and samba does not need to be installed.
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.