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
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.
Thanks till, but the problem is that I was setting open_basedir to /usr/share/pear when it should be /usr/share/php