Home  >  Article  >  Backend Development  >  php database connection 500 error

php database connection 500 error

藏色散人
藏色散人Original
2019-10-23 10:18:024405browse

php database connection 500 error

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn