when filling a form in the software then if it takes more than 5 or 6 minutes it gives me an error like XML HTTP request response. Is there any way to increase the response time. The users of my software are very slow in writing.
please help me......
Place this at the top of your PHP script(php.ini file) and let your script loose!
ini_set('max_execution_time', 300); //300 seconds = 5 minutes
After this, restart your local server
Place beloved code in .htaccess to increase it,
<IfModule mod_php5.c>
php_value max_execution_time 300
</IfModule>
Related
I have installed a package for invoicing, but it shows Symfony\Component\ErrorHandler\Error\FatalError
Maximum execution time of 60 seconds exceeded. can anyone please help me.
add this function in your public/index.php file:
set_time_limit($seconds);
Can you try increase the max_execution_time in php.ini. Set it to 1800 and restart your XAMPP.
But you should optimize your code to run it faster.
I have an API that I can export multiple data with relations, but I just buy a new server, and in this server when I make request with a big json it reachs the route file twice and returns Unauthenticated (it should'nt cause its just one request and I don't make any redirects), with a smaller json it doesn't happens.
But even return unauthenticated I can see in my logs that the request keeps runing
That is my server configs
memory_limit = 200M
max_execution_time = 600
max_input_time = 600
post_max_size = 200M
upload_max_filesize = 200M
display_errors = On
display_startup_errors = On
default_socket_timeout = 600
max_user_connections = 1000
UPDATE
weird thing, when I add an dump('test') in some part of my controller, it doesn't return the unauthenticated exception and at the final of the request returns the json of success
Are you sending any data in the request header ?
add to root .htaccess hope this will work.
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
i have laravel application hosted on godaddy, i have multipe image upoader in form , when using small size images it work fine , but when add only one image of size 1 mb i got "Request Entity Too Large message" i have tied many solution like add php.ini file or even user.ini to public_html folder with this contents
file_uploads = On
upload_max_filesize = 256M
post_max_size = 257M
max_input_time = 300
max_execution_time = 300
max_file_uploads = 20
for both file but unfortunately still get the same error
I think you can't change the php.ini settings on GoDaddy shared hosting, but give this a try:
post_max_size xxM # change xxM to whatever you need
We are using Apache 2.4 and we are trying to configure the MaxRequestWorker and ThreadLimit for Event MPM. Below is the configuration I have in apache's httpd.conf. But the configuration doesn't seem to take any effect. It still continues to use default values of (400 MaxRequestWorker and 25 Threads). Not sure if I am missing anything in my configuration.
I want to configure my server to use 1024 MaxRequestWorker and 64 ThreadsPerChild.
We have roughly 2Gig RAM and 2Gig in SWAP, Apache 2.4 (EVENT MPM) and Red Hat Linux OS.
Any help would really help. Thank you so much!!
Httpd.conf
------------
Event MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of Event threads which are kept spare
# MaxSpareThreads: maximum number of Event threads which are kept spare
# ThreadsPerChild: constant number of Event threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule event.c>
ServerLimit 16
StartServers 8
MaxRequestWorkers 1024
MinSpareThreads 75
MaxSpareThreads 250
ThreadsPerChild 64
ThreadLimit 64
MaxConnectionsPerChild 0
</IfModule>
I realise that this is an old post. Just in case anyone else comes across this again.
Check the exact module name. If you check /etc/httpd/conf.modules.d/00-mpm.conf (or equivalent location, this was on RHEL 7/CentOS 7) for the line that loads the events module:
LoadModule mpm_event_module
Copy this module name 'mpm_event_module'.
Rather than specifying this at the end of httpd.conf, it's better practice to create a file in /etc/httpd/conf.d/ called mpm_event.conf and load it there.
In this instance, I believe changing:
<IfModule event.c>
to
<IfModule mpm_event_module>
Then restarting HTTPD, would have fixed it.
Kind Regards,
Will
I first was getting a max_upload_size issue, which I resolved by modifying php.ini. I have increased it to 50M and I am getting a weird red box in Magento with no popup describing the error. Does anyone have any experience with this error?
The log shows:
2013-09-10T19:37:27+00:00 ERR (3): Strict Notice: Only variables should be passed by reference in /home/username/public_html/includes/src/__default.php on line 56826
Image showing error is here - http://s13.postimg.org/yb0my66t3/uploaderror.jpg
Ended up being another php.ini setting that Magento didn't error handle
Changed post_max_size to 30M
; Maximum size of POST data that PHP will accept.
post_max_size = 30M