Skip to main content

Fatal error: Call to undefined function mysql_connect()

Comments

6 comments

  • Infopro
    This is more of scripting issue than an issue with your cPanel. You might do better to ask this on a forum dedicated to that sort of thing, or speak with the author of your script.
    0
  • Ovivo
    This is more of scripting issue than an issue with your cPanel. You might do better to ask this on a forum dedicated to that sort of thing, or speak with the author of your script.

    Dear The problem is that I have Apache 4 installed, with the correct extension for php 5.4, but the code I indicated does not work. And that same code on a server with apache 3 and php 5.6 if it works
    0
  • cPanelMichael
    Hello, Could you verify the contents of the .htaccess file in the account's home directory, or it's public_html directory? Also, are you using a custom php.ini file with this account? Thank you.
    0
  • Ovivo
    Hello, Could you verify the contents of the .htaccess file in the account's home directory, or it's public_html directory? Also, are you using a custom php.ini file with this account? Thank you.

    The contents of the .htacces file is suPHP_ConfigPath /home/fya/public_html order allow,deny deny from all And custom php.ini date.timezone = "America/Santiago" allow_url_fopen = Off extension=simplexml.so
    0
  • cPanelMichael
    suPHP_ConfigPath /home/fya/public_html

    Can you remove this entry from the .htaccess file, move the custom php.ini file out of the way, and then make any custom php.ini changes using the MultiPHP INI Editor in cPanel? Keep in mind "allow_url_fopen" is a global PHP value so you'd need to enable it from the MultiPHP INI Editor in WHM to allow it's use. Thank you.
    0
  • Ovivo
    Thank you very much, perfect work
    0

Please sign in to leave a comment.