Pdo mysql and gd extensions install

July 7, 2021 . 1 MIN READ

PHP5 plugins outside those included in a plain default install (from installing just a php5 plugin for apache, or php5-fpm or similar) will not exist, and because of that, you need to install them. From your post, I gather that you need the mysql and gd plugins. Those packages are php5-gd and php5-mysql. They can be installed with the following command:

sudo apt-get install php5-gd php5-mysql

Once complete, you will need to restart the PHP service. Depending on how it was installed, you will need to do one of the following items:

  • If you installed it via LAMP (Linux Apache, MySQL, PHP5), then you’ll need to restart the entire apache instance with: sudo service apache2 restart
  • If you installed PHP from a separate service, like php5-fpm, then use sudo service php5[tab] restart (where you actually press the “tab” key where it says [tab]) After that, your php5 should have those extensions loaded.

http://askubuntu.com/questions/384677/how-do-i-install-and-enable-pdo-mysql-and-gd-extensions-for-php5

Leave a Reply

Your email address will not be published. Required fields are marked *