php.ini changes are ignored

#1
I am using an Oceandigital droplet with Openlitespeed / Wordpress (from the DO market place)

My changes in php.ini are ignored

According to phpinfo, I found the php.ini file here : /usr/local/lsws/lsphp83/etc/php/8.3/litespeed/php.ini
There is no virtualhost

I know I have to restart lsphp and lsws. I have done it using several ways ( OLS doc, google, chatgpt)
/usr/local/lsws/bin/lswsctrl {start|stop | restart | fullrestart}
service openlitespeed restart
systemctl restart lsws

combined with
pkill lsphp and killall lsphp

but nothing works. the infos returned by phpinfo are always the same/

What happened ? Do I miss something ? Is there a possibility another config file disallow php.ini modifications
The fact that lsphp is an external module implies I need to do something ?
 
#3
What you did is correct, is it possible to Inbox me the phpinfo URL?
Thank you for your answer. But the fact is I need glasses !
I didn't see that, in the php.ini, there was a ";" before the "max_input_vars 1000" directive. So changing the value has no effect !
I remove the ";" and things are now ok.

But in the phpinfo page, I could see the line max_input_vars 1000
So where did this line come from ?
It was not from
Loaded Configuration File : /usr/local/lsws/lsphp83/etc/php/8.3/litespeed/php.ini
(because of the ";" )

There are two other php.ini files on the server
/usr/local/lsws/admin/misc/php.ini
/usr/local/lsws/admin/conf/php.ini
but none of them has a declaration for max_input_vars

So my question stands ( even if my problem is resolved) :
where do the value for max_input_vars came from, as the line was commented in the Loaded Configuration File ?

Thank you if you can answser.

the temporary phpinfo url is https://regards.fr/20241017phpinfo.php
 
Top