Install pdo_mysql manually using lanmp, lnmp, and lamp in wdcp environment

Source: Internet
Author: User
Tags zts
In wdcp environment lanmp/lnmp/lamp manually install pdo_mysql method because WDCP has downloaded the PDO_MYSQL-1.0.2 in the temporary installation directory, so we only need to log on to the server on SHH, and move to the installation package lanmp directory to perform the following operations: cdlanmp // move to the installation package directory... Wdcp Lanmp/lnmp/lamp in environment Install pdo_mysql manually Method
Because WDCP already has a download PDO_MYSQL-1.0.2 in the installation temporary directory, so we just need to log on to the server on SHH and move to the installation package lanmp directory.

The operations are as follows:
  1. Cd lanmp // move to the installation package directory
  2. Tar zxvf PDO_MYSQL-1.0.2.tgz // Unzip the installation package
  3. Cd PDO_MYSQL-1.0.2 // enter the installation directory after decompression
  4. /Www/wdlinux/php/bin/phpize // query the Environment version
  5. . /Configure -- with-php-config =/www/wdlinux/php/bin/php-config -- with-pdo-mysql =/www/wdlinux/mysql // test the configuration before compilation
  6. Make // compile the installation package
  7. Make install // install
Copy code


Now you will see
  1. [Root @ PDO_MYSQL-1.0.2] # make install
  2. Installing shared extensions:/www/wdlinux/php-5.2.17/lib/php/extensions/no-
  3. Debug-non-zts-20060613/
Copy code



The installation is complete!


Restart related services.

If your environment is lamp, run this command
  1. Service httpd restart
Copy code


If your environment is lnmp, run this command
  1. Service nginxd restart
Copy code



If your environment is lanmp, run the above two commands! OK. after installation is complete, you can find the corresponding pdo_mysql in phpinfo. php.
Errors occur. check whether the php. ini configuration file in/www/wdlinux/etc/has been written to the following extension path and component.
  1. Extension_dir =/www/wdlinux/php/lib/php/extensions/***********//****** the content of the make install content displayed after, mostly/www/wdlinux/php-5.2.17/lib/php/extensions/no-debug-non-zts-20060613/
  2. Extension = pdo_mysql.so
Copy code
 
This article is excerpted from http://www.wdlinux.cn/bbs /.
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.