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:
- Cd lanmp // move to the installation package directory
- Tar zxvf PDO_MYSQL-1.0.2.tgz // Unzip the installation package
- Cd PDO_MYSQL-1.0.2 // enter the installation directory after decompression
- /Www/wdlinux/php/bin/phpize // query the Environment version
- . /Configure -- with-php-config =/www/wdlinux/php/bin/php-config -- with-pdo-mysql =/www/wdlinux/mysql // test the configuration before compilation
- Make // compile the installation package
- Make install // install
Copy code
Now you will see
- [Root @ PDO_MYSQL-1.0.2] # make install
- Installing shared extensions:/www/wdlinux/php-5.2.17/lib/php/extensions/no-
- Debug-non-zts-20060613/
Copy code
The installation is complete!
Restart related services.
If your environment is lamp, run this command
- Service httpd restart
Copy code
If your environment is lnmp, run this command
- 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.
- 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/
- Extension = pdo_mysql.so
Copy code
This article is excerpted from http://www.wdlinux.cn/bbs /.