Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED ALT-PHP MySQLi typo3 problems

Discussion in 'CloudLinux' started by Havri, Jan 22, 2019.

Tags:
  1. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    86
    Likes Received:
    19
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    Has anyone encountered errors with MySQLi on TYPO3 installations or any other CMS? We are getting 503 errors if we setup TYPO3 to use the MySQLi driver but it runs just fine if we change the driver to pdo_mysql.

    The first solution is to edit the TYPO3 conf file for this to work:

    /home/myuser/typo3conf/LocalConfiguration.php

    This is a new server running Cloudlinux 7, CageFS, LVE, Alt-PHP, MariaDB 10.2 and Litespeed.

    As a second solution, if we change the PHP version from Alt-PHP 7.2 to Multi PHP 7.2 for that domain, it also works.

    Just curious if someone that installed the latest OS, packages, etc. has the same errors with MySQLi Alt-PHP extension.

    Thank you.
     
    #1 Havri, Jan 22, 2019
    Last edited: Jan 22, 2019
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,534
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Havri,

    Can you check to verify the mysqli extension is enabled for the individual account as part of the PHP Selector functionality? You can test this with the following command:

    Code:
    selectorctl --user myuser --list-extensions --version=7.2 | grep mysql
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    86
    Likes Received:
    19
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, mysql and mysqli extensions were enabled. After opening a ticket with Cloudlinux, they suggested that I replace mysqli,mysql,pdo_mysql with nd_mysqli,mysqlnd,nd_pdo_mysql. Seems that MariaDB 10.2 needs a different MySQL driver in some situations:

    stackoverflow.com/questions/46414868/what-is-the-difference-between-the-nd-pdo-mysql-and-pdo-mysql-extensions

    Here is the response from Cloudlinux

    This was the case in our typo3 installs but later on we also had some requests on other various CMS'.

    Hope this helps someone.
     
    #3 Havri, Jan 24, 2019
    Last edited by a moderator: Jan 24, 2019
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice