Author Topic: webmail problem  (Read 4646 times)

spuente

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
webmail problem
« on: June 26, 2010, 12:00:02 am »
Hello everybody a install mysql because it was not working, i needed to install glpi and ocsinventoy, and now i have this error wen i try to open the wemail modulo.

thank and i put here the error.


****************************************************************

Warning: include(PEAR.php) [function.include]: failed to open stream: No such file or directory in /usr/share/roundcube/program/include/iniset.php on line 99

Warning: include() [function.include]: Failed opening 'PEAR.php' for inclusion (include_path='/var/lib/roundcube/:/var/lib/roundcube/program:/var/lib/roundcube/program/lib:/var/lib/roundcube/program/include:.:/usr/share/obm/www') in /usr/share/roundcube/program/include/iniset.php on line 99

Fatal error: Class 'PEAR' not found in /usr/share/roundcube/program/include/iniset.php on line 122



stovesy

  • Zen Apprentice
  • *
  • Posts: 15
  • Karma: +2/-0
    • View Profile
Re: webmail problem
« Reply #1 on: July 20, 2010, 11:33:54 am »
I had the same problem.

It is caused by not having the PEAR system in the PHP5 include path.

You need to edit the php.ini include path
You need to do this from the console.

My php.ini file lives at /etc/php5/apache/php.ini

In that file, look for 'Paths and Directories' (around line 490)
I added the PEAR directory so the line is as follows:
Code: [Select]
include_path="/usr/share/awl/inc:/usr/share/php"
In the php.ini, a colon ':' character separates each include path.

After saving the file, you need to restart apache. (sudo /etc/init.d/apache2 restart)

This solved my problem.