php database connection 500 error?
500 errors when connecting to the database in php are usually caused by php syntax errors.
Or if there is a problem with your own related configuration
Troubleshooting steps
1. Check the Appache error log
2. If it is PHP Fatal error: Call to undefined function mysqli_connect(), check whether mysqli is loaded;
3. Enter php -m on the command line to check whether there is mysqli in the loaded module
4. If not, in php.ini Add extension=php_mysqli.dll and add php_mysqli.dll to the system32 folder.
For more PHP related knowledge, please visit PHP Chinese website!
The above is the detailed content of php database connection 500 error. For more information, please follow other related articles on the PHP Chinese website!