2014-08-30 77 views
0

我在我的VPS上安装了OpenShift Origin,并且安装了最新的CentOS。OpenShift Origin PHP缺少MySQL扩展

现在我正在尝试部署一个wordpress实例来运行博客,并且我遵循博客文章来使用这些命令。

rhc app create wordpress php-5.4 mysql-5.5 --fromcode=https://github.com/openshift/wordpress-example 
git add * 
git commit -m init 

并且上传过程完成没有任何错误。

Your application 'wordpress' is now available. 

URL:  http://******/ 
SSH to:  ******@****** 
Git remote: ssh://******@******/~/git/wordpress.git/  Cloned to: /Users/amphineko/Temp/wordpress 

后来,当我访问上面提供的URL(HTTP:// ** /),它告诉我有什么不对劲。

Your PHP installation appears to be missing the MySQL extension which is required by WordPress. 

但我试图通过Web控制台相同的应用程序下添加一个phpMyAdmin的墨盒和访问它,它工作正常。

我的WordPress配置有什么问题,比如定义MySQL扩展的需求?

回答

0

尝试创建一个“phpinfo”页面并查看它所加载的扩展名。还要确保你有正确的MySQL扩展安装为您正在使用的PHP盒式磁带的版本。有可能phpmyadmin盒式磁带使用的是您的服务器上安装的不同版本的php,而不是您的php盒式磁带。