Skip to main content

500 error - Internal Server Error

Comments

9 comments

  • vacancy
    Uncaught Error: Call to undefined function mysql_connect () Your site is using mysql_connect function, mysql_connect function is not supported in php 7 versions, try changing your php version to 5.6.
    0
  • rscalover
    Hello, 500 internal server error is 99% a permissions related issue however "call to undefined function mysql_connect()" that indicates your php build is not compiled with mysql support.I would open an ssh shell go to the public_html directory and type "ls -la" and carefully look at the permissions php files need at least chmod 644 to run. Regarding the mysql issue you can recompile php with mysql support via easyapache in whm .
    0
  • cPRex Jurassic Moderator
    @vacancy nailed it - you likely need to change the PHP version on that account as it doesn't work well with the newer versions. Can you try that?
    0
  • Barbod
    Uncaught Error: Call to undefined function mysql_connect () Your site is using mysql_connect function, mysql_connect function is not supported in php 7 versions, try changing your php version to 5.6.

    I tried all the versions but got no results 500 error - Internal Server Error It still stands
    0
  • cPRex Jurassic Moderator
    If you move to PHP 7.0 or higher, do you still see the same errors when you check the logs on the system?
    0
  • Barbod
    If you move to PHP 7.0 or higher, do you still see the same errors when you check the logs on the system?

    php changed to version 5.6, but there is no error in the log, but I still have an internal server error
    0
  • cPRex Jurassic Moderator
    You may need to speak with your hosting provider if you aren't seeing any new logs after switching to PHP 5.6, as I would expect there to be data logged for a 500 error.
    0
  • Barbod
    You may need to speak with your hosting provider if you aren't seeing any new logs after switching to PHP 5.6, as I would expect there to be data logged for a 500 error.

    I use Cloud myself I have access to the VPS
    0
  • ffeingol
    Hello, If you have root access to the VPS, then just run through EasyApace and enable MySQL for the version(s) where you need it. You just seem to be missing that module.
    0

Please sign in to leave a comment.