basedir restriction for pear mail

Discussion in 'Installation/Configuration' started by alleks, Feb 1, 2012.

  1. alleks

    alleks Member

    So I am trying to use pear's mail package but I keep getting open_basedir errors:

    Code:
    string(216) "/var/www/clients/client5/web63/web:/var/www/clients/client5/web63/tmp:/var/www/emprentic.es/web:/srv/www/emprentic.es/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/pear"
    string(15) "/usr/share/php"
    string(16) ".:/usr/share/php"
    
    Warning: require_once(): open_basedir restriction in effect. File(/usr/share/php/Mail.php) is not within the allowed path(s):
    PHP open_basedir
    Code:
    /var/www/clients/client5/web63/web:/var/www/clients/client5/web63/tmp:/var/www/emprentic.es/web:/srv/www/emprentic.es/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/pear
     
    Last edited: Feb 1, 2012
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The open_basedir path looks fine. Which Linux distribution do you use?
     
  3. alleks

    alleks Member

    I am using Debian Squeeze till.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please put a php file in the website from where you try to access pear with phpinfo() inside, then open the php file in the browser and check the open_basedir setting in the phpinfo() ooutput.
     
  5. alleks

    alleks Member

    Thanks till, but the problem is that I was setting open_basedir to /usr/share/pear when it should be /usr/share/php
     

Share This Page