Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    44

    Default Open_basedir problem

    Hello,

    We have one server and want tro enable open_basedir from whm >> tewal security but after enabling this option all ofour domains hosted on this server start showing ERROR as below -

    -----------------------
    Warning: Unknown(): open_basedir restriction in effect. File(/usr/local/Zend/etc/anti_spam.php) is not within the allowed path(s): (/home/user/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

    Warning: Unknown(/usr/local/Zend/etc/anti_spam.php): failed to open stream: Operation not permitted in Unknown on line 0

    Warning: Unknown(): open_basedir restriction in effect. File(/usr/local/Zend/etc/anti_spam.php) is not within the allowed path(s): (/home/user/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

    Warning: Unknown(/usr/local/Zend/etc/anti_spam.php): failed to open stream: Operation not permitted in Unknown on line 0

    Warning: (null)() [function.include]: Failed opening '/usr/local/Zend/etc/anti_spam.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
    -----------------------

    I want to enable this option on server for security purpose but due to this error i am unable to use it.Please let me know the solution ASAP.


    Thank you.



    Regards,
    Linuxgirl

  2. #2
    Member viraj's Avatar
    Join Date
    Sep 2006
    Location
    India
    Posts
    209
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    You may want to add /usr/local/Zend/etc/ path in the allowed path for php to overcome the open_basedir restriction.
    EG:
    /home/user/:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/Zend/etc/
    include_path='.:/usr/lib/php:/usr/local/lib/php:/tmp:/usr/local/Zend/etc/'

  3. #3
    Member
    Join Date
    Nov 2004
    Posts
    44

    Default

    Hello,

    Thank you for your update.But could you please elaborate it more.What changes you want me to do and where?

    Thank you.



    Regards,
    Linuxgirl

Similar Threads & Tags
Similar threads

  1. Problem with eAccelerator and open_basedir
    By ErkDog in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-01-2010, 04:30 PM
  2. open_basedir
    By daltonc in forum Security
    Replies: 3
    Last Post: 10-13-2006, 04:19 PM
  3. Please help with the known problem of open_basedir restriction
    By uri92 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-04-2004, 05:44 AM
  4. Please help with open_basedir!
    By null in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 01-16-2003, 07:39 AM
  5. open_basedir
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-02-2002, 03:56 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube