Apache ERR_EMPTY_RESPONSE without any data in the log - php

i have a website and when the user fills a form, the response code is ERR_EMPTY_RESPONSE.
The problem is there is no information in the Apache logs.
The project is done with Symfony2 over Apache on Linux.
I don't know if there is a problem with APC,but it is difficult to track if there is no errors in the log.
Any ideas?

This means your server has accepted the connection (your client successfully sent it), but is not sending any response back to the client
In most symfony 2 configuration, errors are intercepted and logged into the application's own log, you can try checking them in app/logs/
Another thing to try is to enable symfony's debug mode and then look for the request in the profiler (use "search" at the bottom right to see the list of all the latest request) and see the internal log event to try and find where the issue might be.

Related

Strange error An error just occured please try your request again: in yii2 application

H have a yii2 application running on a server with the following specification
yii2 version: 2.0.39.3
server : vultr VPS centos 8, running PHP version 7.2.24
web server NGINX ginx version: nginx/1.14.1
I have used it for months and everything works fine but in the past 3 days suddenly sometime it An error just occured please try sometime at the top of the page and sometime at the end of my page. This randomly appear when i refresh my server I am not sure. This happen whenever a request to the server is made and if an ajax request is made the server will receive the request but the client will receive and error message instead of a reply from he server, and also the message change the layout of the page it appears on. I have no clue as to where this could come from as i didn't do any server update of recent. Any help on this would be appreciated. attached is an image of what the error looks like from the page
Seems this errors related with Google Site Verification API. Check if you've not enabled "Maintenance Mode" etc.

Google compute engine php post request gives http 500 error

I'm really new in google cloud services and servers. I've successfully installed LAMP over SSH. However, when I try to post, get request over postman or application it always gives me 500 Internal Server Error. I wonder if there is a configuration that I missed? I do not know, maybe it is a problem with the port or maybe I should ho with App Engine instead of Compute Engine. I do not know what kind of document or code I should put here. In cases when you want I can share. Thank you!
I found the solution from log file! thank you #jabbson :) I learn that is very important and helpful to check log files.
phpenmod mysqli
whit this command I've successfully activate extension and now it gives respond code 200. If someone will face this issue first -> check the apache2 log files, then-> don't forget to activate required plugins or extensions!

Laravel SESSION expired 419 and auto redirect

So I have this weird problem after I've uploaded my laravel project on a shared hosting. When ever I make any post request is responding with 419. FYI #csrf is included in each form. Everything is working fine on my localhost. I've tried to change the session driver but I had the same response too. Another thing when I ever I call a get request, laravel will redirect me back to the same page.
EDIT
I've contacted my host support, they said that the error is coming from the Mod_security firewall of their shared server, and based on the logs they pulled up, they said the rule ID it generated is globally blocked on their servers. What are the alternative solutions?

Error message if IIS 5.1 is stopped?

Is there a way to show any error message if IIS(5.1) is stopped or not working? We have got few websites on server 2000 and we want to show some message to end user if IIS doesn't respond due to any reasons.
I have tested this scenario on the test server, i just stopped the IIS and then try to access one of the website to see if i get any error message from IIS but i didn't get any IIS error message (IE: Internet Explorer cannot display the webpage)
Since IIS is the web server that receives HTTP requests and responds to them, you'd need to run another web server that does the same thing instead of IIS. If you're running a web server that can respond to HTTP requests with an error message though, you may as well use it to run your website. In short, unless you have another system sitting in front of your actual web server that can detect when the web server is down (say, a load balancer)... it's kind of an unrealistic proposal.

PHP osTicket error in Google Chrome

Occassionally I receive an error when trying to refresh any webpage on the osTicket system. Has anybody experienced similar problems? What did you do to prevent that from happening?
Here's the error:
No data received
Unable to load the webpage because the server sent no data.
Here are some suggestions:
Reload this web page later.
I assume it's a session problem, but am not sure because I only installed it on my test server. However, it would be very bad if a customer ran into this problem.
That message is a standard Google Chrome error. Just as the message describes, the server sent no data to the browser.
This is more likely a server problem than an osTicket one. Make sure your web server is running properly, and check the log files for errors and problems.

Categories