Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2019-08-24, 19:34:08

Author Topic: I want tp run shell command by web.  (Read 1964 times)

0 Members and 1 Guest are viewing this topic.

Offline azzureal

  • Master
  • **
  • Posts: 373
  • Karma: +1/-0
    • View Profile
I want tp run shell command by web.
« 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.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,657
  • Karma: +118/-10
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: I want tp run shell command by web.
« Reply #1 on: 2016-04-05, 04:07:26 »
What's purpose to delete php configs?. What's the path for deleted files?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 373
  • Karma: +1/-0
    • View Profile
Re: I want tp run shell command by web.
« Reply #2 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.

 

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,657
  • Karma: +118/-10
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: I want tp run shell command by web.
« Reply #3 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).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline azzureal

  • Master
  • **
  • Posts: 373
  • Karma: +1/-0
    • View Profile
Re: I want tp run shell command by web.
« Reply #4 on: 2016-04-05, 04:18:29 »
I already applied it, but not work by web.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,657
  • Karma: +118/-10
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: I want tp run shell command by web.
« Reply #5 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.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.026 seconds with 22 queries.

web stats analysis