kosta
By:
kosta

How to install package if E: Unable to locate package php-mysql

September 30, 2016 21.2k views
LEMP Ubuntu

Ubuntu node v4.2.1 on 14.04

$ sudo apt-get install php-fpm php-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php-fpm
E: Unable to locate package php-mysql

1 comment
1 Answer

@kosta is correct.

For Ubuntu 14.04

sudo apt-get update;
sudo apt-get install php5-mysql php5-mysql

On Ubuntu 16.04 you would instead use:

sudo apt-get update;
sudo apt-get install php7.0-fpm php7.0-mysql;
Have another answer? Share your knowledge.