3
I am developing a system that uses HTML, JS, PHP and Mysql. The pages have several AJAX calls to the bank. I have today approximately 350 users.
Lately I’ve been getting a lot of mistakes from:
ERR_CONNECTION_TIMED_OUT
ERR_CONNECTION_REFUSED
- And others.
Users are also having these problems.
A basic view of my system:
- The system is hosted on
LOCAWEB
- Utilise
SESSION
- All queries are located in separate PHP files as per my need.
- There are some functions that use
file_get_contents()
, because I need to search user data on another site. - All pages have their own JS file for separating the functions I need.
- I use the theme
ADMINLTE
as a basis.
I ask you:
- How these errors relate to my system?
- Would be some wrong configuration on
PHP.INI
?
NOTE: for local test, I use the WAMP, and never had problems.
Does apache log show anything? Errors indicate server overload, now at which point you have no way of knowing.
– rray
In the LOCAWEB log, you have many of these errors: mod_mime_magic: invalid type 0 in mconvert()
– JoseSarra
you use the
file_get_contents()
to 'connect' and pick up information from other websites?– rray
Yes. I just saw another error: Modsecurity: Error Reading request body: Partial Results are Valid but Processing is incomplete
– JoseSarra
you need to isolate the problem, check the files or functions that use the
file_get_contents()
, it will depend on the response time of the localweb server to request with the other site, by default a request lasts 30 seconds longer than that, the script is aborted.– rray
I’ve set: max_input_time = -1 e max_execution_time = 3600 .
– JoseSarra
The external site may also block the server’s ip, thinking it is a Flood attempt or denial of service attack, which consists of sending a large number of requests that the server cannot handle.
– rray