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.

open_basedir , httpd.conf permission

Discussion in 'General Discussion' started by ataomega, Mar 18, 2008.

  1. ataomega

    ataomega Member

    Joined:
    Dec 7, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello.
    excuse me, one of my resellers, installed FHM script on his site, he has these error , how can i fix them? i do appreciate it if any one help me,

    errors :

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/fhm/public_html/script/ad_header.html) is not within the allowed path(s): (/home/esteki/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/esteki/public_html/host/admin/admodule.php on line 34

    Error: Unable to open httpd.conf. Either you do not have root access, the http.conf file need CHMODing with reading/writing permissions (CHMOD 606) or you provided invalid login details on the Ad Config File.
    You entered an invalid path in the ads config file. You cannot force ads until you fix this error.



    thanks a lot
     
  2. s.a.

    s.a. Active Member
    PartnerNOC

    Joined:
    Aug 16, 2007
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Toronto, Canada
    Easiest way is to disable open_basedir for this user.
    In WHM: Security Center -> PHP open_basedir Tweak -> Exclude Protection
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    It appears this PHP script needs root permissions to run. This will not be possible in a reseller environment. This script looks like it was designed for a dedicated server environment, not a shared hosting environment.
     
  4. ataomega

    ataomega Member

    Joined:
    Dec 7, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    on of the problems solved

    Hi,

    the first error solved, it was a error in config.

    but this error : Error: Unable to open httpd.conf. Either you do not have root access, the http.conf file need CHMODing with reading/writing permissions (CHMOD 606) or you provided invalid login details on the Ad Config File.


    how can i solve that? how can i give permission to this user to read/write/excute httpd.conf ?


    thanks a lot
     
  5. Voltar

    Voltar Well-Known Member

    Joined:
    Apr 30, 2007
    Messages:
    269
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bakersfield, California
    Why you would want a user to be able to read/write/execute httpd.conf is beyond me. It's just overall a bad idea.
     
  6. ataomega

    ataomega Member

    Joined:
    Dec 7, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    fhm

    this script (FHM) for forced ads on users needs to access the httpd.conf file,
    how can i give it permission?

    thanks
     
Loading...

Share This Page