The 500 error after the request from the script

I wrote a script in Lua that should send me statistics via http request to the address of the php script via a get request.
a php query adds statistics to the database.
I tried using the browser and everything works fine.
In the lua script, I make a request, but the server returns a 500 error.

Are you sure you’re requesting the right page?
Are you sure you aren’t missing some parameters?

500 Internal Server Error '

500 Internal Server Error


openresty ' This is what the lua script returns to me

Yes, I just double-checked. I make the request exactly where I need it, and I specify exactly all the necessary parameters

Please help, I still need help

I have a similar problem as the author of the post. I have a file.“htaccess” and there is already a string “php_value display_errors 1”. My problem is that in the browser when I open filename.php in my browser everything works. I REALLY need to open the http script. I make a request to filename.php through a script, and it gets a response

500 Internal Server Error

500 Internal Server Error


openresty Where can I see what causes the error?

Tried pasting this to the affected PHP file after the first PHP tag on the new next line

error_reporting(E_ALL);
ini_set('display_errors', 1);

Give us a little more information on the script maybe they offer a debugging mode in it

This is a Lua script that will send statistics about its use via php. Next, the php script will add statistics to mysql.
I was able to use the browser, the php script worked through socket.the http request server returns a 500 error

1 Like

Hello! What is your website name/address and the script name on which you are receiving the problem?