我的项目在本地运行良好。当我把它放在 Debian 上时,我遇到了一个错误:
PDO Connection Error: SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 110
网上搜了一下,大家都以为是databases.yml文件的问题。我尝试了很多,但无法解决问题。
最佳答案
For the PDO, I think all you have to activate it is to add in your php.ini the
扩展名=pdo.so 行。
对于 curl 和 imagemagick 扩展,是否安装了模块?
sudo apt-get install php5-curl php5-imagick
关于php - 尝试将 symfony 项目部署到 Debian 时面临 "PDO Connection Error",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4606586/