[BlueOnyx:26051] Re: php shell_exec() or exec() always returns null

Brent Epp brent at pdc.ca
Sun Mar 26 08:31:59 -05 2023


On 2023-03-25 09:36, Michael Stauber wrote:
>
> That's correct. It's protected with "chattr". To allow editing, run 
> this as root first:
>
> chattr -i php.ini
>
> If you want to protect it again after your edits, run this instead:
>
> chattr +i php.ini
>
> It's a good idea to make a copy of your modified php.ini, as the GUI 
> may overwrite it in the future when PHP changes are pushed out to Vsites. 
Hi Michael,

This was the key, thanks.  Set it was writable, set the 
disable_functions option, restart httpd, and now it works.

Thanks!
  - Brent



More information about the Blueonyx mailing list