Help With Error python & loadavg

Discussion in 'Site & Server Administration' started by Rajdeep, May 12, 2008.

  1. #1
    Hello everyone,



    I am using a script on Dedicated Server which showing error with python & loadavg..

    it is showing this error in python -

    Warning: is_file() [function.is-file]: open_basedir restriction in effect.
    File(/usr/bin/python) is not within the allowed path(s):
    (/home/XXXX/:/tmp:/usr/local/lib/php/) in
    /home/XXXXX/domains/XXXXXXX/public_html/XXX/settingsfunctions.php
    on line 188


    & loadavg error -

    Warning: is_file() [function.is-file]: open_basedir restriction in effect.
    File(/proc/loadavg) is not within the allowed path(s):
    (/home/XXXXXX/:/tmp:/usr/local/lib/php/) in
    /home/XXXX/domains/XXXXXX/public_html/XXX/settingsfunctions.php
    on line 188


    By default its showing the following path -

    Python Path - /usr/bin/python
    loadavg Path - /proc/loadavg

    Please Help

    Thanks
     
    Rajdeep, May 12, 2008 IP
  2. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #2
    You will need to edit your path in php.ini, to include python and loadavg paths too
     
    gate2vn, May 13, 2008 IP
  3. Rajdeep

    Rajdeep Active Member

    Messages:
    752
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Can you tell me how to edit it and what to edit..
    Using ssh...??

    Thanks

     
    Rajdeep, May 13, 2008 IP
  4. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Yes, you will need to do it in ssh. Let me know the result of this command
     
    gate2vn, May 13, 2008 IP
  5. Rajdeep

    Rajdeep Active Member

    Messages:
    752
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Configuration File (php.ini) Path => /usr/local/lib
    Loaded Configuration File => /usr/local/lib/php.ini


     
    Rajdeep, May 13, 2008 IP
  6. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #6
    then update include_path value
     
    gate2vn, May 14, 2008 IP
  7. Rajdeep

    Rajdeep Active Member

    Messages:
    752
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #7
    i run that command, then what u mean by - update include_path value

    plz elaborate

    THanks

     
    Rajdeep, May 15, 2008 IP
  8. calum

    calum Peon

    Messages:
    2,821
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You need to add the python and loadavg paths to the include_path variable in your php.ini file.
     
    calum, May 15, 2008 IP
  9. Rajdeep

    Rajdeep Active Member

    Messages:
    752
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #9
    Please tell me step by step..
    I am new to all this..

    THanks

     
    Rajdeep, May 24, 2008 IP