Home > Backend Development > PHP Problem > php database connection 500 error

php database connection 500 error

藏色散人
Release: 2023-02-27 17:50:01
Original
4445 people have browsed it

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template