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. 2024-03-28, 23:34:46

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

0 Members and 1 Guest are viewing this topic.

Offline azzureal

  • Master
  • **
  • Posts: 420
  • 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,807
  • Karma: +119/-11
  • 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: 420
  • 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,807
  • Karma: +119/-11
  • 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: 420
  • 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,807
  • Karma: +119/-11
  • 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!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.042 seconds with 22 queries.

web stats analysis