3

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.

ajreal
  • 46,720
  • 11
  • 89
  • 119
Erman Taylan
  • 383
  • 1
  • 3
  • 12
  • 3
    [What does MySQL Error 2013 mean?](http://serverfault.com/questions/29597/what-does-mysql-error-2013-mean) – ajreal Jan 05 '11 at 16:40
  • i am afraid i didnt try to write 127.0.0.1 instead of localhost. it was because of this trick. thanks for your comment about error 2013' – Erman Taylan Jan 05 '11 at 16:57

1 Answers1

0
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

Thirumalai murugan
  • 5,698
  • 8
  • 32
  • 54