在CPanel上安装PDO_MYSQL PHP扩展? [英] Installing PDO_MYSQL PHP extension on CPanel?

查看:44
本文介绍了在CPanel上安装PDO_MYSQL PHP扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在客户服务器上安装Magento时收到此错误,必须加载PHP扩展"pdo_mysql".如何通过CPanel Accelerated安装/启用此扩展?

I recieved this error while installing Magento on a customer's server, 'PHP Extension "pdo_mysql" must be loaded'. How would one go about installing/enabling this extension through CPanel Accelerated?

服务器信息如下:

  • cPanel版本11.24.5-STABLE
  • cPanel内部版本38506
  • Apache 2.2.13版(Unix)
  • PHP版本5.2.8
  • MySQL版本5.0.81-社区
  • 架构i686
  • 操作系统Linux
  • 内核版本2.6.18-128.1.6.el5
  • cPanel Pro 1.0(RC1)

谢谢!

推荐答案

如果已安装cloudlinux,则可以在cPanel中启用PDO.在cPanel中搜索PHP版本,然后在出现的屏幕上选择并启用PDO,最后选择保存". * http://docs.cloudlinux.com/index.html?using_php_selector.html

You can enable PDO in cPanel if you have cloudlinux installed. In cPanel search for PHP Version and on the resulting screen select and enable PDO and finally select save. * http://docs.cloudlinux.com/index.html?using_php_selector.html

如果未安装CloudLinux和PhpSelector,则需要一个管理员帐户才能通过easyapache安装PDO.在WHM中,请遵循以下指南:

If you do not have CloudLinux and PhpSelector installed you will need an administrator account to install PDO through easyapache. In WHM follow this guide:

  1. 登录到WHM( http://domain.com/whm )
  2. 转到WHM»软件»EasyApache(Apache更新)
  3. 选择以前保存的配置(**默认**)",然后单击开始基于配置文件自定义"
  4. 在"Apache版本"页面上,单击下一步"
  5. 在"PHP版本"页面上,单击下一步"
  6. 在简短选项列表"页面上,单击详尽选项列表"
  7. 在详尽选项列表"上,确保选择了PDO,PDO sqlite和PDO MySQL.
  8. 然后单击页面底部的生成".
  1. Log in to WHM ( http://domain.com/whm )
  2. Goto WHM »Software »EasyApache (Apache Update)
  3. Select "Previously Saved Config (** DEFAULT **)" and click "Start customizing based on profile"
  4. On the "Apache Version" page click "Next"
  5. On the "PHP Version" page click "Next"
  6. On the "Short Options List" page click"Exhaustive Options List"
  7. On the "Exhaustive Options List" ensure that PDO, PDO sqlite and PDO MySQL are selected.
  8. Then Click Build on the bottom of the page.

PS.我注意到您使用的是11.24.5-STABLE.这是WHM/cPanel的一个非常旧的版本.您应该更新服务器,因为cPanel不再支持此版本的cPAnel.

PS. I note that you are on 11.24.5-STABLE. This is a extremely old version of WHM/cPanel. You should update your server as this version of cPAnel is no longer supported by cPanel.

这篇关于在CPanel上安装PDO_MYSQL PHP扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆