MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: azzureal on 2016-04-05, 03:51:48

Title: I want tp run shell command by web.
Post by: azzureal on 2016-04-05, 03:51:48
I deleted shell command server php conf, user conf and php.ini.

So I can run shell on ssh but web is not work. just blank.
Title: Re: I want tp run shell command by web.
Post by: MRatWork on 2016-04-05, 04:07:26
What's purpose to delete php configs?. What's the path for deleted files?.
Title: Re: I want tp run shell command by web.
Post by: azzureal on 2016-04-05, 04:11:09
My web pgm need to run exec and shell exec.

So i confiure php conf and user php conf by panel.

And then I found /etc/php.ini had disable exec, i deleted exec, shell_exec in php.ini.

now I can run it by shell but not work by web.

 
Title: Re: I want tp run shell command by web.
Post by: MRatWork on 2016-04-05, 04:14:52
If using 'php-fpm', declare 'disable_functions' in .conf files inside /etc/php-fpm.d (declare per-user).
Title: Re: I want tp run shell command by web.
Post by: azzureal on 2016-04-05, 04:18:29
I already applied it, but not work by web.
Title: Re: I want tp run shell command by web.
Post by: MRatWork on 2016-04-05, 04:52:01
I already applied it, but not work by web.
Need waiting or force by 'sh /script/restart-web -y'. Remember, set 'disable_functions' for 'admin' will be impact for all domains under 'admin' and etcetera.