在 CPanel 上安装 PDO_MYSQL PHP 扩展?
我在客户服务器上安装 Magento 时收到此错误,“必须加载 PHP 扩展“pdo_mysql””。如何通过 CPanel Accelerated 安装/启用此扩展?
服务器信息如下:
- cPanel Version 11.24.5-STABLE
- cPanel Build 38506
- Apache version 2.2.13 (Unix)
- PHP version 5.2.8
- MySQL version 5.0.81-community
- Architecture i686
- 操作系统 Linux
- Kernel version 2.6.18-128.1.6 .el5
- cPanel Pro 1.0 (RC1)
谢谢!
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?
Server information is as follows:
- cPanel Version 11.24.5-STABLE
- cPanel Build 38506
- Apache version 2.2.13 (Unix)
- PHP version 5.2.8
- MySQL version 5.0.81-community
- Architecture i686
- Operating system Linux
- Kernel version 2.6.18-128.1.6.el5
- cPanel Pro 1.0 (RC1)
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您安装了cloudlinux,您可以在cPanel 中启用PDO。在 cPanel 中搜索 PHP 版本,然后在出现的屏幕上选择并启用 PDO,最后选择保存。
* http://docs.cloudlinux.com/index.html?using_php_selector.html
如果您没有安装 CloudLinux 和 PhpSelector,您将需要一个管理员帐户才能通过 easyapache 安装 PDO。在 WHM 中,请遵循以下指南:
在 Easyapache 中启用 PDO
附言。我注意到您使用的是 11.24.5-STABLE。这是 WHM/cPanel 的一个非常旧的版本。您应该更新您的服务器,因为 cPanel 不再支持此版本的 cPAnel。
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
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:
Enabling PDO in Easyapache
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.
我正在使用 Magento CE 1.7、CentOS 6 和 WHM 11.38,以下是我为解决在 Magento 安装过程中收到的“PHP 扩展“pdo_mysql”必须加载”错误所做的操作:
打开新创建的 php.ini 文件并添加以下内容:
扩展名=pdo.so
扩展名=pdo_sqlite.so
扩展名=sqlite.so
extension=pdo_mysql.so
这可能是使用终端重新启动 Apache 的好时机(# service httpd restart)。希望有帮助!
I'm using Magento CE 1.7, CentOS 6, and WHM 11.38, and here's what I did to resolve the 'PHP Extension "pdo_mysql" must be loaded' error I received during my Magento install:
Open the newly created php.ini file and add the following:
extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so
This might be a good time to restart Apache using terminal (# service httpd restart). Hope that helps!
我认为您无法在共享主机或 cPanel 中完成此操作。
说服虚拟主机为您安装它。
I don't think you can do it in a shared host or with cPanel.
Convince the webhost to install it for you.