Fatal error: Call to undefined function mysql_connect()
Hello
I have a problem with a site on my server.
The following error code sends me the error Fatal error: Calling the undefined function mysql_connect ()
On the server I have Apache 4 and the site where this is running has PHP 5.4 also enabled php54-php-mysqlnd extension
He also tested with the mysqli_connect statement with the same result
Here is the link to the phpinfo site [Removed]
-
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 -
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 works0 -
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 -
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.so0 -
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 -
Thank you very much, perfect work 0
Please sign in to leave a comment.
Comments
6 comments