0 votes
by Rookie
I need to edit php.ini to set the memory_limit to 256M. When I try using the proper Webinoly method using the -conf-value tag, I get the message "Please enter a valid option". If I edit it manually and then use -server-reset=php, then the value gets reset to 128M.

1 Answer

0 votes
by Expert

Hi pediwent,

Two things:

  • Commands syntax in Webinoly use one single hyphen, you are putting double hyphens.
  • Remove the "M" at the end of the value, Webinoly automatically recognize this value as "Megabytes".
# Example:
sudo webinoly -conf-value_php-max-mem=256
sudo webinoly -server-reset=php
Please, tell me if it works for you.
by Rookie
Sorry, the double hyphen was a typo - I was using a single hyphen when running the command. I had tried it both with and without the M and got the same result. I literally cut and pasted your command into the terminal and still got the valid option error.

I did solve the problem by editing the fastcgi params in nginx, but would love to be able to handle this within Webinoly.
by Expert
How did you change PHP memory limit with FastCGI params? Sorry, but that not makes sense.

Be sure you are using the latest version of Webinoly, this feature was introduced in the last release (v1.7.0).
by Rookie

Ah, thanks for mentioning the version. I was still on 1.4. Updating made it all work. 

To change the PHP memory limit, I edited /etc/nginx/fastcgi_params and added:

fastcgi_param  PHP_VALUE "memory_limit = 256M";

It worked, but now I can do it the preferred way. Appreciate the help!

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.


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.