facing "PDO Connection Error" when try to deploy symfony project to Debian

1.3k Views Asked by At

My project works fine on my local. When i put it on Debian, I am facing an error:

PDO Connection Error: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 110

I searched it on the internet, everyone thinks its because of databases.yml file. I tried lots of one but could not fix the prob.

1

There are 1 best solutions below

0
On
For the PDO, I think all you have to activate it is to add in your php.ini the

extension=pdo.so line.

For curl and imagemagick extensions, are the modules installed?

sudo apt-get install php5-curl php5-imagick