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-28, 23:11:36

Author Topic: Advanced PHP Configure Disable Functions  (Read 3865 times)

0 Members and 1 Guest are viewing this topic.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Advanced PHP Configure Disable Functions
« on: 2017-06-10, 03:01:00 »
The "Disable Functions" is not working for me. A few of my apps and WordPress plugins required enabled passthru(), system() and exec().

I've removed these from 'Advanced PHP Configure > Disable Functions' but it doesn't work. I even removed everything in 'Advanced PHP Configure > Disable Functions' and it still doesn't work.

The only way it work is when I edited it inside 'opt/php56m/custom/php.ini'. But the problem with that is whenever I update it changed back.

Also it seems like none of the others in 'Advanced PHP Configure > Disable Functions' are working too lik, Allow URL FOpen and Allow URL Include. I have it unchecked but it still show that it's ON.
« Last Edit: 2017-06-10, 03:07:22 by LotsOfQ »

Offline NginxHolic

  • Valuable Member
  • *
  • Posts: 84
  • Karma: +1/-0
    • View Profile
Re: Advanced PHP Configure Disable Functions
« Reply #1 on: 2017-06-10, 03:10:21 »
Do you enable multi PHP?

In web feature, do you use specific PHP version or PHP branch?

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Advanced PHP Configure Disable Functions
« Reply #2 on: 2017-06-10, 03:28:39 »
Under 'Webserver Configure'

PHP Used
php56m

PHP Branch
php56w_(as_5.6.30)

Multiple PHP Enable (for 'php-fpm') I had it unchecked before and after read your post I checked it. But still not working.

PHP Type
php-fpm_event
Enable Multiple PHP As Secondary PHP (checked)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Advanced PHP Configure Disable Functions
« Reply #3 on: 2017-06-10, 04:08:25 »
Need install various php version under 'multiple php install' for 'multiple php' and 'secondaru php'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Advanced PHP Configure Disable Functions
« Reply #4 on: 2017-06-10, 04:19:35 »
Yes, it is installed.
Code: [Select]
Multiple PHP Already Installed
php53m php54m php55m php56m php70m

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Advanced PHP Configure Disable Functions
« Reply #5 on: 2017-06-10, 04:54:32 »
Did you check "Multiple PHP Enable (for 'php-fpm')"?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Advanced PHP Configure Disable Functions
« Reply #6 on: 2017-06-10, 05:02:39 »
Yes, it is checked.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Advanced PHP Configure Disable Functions
« Reply #7 on: 2017-06-10, 05:56:27 »
Ok, I got it to work now. I think I've figured it out.

I've been using htaccess for different versions of php. I ended up deleting it and use the 'Web Features' and select the php I want to use instead.

Questions:

1. For a directory for example <domain>/dir, I used htaccess for a different php version. Will this also change with the setting made in Advanced PHP Configure > Disable Functions as well? Or how do I made the changes?

2. Do we have to actually select the actual php used in 'Web Features' each and every time we all a new client or domain?

3. I use a WordPress plugin on all my WordPress that recommends these off too.
Code: [Select]
PHP Display Startup Errors
PHP Expose PHP
PHP MySQL Allow Persistent Connections
But there no options for that in 'Advanced PHP Configure'. How can I make the changes so on next update it will not go back to default again?


Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Advanced PHP Configure Disable Functions
« Reply #8 on: 2017-06-10, 06:39:15 »
Something I've just noticed.

When using htaccess for php version the PHP config file: /opt/php56m/custom/php.ini
And Advanced PHP Configure doesn't work.

When not using htaccess for php version the PHP config file: /opt/php56m/custom/php-fpm.ini
And Advanced PHP Configure works.

Offline NginxHolic

  • Valuable Member
  • *
  • Posts: 84
  • Karma: +1/-0
    • View Profile
Re: Advanced PHP Configure Disable Functions
« Reply #9 on: 2017-06-10, 18:05:54 »
Let me try to answer your question.

Ok, I got it to work now. I think I've figured it out.

I've been using htaccess for different versions of php. I ended up deleting it and use the 'Web Features' and select the php I want to use instead.

Questions:

1. For a directory for example <domain>/dir, I used htaccess for a different php version. Will this also change with the setting made in Advanced PHP Configure > Disable Functions as well? Or how do I made the changes?

If you are using the latest Kloxo MR 7, I suggest don't use htaccess, use Web Feature instead. It is easier for us.

2. Do we have to actually select the actual php used in 'Web Features' each and every time we all a new client or domain?

I believe new clients are using default PHP version chosen in Webserver Configure.
For example you are using PHP Branch as PHP used, the new client will use the configured PHP Branch.

If you use PHP56m for example as the PHP Used, then new client will use PHP 56m.

This feature is controlled by resource plan.


Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Advanced PHP Configure Disable Functions
« Reply #10 on: 2017-06-11, 04:47:43 »
Thank you NginxHolic. I appreciate the answers. I was getting the idea to have it working from you in your previous comment. By the way, how about question #3?

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.028 seconds with 18 queries.

web stats analysis