简体   繁体   English

如何通过ssh或cpanel在centos中安装pdo和pdo-mysql?

[英]how to install pdo and pdo-mysql in centos via ssh or cpanel?

the problem that i want to use drupal 7.8 and it require pdo and i am not the root so when i try to install it from pear gives me an error i tried many thing but nothing worked 我想使用drupal 7.8的问题,它需要pdo,而我不是root用户,所以当我尝试从pear安装它时出现错误,我尝试了很多事情,但没有任何效果

but if any one have any solution for me or the root share it with us 但如果有人对我有任何解决方案,或者根源与我们分享

thnx n

the pear error message 梨错误消息

"Failed loading /usr/local/Zend/lib/Optimizer-4.3.9/php-5.2.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-4.3.9/php-5.2.x/ZendOptimizer.so: cannot open shared object file: No such file or directory PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 “无法加载/usr/local/Zend/lib/Optimizer-4.3.9/php-5.2.x/ZendOptimizer.so:/usr/local/Zend/lib/Optimizer-4.3.9/php-5.2.x/ZendOptimizer .so:无法打开共享对象文件:没有这样的文件或目录PHP警告:PHP启动:无法加载动态库'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so '-/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so:无法打开共享对象文件:在第0行上的Unknown中没有这样的文件或目录PHP警告:PHP启动:无法加载动态库'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so'-/ usr / local / lib / php / extensions / no-debug-non-zts- 20060613 / pdo_mysql.so:无法打开共享对象文件:在第0行的Unknown中没有这样的文件或目录

Warning: base64_decode() has been disabled for security reasons in Config.php on line 1252 PHP Warning: base64_decode() has been disabled for security reasons in /usr/lib/php/PEAR/Config.php on line 1252 警告:出于安全原因,第1252行的php.base中已禁用base64_decode()警告:出于安全原因,在第1252行的/usr/lib/php/PEAR/Config.php中,已禁用base64_decode()。

Warning: base64_decode() has been disabled for security reasons in /usr/lib/php/PEAR/Config.php on line 1252 警告:出于安全原因,已在第1252行的/usr/lib/php/PEAR/Config.php中禁用了base64_decode()

Warning: base64_decode() has been disabled for security reasons in Config.php on line 1252 PHP Warning: base64_decode() has been disabled for security reasons in /usr/lib/php/PEAR/Config.php on line 1252 警告:出于安全原因,第1252行的php.base中已禁用base64_decode()警告:出于安全原因,在第1252行的/usr/lib/php/PEAR/Config.php中,已禁用base64_decode()。

Warning: base64_decode() has been disabled for security reasons in /usr/lib/php/PEAR/Config.php on line 1252 警告:出于安全原因,已在第1252行的/usr/lib/php/PEAR/Config.php中禁用了base64_decode()

Warning: php_uname() has been disabled for security reasons in Registry.php on line 814 PHP Warning: php_uname() has been disabled for security reasons in /usr/lib/php/PEAR/Registry.php on line 814 警告:出于安全性原因,第814行的Registry.php中已禁用php_uname()警告:出于安全性原因,已禁用了814行的/usr/lib/php/PEAR/Registry.php中的php_uname()

Warning: php_uname() has been disabled for security reasons in /usr/lib/php/PEAR/Registry.php on line 814 0" 警告:出于安全原因,已在814 0行的/usr/lib/php/PEAR/Registry.php中禁用了php_uname()。

Follow these steps to enable PDO 请按照以下步骤启用PDO

Open WHM and go to Home » Software » Easy Apache (Apache Update) 打开WHM并转到开始»软件»Easy Apache(Apache更新)

Scroll to the bottom and select "Start customizing based on profile" 滚动到底部,然后选择“开始基于配置文件自定义”

Click "Next step" twice 单击“下一步”两次

Scroll to the bottom and select "Exhaustive Options List" 滚动到底部,然后选择“详尽选项列表”

Select checkboxes for PDO and PDO MySQL, and rebuild Apache 选中PDO和PDO MySQL复选框,然后重新构建Apache

This might be a good time to restart Apache using terminal (# service httpd restart). 这可能是使用终端重新启动Apache的好时机(#service httpd restart)。 Hope that helps! 希望有帮助!

您需要请您的服务器管理员执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM