Linux-based php Extension Method-Linux Enterprise Application-Linux server application information. For details, refer to the following section. The php extension in linux is somewhat different from the extension installation in windows. The following describes the extension of the pdo_mysql module in linux.
1. In the original php installation package, enter etc/pdo_mysql. Assume that your php is installed in/usr/local/php. Run/usr/local/php/bin/phpize
2. compile .. /Configure -- with-php-config =/usr/local/php/bin/php-config -- with-pdo-mysql =/usr/local/mysql (assume that your mysql is installed in/usr/local/mysql)
3. Compile and install the SDK. Make, make install.
4. in step 2, a no-debug-non-zts-20050922 folder will be added in/usr/local/php/lib/php/extensions, which generates a pdo_mysql.so
5. Modify php. ini and add the extension statement extension = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20050922/pdo_mysql.so"
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.