The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

what is the best way to modify open_basedir restriction to allow authorized items

Discussion in 'General Discussion' started by durangod, Aug 20, 2014.

  1. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    251
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    On of the addons for my whmcs is giving a warning about open_basedir and the file is not in the proper path.

    The file for the addon is in public_html/whmcs/modules/addons/filename.php
    I am calling it from public_html
    and i am also calling it from public_html/whmcs/filename.php


    Do i have to turn off open_basedir or can i adjust it via htaccess ? Or can you point me to some docs on the subject thanks.

    here is the warning:

    - - - Updated - - -

    interesting, i did not know open_basedir was a requirement for WHMCS... well how about that.

    - - - Updated - - -

    I found the docs, :) im ok now..
     
    #1 durangod, Aug 20, 2014
    Last edited: Aug 20, 2014
  2. SS-Maddy

    SS-Maddy Well-Known Member

    Joined:
    Mar 28, 2009
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello

    Disabling open_basedir restriction through .htaccess is not possible. open_basedir can only be set by inside the php.ini or httpd.conf. You may need to change the httpd directive or change the php handler to SuPHP from DSO to disable it.
     
  3. durangod

    durangod Well-Known Member

    Joined:
    May 12, 2012
    Messages:
    251
    Likes Received:
    10
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    ok thanks so much.. :)
     
  4. server9host

    server9host Well-Known Member

    Joined:
    Sep 18, 2013
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Also you can you create custom php.ini to enable "open_basedir" for particular user and disable on server using suPHP. You just need to create custom php.ini in you user home directory and put below code in .htaccess file :

    Code:
    suPHP_ConfigPath /home/username/public_html/
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page