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-20, 12:44:22

Author Topic: How to disable open_basedir ?  (Read 13947 times)

0 Members and 1 Guest are viewing this topic.

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
How to disable open_basedir ?
« on: 2014-11-02, 09:03:53 »
hey .
i want disable open_basedir

Code: [Select]
]# sh /script/sysinfo

A. Kloxo-MR: 6.5.0.f-2014102601

B. OS: CentOS release 6.6 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.40-1.ius.el6.x86_64
   2. PHP: php54-5.4.34-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.29-1.mr.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Nginx: nginx-1.7.7-1.el6.ngx.x86_64
   6. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.16.mr.el6.x86_64
   7. Dns: djbdns-1.05-17.4.mr.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_event

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to disable open_basedir ?
« Reply #1 on: 2014-11-02, 09:38:22 »
What's the reason?.

Disable open_basedir make unsecure website.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
Re: How to disable open_basedir ?
« Reply #2 on: 2014-11-02, 09:57:20 »
it's conflict with ' WHMCS WP Integration ' plugin
this msg got to me after active plugin
' PHP open_basedir is on '

Offline letux

  • Valuable Member
  • *
  • Posts: 131
  • Karma: +0/-0
    • View Profile
Re: How to disable open_basedir ?
« Reply #3 on: 2014-11-02, 10:21:13 »
i'am used another plugin 'WHMCS Bridge'
so i don't need disable open_basedir now :)
thanx mostafa

Offline leonard

  • Valuable Member
  • *
  • Posts: 93
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: How to disable open_basedir ?
« Reply #4 on: 2016-01-01, 03:04:37 »
What's the reason?.

Disable open_basedir make unsecure website.
Yeah.. I need it too, because conflict with rapidleech.
I also have disable it on WWW Redirect in Kloxo panel, but no effect at all.

Could you please tell me how to disable this open_basedir ?
« Last Edit: 2016-01-01, 03:09:27 by leonard »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to disable open_basedir ?
« Reply #5 on: 2016-01-01, 03:55:03 »
Make 'disable open_basedir' is bad decision. Better adjustment where modified '/opt/configs/php-fpm/tpl/custome.php53-fpm-pool.conf.tpl' (copy from 'php53-fpm-pool.conf.tpl') and then run 'sh /script/fixphp; sh /script/restart-web -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline leonard

  • Valuable Member
  • *
  • Posts: 93
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: How to disable open_basedir ?
« Reply #6 on: 2016-01-01, 05:18:57 »
Better adjustment where modified '/opt/configs/php-fpm/tpl/custome.php53-fpm-pool.conf.tpl' (copy from 'php53-fpm-pool.conf.tpl')

I am a bit confused what you meant? There is no file named "custome.php53-fpm-pool.conf.tpl" in that folder.
Previously, there already have a file "php53-fpm-pool.conf.tpl" => So, why should be copied..? Or maybe you mean this file should be Rename to "custome.php53-fpm-pool.conf.tpl"..?

Please explain me more precisely.. confused.
« Last Edit: 2016-01-01, 05:28:17 by leonard »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to disable open_basedir ?
« Reply #7 on: 2016-01-01, 13:03:11 »
Kloxo-MR may read custom instead original file (if found) in fix process. That it.

It's about 'customize rule' in Kloxo-MR.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline leonard

  • Valuable Member
  • *
  • Posts: 93
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: How to disable open_basedir ?
« Reply #8 on: 2016-01-01, 13:54:00 »
So.. at the location where should I copy this file 'php53-fpm-pool.conf.tpl', or do not need to be copied because it's already there.. is it right? Please sorry to a lot questions of this...
« Last Edit: 2016-01-01, 14:01:46 by leonard »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to disable open_basedir ?
« Reply #9 on: 2016-01-01, 16:15:48 »
So.. at the location where should I copy this file 'php53-fpm-pool.conf.tpl', or do not need to be copied because it's already there.. is it right? Please sorry to a lot questions of this...
Copy to the same location.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline leonard

  • Valuable Member
  • *
  • Posts: 93
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: How to disable open_basedir ?
« Reply #10 on: 2016-01-02, 00:25:20 »
OK, although the result not happy, but thank you because at least you've replied and tried to help...

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to disable open_basedir ?
« Reply #11 on: 2016-01-02, 01:56:13 »
Maybe rapidleech need access to certain directory where not include in open_basedir. So, you need add this directory path in custome.php53-fpm-pool.conf.tpl code and then run 'sh /script/restart-web -y'. That it.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline leonard

  • Valuable Member
  • *
  • Posts: 93
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: How to disable open_basedir ?
« Reply #12 on: 2016-01-02, 05:38:58 »
Maybe rapidleech need access to certain directory where not include in open_basedir. So, you need add this directory path in custome.php53-fpm-pool.conf.tpl code and then run 'sh /script/restart-web -y'. That it.
Thanks, I will try into it.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to disable open_basedir ?
« Reply #13 on: 2016-01-02, 07:05:11 »
Find out:
Code: [Select]
if ($user === 'apache') {
// MR -- for future purpose, apache user have uid 50000
$fpmport = 50000;
$openbasedir = "/home/:/tmp/:/usr/share/pear/:/var/lib/php/session/";
} else {
$userinfo = posix_getpwnam($user);
$fpmport = (50000 + $userinfo['uid']);
$openbasedir = "/home/$user/:/tmp/:/usr/share/pear/:/var/lib/php/session/:".
"/home/kloxo/httpd/script/:/home/kloxo/httpd/disable/";
}

inside custome.php53-fpm-pool.conf.tpl. If you want add '/var/log' path, just modified:
from:
Code: [Select]
$openbasedir = "/home/$user/:/tmp/:/usr/share/pear/:/var/lib/php/session/:".
"/home/kloxo/httpd/script/:/home/kloxo/httpd/disable/";

to:
Code: [Select]
$openbasedir = "/home/$user/:/tmp/:/usr/share/pear/:/var/lib/php/session/:".
"/home/kloxo/httpd/script/:/home/kloxo/httpd/disable/:/var/log";

..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline leonard

  • Valuable Member
  • *
  • Posts: 93
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: How to disable open_basedir ?
« Reply #14 on: 2016-01-02, 10:22:10 »
Sorry, if I may correction perhaps you mean "custom" (without e letter) instead of custome.. is it right?
I use custom.php53-fpm.... I've tried but just same unlucky.. Never mind bro, let it alone...
Maybe I will try to disable via .htaccess probably it can. I doubt this could be.. want google it.
Anyhow, thanks again for your effort and kind help.
« Last Edit: 2016-01-02, 10:39:19 by leonard »

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.031 seconds with 21 queries.

web stats analysis