Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
by Talented
reshown by
My MainWP Dashboard requires `cURL Timeout >=300 seconds`

Reading "Update, modify or reset server settings" I thought I could make this change programmatically, but it seems like its not one of the variables I can edit.

I am running PHP 7.3 — what's the best way to change the cURL timeout variable to 300 ?
by Talented
I seem to get this need quite often. At some future time, can it be made one of the accessible variables in the configuration file so I can make the change in the initial setup?  Many thanks.

1 Answer

+1 vote
by Expert

Hi Terence,

It's a Little "tricky" how MainWP is describing this requeriment, what they really means is not cURL specific, they are asking for incresing a PHP parameter that affects every socket connection (not only cURL).

Go to your php.ini file: /etc/php/7.3/fpm/php.ini and change the default_socket_timeout parameter. Don't forget restart the PHP service to changes takes effect: sudo service php*-fpm reload.

If you are doing it very often you can use the Webinoly Internal-API feature to automate this task.

To be honest, I don't think this will be integrated to Webinoly any time soon, I'm a little reluctant to use tools or plugins that need this kind of custom configurations, sometimes this things can have serious side-effects.

I was glad to see (read) you here.


by Talented
Cristhian, I find I learn so much from your answers in here. Thank you for a great project and for all the time you spend in development and support, and your patience in helping us all. Its much appreciated.
by Expert
You are welcome, Terence!

Don't hesitate to ask any question.

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.