0 votes
85 views
by Rookie
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 Rookie
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.

Regards.

by Rookie
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.

Regards.
Welcome to the Community site for Webinoly.

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.

News: Now you can use any external SMTP service in your server. All the server outgoing emails from any of your websites will be sent through this service.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

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

...