Mysql_connect 500 error

I narrowed down my problem with the call mysql_connectI'm making in PHP.
It gives an error message. What would you advise me to do to fix the problem with this error:


Error Summary HTTP Error 500.0 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.

Error Details
  IsapiModule Module ExecuteRequestHandler
  Notification PHP
  Handler
  Error Code 0x00000000
  Requested URL http: // localhost: 80 / getuser.php? Q = 3 & sid = 0.2953613724031635
  Physical Path C: \ inetpub \ wwwroot \ getuser.php Login
  Method Anonymous
  Anonymous User

Most likely, the reasons:

  • IIS received the request; however, an internal error occurred while processing the request. The main reason for this error depends on which module processes the request and what happens in the workflow when this error occurs.
  • IIS was unable to access the web.config file for the website or application. This can happen if the NTFS permissions are set incorrectly.
  • IIS - .
  • DLL.
  • , .NET Extensibility .

:

  • , NTFS web.config -.
  • , , - .
  • DLL.
  • .NET, .
  • HTTP. .

. , . -, , 500.

:

  • 294807
+3
3

phpinfo() MySQL. , MySQL. , , PHP, SQL- -, . CHeck , , Apache , PHP - IIS, , - . PHP.

+2

apache, , mysql IIS. , : http://www.atksolutions.com/articles/install_php_mysql_iis.html

, Josh... phpinfo mysql.

0

check the apache conf file and remove the comment from the line below (just remove # from the beginning of the line)

LoadModule isapi_module modules / mod_isapi.so

-2
source

Source: https://habr.com/ru/post/1712539/


All Articles