Skip to main content

MySQL error when using non default PHP version

Comments

5 comments

  • cPanelMichael
    Hello @PatrickVeenstra, Can you check to see if that subdomain's document root includes a custom php.ini file? If so, can you try moving it out of the way and verifying if the issue persists (you may need to clear your browser cache before refreshing the page to test)? Thank you.
    0
  • PatrickVeenstra
    There's no custom php.ini file.
    0
  • cPanelMichael
    There's no custom php.ini file.

    Can you open a
    0
  • PatrickVeenstra
    Done: #10389163
    0
  • cPanelMichael
    Hello, To update, here's the response from the support ticket noting the cause of the issue: [QUOTE] I was able to determine the cause of the issue by tailing the Apache error log and doing a quick search for the error (Call to undefined function mysql_connect): ================================ # tail -n0 -f /var/log/apache2/error_log PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/username123/public_sub/torrent/test.php:4 Stack trace: #0 {main} thrown in /home/username123/public_sub/torrent/test.php on line 4 ================================ This lead me to find this user submitted forums answer on Stack Overflow:
    0

Please sign in to leave a comment.