MRatWork Forum by Mustafa Ramadhan

Language Specific Discussions => Indonesia Users => Topic started by: agssbuzz on 2016-06-24, 11:43:26

Title: Setting Open Basedir gagal
Post by: agssbuzz on 2016-06-24, 11:43:26
Halo..

Saya coba setting Open Basedir lewat general setting kok gagal yah, direktori yang saya tambahkan tidak masuk list open basedir. Sudah saya coba config manual di "/opt/configs/php-fpm/tpl/php53-fpm-pool.conf.tpl" juga tidal ngefek.

[root@xeon1 ~]# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016062202
   - Web: hiawatha-10.3.0-f.1.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (cgi mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: xeon1.buzzwap.us
C. Services:
   1. MySQL: MariaDB-server-10.0.25-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
      - Used: --PHP Branch--
      - Multiple: disable
   3. Web Used: nginxproxy
     - Hiawatha: hiawatha-10.3.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.39-3.el6.x86_64
     - Nginx: nginx-1.11.1-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: nsd
     - Bind: --uninstalled--
     - DJBDns: --uninstalled--
     - NSD: nsd-4.1.10-1.mr.el6.x86_64
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: package courier-toaster is not installed
      - smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:         15906      15049        856         31        342      13456
   -/+ buffers/cache:       1250      14656
   Swap:         1023          0       1023
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/sda2       1.8T  136G  1.6T   8% /


*** Process Time: 00:00:00:01.1639 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)
Title: Re: Setting Open Basedir gagal
Post by: MRatWork on 2016-06-24, 14:22:03
Ya. Karena di-disable.
Title: Re: Setting Open Basedir gagal
Post by: agssbuzz on 2016-06-24, 14:32:31
Ya. Karena di-disable.

cara enable nya gimana pak ? saya lampirkan phpinfonya.. saya ingin menambahkan direktori /usr/bin/

(https://s32.postimg.org/ysqrn6ag1/Capture.png) (https://postimg.org/image/ysqrn6ag1/)
Title: Re: Setting Open Basedir gagal
Post by: MRatWork on 2016-06-24, 14:48:05
Coba lihat di '/usr/local/lxlabs/kloxo/httpdocs/driver/pserver/phpini__synclib.php'. Ubah:
Code: [Select]
// $extrabasedir = $input['extrabasedir'] ke
Code: [Select]
$extrabasedir = $input['extrabasedir']
Title: Re: Setting Open Basedir gagal
Post by: agssbuzz on 2016-06-24, 15:00:14
Coba lihat di '/usr/local/lxlabs/kloxo/httpdocs/driver/pserver/phpini__synclib.php'. Ubah:
Code: [Select]
// $extrabasedir = $input['extrabasedir'] ke
Code: [Select]
$extrabasedir = $input['extrabasedir']

sudah dilakukan pak, tapi masih belum berubah
Title: Re: Setting Open Basedir gagal
Post by: agssbuzz on 2016-06-24, 17:54:37
Solve pak...

saya edit bagian ini
Code: [Select]
/usr/local/lxlabs/kloxo/httpdocs/driver/pserver/phpinilib.php
trus uncomment ini pak

Code: [Select]
$this->__var_disable_openbasedir = (isset($this->getParentO()->webmisc_b->disable_openbasedir)) ?
$this->getParentO()->webmisc_b->disable_openbasedir : null;