How do I enable PDO using CentOS?

后端 未结 1 367
情深已故
情深已故 2020-12-17 15:00

When outputting phpinfo(); I can see that PDO is set to \'--disable-pdo\' in the Configure Command section. How can I enable this using SSH?

相关标签:
1条回答
  • 2020-12-17 15:23

    Try

    pecl install pdo
    

    EDIT:

    If it is already installed try edit

    /etc/php.ini 
    

    Add this line

    ; Extension PDO
    extension=pdo.so
    

    EDIT :

    if you dont have access to php ini try try this in your php aplication

    if (!extension_loaded('pdo')) 
    {
        dl('pdo.so');
    }
    
    0 讨论(0)
提交回复
热议问题