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-04-29, 02:25:39

Author Topic: Exec can't be enabled  (Read 3489 times)

0 Members and 1 Guest are viewing this topic.

Offline xx7879

  • Junior Member
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Exec can't be enabled
« on: 2017-03-18, 00:48:48 »
Hi,

I can't enable exec even I removed it from the disable functions list.
I am using Kloxo-MR 7.0 and php56m.

In Kloxo-mr 6.5.1, no this problem, just remove it, and exec enabled.

I know it's not safe, but I do need it. Another topics (https://forum.mratwork.com/kloxo-mr-technical-helps/php-fpm-shell_exec-and-exec/msg52025/#msg52025) talked about this problem. Is this still an issue?

Please tell me the right config file, so I can enable it via SSH.

Thank you.

Offline xx7879

  • Junior Member
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Exec can't be enabled
« Reply #1 on: 2017-03-18, 02:21:57 »
Disable line 'disable_functions' (with comnent out) in /opt/php56m/custom/php.ini
is not working.

I removed exec from these three config files:

/opt/php56m/custom/php.ini
/opt/php56m/custom/php-fpm.ini
/etc/php.ini

Still not working (after '/script/restart-all'). What's going on?

The phpinfo() shows (http://www.bitmanuals.com/phpinfo.php):
Configuration File (php.ini) Path: /etc
Loaded Configuration File: /opt/php56m/custom/php-fpm.ini

Any advice, thanks

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Exec can't be enabled
« Reply #2 on: 2017-03-18, 08:18:28 »
Did you 'sh /script/restart-web' after change php/php-fpm.ini content?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline xx7879

  • Junior Member
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Exec can't be enabled
« Reply #3 on: 2017-03-18, 16:29:30 »
Yes, 'php used' restarted ok, 'multiple php' restarted ok.
 I also did a reboot.

After reboot, I also check the 3 config files, no 'exec' in the disable_functions line.
But the phpinfo showed 'exec' is still there. And sure it can't be executed.

Can you find the problem from phpinfo? http://www.bitmanuals.com/phpinfo.php



Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Exec can't be enabled
« Reply #4 on: 2017-03-18, 16:56:51 »
I didn't found this issue with remove 'exec' from 'advanced php configure' for certain client(s). No need modified configs file manually.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline xx7879

  • Junior Member
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Exec can't be enabled
« Reply #5 on: 2017-03-18, 18:12:51 »
I did remove it from advanced php config as admin. But it doesn't work.

What do you mean as client? Add new user in panel?

Thanks for quick reply.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Exec can't be enabled
« Reply #6 on: 2017-03-18, 19:42:28 »
Go to 'admin > advanced php configure' or 'admin > clients > (select one) > advanced php configure' (depend of client target; think admin as client also).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline xx7879

  • Junior Member
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Exec can't be enabled
« Reply #7 on: 2017-03-19, 04:16:57 »
Fixed it by admin, not server side.
But the logic seems not correct.

Thanks for your time.


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Exec can't be enabled
« Reply #8 on: 2017-03-19, 04:29:59 »
For security reason, better under client instead server level.
..:: 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.029 seconds with 19 queries.

web stats analysis