evil.cz
Linux do každé rodiny, linux do každé kanceláře!

PHP + MySQL + PDO (Ubuntu 8.10 Server)

sudo apt-get install php5-mysql
sudo apt-get install php5-dev
sudo apt-get install libmysqlclient-dev
sudo apt-get install php-pear
sudo apt-get install make
sudo pecl install pdo
sudo pecl install pdo_mysql

edit /etc/php5/apache2/php.ini, add the line for the pdo extension and the specific drivers to the php.ini file, and save the file:

extension=pdo.so
extension=pdo_mysql.so

(edit also /etc/php5/cli/php.ini the same way!!!)

sudo /etc/init.d/apache2 restart

see: http://ubuntuforums.org/archive/index.php/t-364883.html for details

Ještě nehodnoceno. Buďte první :-)