1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Error

Discussion in 'Site & Server Administration' started by fgsg, Jun 2, 2010.

  1. #1
    Hi i was move page on other server and now when i open page on top write this :

    
    Warning: Unknown: open_basedir restriction in effect. File(/home/admin/__processed_stats/page.com.phplog) is not within the allowed path(s): (/home/page/:/tmp:/var/tmp:/usr/local/lib/php/) in Unknown on line 0
    HTML:
     
    fgsg, Jun 2, 2010 IP
  2. phpcat

    phpcat Peon

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Thats the open_basedir restriction!
    Are you running cPanel? you can disable it easily via there.
     
    phpcat, Jun 2, 2010 IP
  3. inoxhost

    inoxhost Peon

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You might have enabled open_basedir in your php configuration. If you are using cPanel, it is quite easy to disable it. However, if you are using different control panel, you should edit your php.ini file and search for open_basedir. It should be set to off. You can get php.ini path using following command.

     
    inoxhost, Jun 2, 2010 IP
  4. sysadmin

    sysadmin Peon

    Messages:
    111
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hello,

    It is not good to use your script to write out side your home folder :)
     
    sysadmin, Jun 3, 2010 IP
  5. p.hall

    p.hall Guest

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Instead of disabling open_basedir, you should add another directory to the already allowed ones.
     
    p.hall, Jun 10, 2010 IP
  6. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #6
    It is not advisable to disable open_basedir. Either change your script to write/access file within your home directory or add your path in allowed directory.

    - Kailash
     
    kailash, Jun 10, 2010 IP
  7. postcd

    postcd Well-Known Member

    Messages:
    1,037
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    190
    #7
    I agree, its there for a security reason. In my case this error stopped when i editted .htaccess file in my website root folder. There was some unnecessary lines in it.
     
    postcd, Feb 14, 2016 IP