The PHP extensions under Linux are somewhat different from the extensions installed under Windows. The following is the extension of PHP under Linux pdo,pdo_mysql module to illustrate
1. In the PHP original code installation package, into the etc/pdo_mysql. Let's say your PHP is installed in the/usr/local/php. Execute/usr/local/php/bin/phpize
2. To compile .../configure--with-php-config=/usr/local/php/bin/php-config--with-pdo-mysql=/usr/local/mysql ( Suppose your MySQL is installed in/usr/local/mysql)
3. Compile and install. Make,make install.
4. By the 3rd step. In the/usr/local/php/lib/php/extensions, there will be a no-debug-non-zts-20050922 folder, which generates a pdo_mysql.so
5. Modify php.ini, add extension statement extension= "/usr/local/php/lib/php/extensions/no-debug-non-zts-20050922/pdo_mysql.so"
6. Restart Apache. OK extension complete
7. The method of installing PDO is the same as that of Pdo_mysql. But be aware that if the system does not have a aclocal command during this installation, then install the command, which is in the autoconf package.