跟随http://kb.sp.parallels.com/en/118378我成功地将php 5.4.38和5.5.21安装到在php 5.3上运行的centos 6.6 plesk服务器
在此服务器上转移joomla网站后,我得到:
Error displaying the error page: Application Instantiation Error: Could not connect to MySQL.
通过在joomla的configuration.php中将$ dbtype从mysqli更改为mysql,我得到了它的工作,但这不是我想要的
此外我还有更多使用mysqli转移的自定义网站,所有这些网站都会返回:
Warning: mysqli_connect(): (HY000/2002): No such file or director
我检查了unix_socket,这是默认设置,但是我将它保存在php 5.4的PHP 5.4和5.5中mysqli.default_socket = /var/lib/mysql/mysql.sock
仍然没有
是不是php-mysqli没有附加版本的php? 如果是这样的话我怎么能在这些并行的php实例上安装模块?
默认Centos 5.3.3的mysqli的phpinfo是答案 0 :(得分:1)
我遇到同样的问题,我决定用127.0.0.1
更改“localhost”