Announcement

Collapse
No announcement yet.

Pear not work with open_basedir

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pear not work with open_basedir

    Problem is default PHP settings:

    Code:
    ...
    
    include_path.:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php
    
    open_basedir/home/user13/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php53/lib/php/
    
    ...
    with include_path all ok, php53 automatically changed to phpXX when you change PHP version via DirectAdmin. But with open_basedir - problem. I try to find where setuped include_path to add some logic with open_basedir, but... Also I can not detect php version with DirectAdmin variable like PHP1_RELEASE

    Code:
    |?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/var/tmp:/opt/alt/php`PHP1_RELEASE`/usr/share/pear:/usr/local/lib/php/`OBDP1``OBDP2`|
    this solution wasn work because PHP1_RELEASE always 53. I add to custom/virtual_host2.conf

    Code:
    |?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/var/tmp:/opt/alt/php44/usr/share/pear:/opt/alt/php51/usr/share/pear:/opt/alt/php52/usr/share/pear:/opt/alt/php53/usr/share/pear:/opt/alt/php54/usr/share/pear:/opt/alt/php55/usr/share/pear:/usr/local/lib/php/`OBDP1``OBDP2`|
    have you another solution?
Working...
X