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

Bug #759974 reported by H.-Dirk Schmitt
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
roundcube (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: roundcube

roundcube doesn't show up in the browser
In the syslog (apache error log) I see:
PHP Fatal error: Class 'PEAR' not found in /usr/share/roundcube/program/include/iniset.php on line 132

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: roundcube 0.5.1+dfsg-7
ProcVersionSignature: Ubuntu 2.6.38-8.41-server 2.6.38.2
Uname: Linux 2.6.38-8-server x86_64
Architecture: amd64
Date: Wed Apr 13 18:16:53 2011
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Alpha amd64 (20110201.2)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
 LC_PAPER=de_DE.UTF-8
SourcePackage: roundcube
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
H.-Dirk Schmitt (dirk-computer42) wrote :
Revision history for this message
H.-Dirk Schmitt (dirk-computer42) wrote :

problem still exists

Changed in roundcube (Ubuntu):
status: New → Confirmed
Revision history for this message
ungalcrys (ungalcrys) wrote :

install php-pear

Revision history for this message
H.-Dirk Schmitt (dirk-computer42) wrote :

php-pear is allready installed

Revision history for this message
A0Z (0cs935kb517wwm-mail-wz6bkyhu4uqpfa) wrote :

Maybe it's not a bug. Try in \etc\php5\apache2 :

open_basedir = /var/www:/tmp:/usr/share/roundcube:/usr/share/php:/var/lib/roundcube:/etc/roundcube

Revision history for this message
H.-Dirk Schmitt (dirk-computer42) wrote :

No change - still the same error message after setting this value in /etc/php5/apache2/php.ini

Revision history for this message
Krisztian Kocsis (krisztian-kocsis) wrote :

I have to same problem.
It does not work with mod_php nor mod_cgi but works with mod_fcgid.
Quite strange...

Revision history for this message
Pander (pander) wrote :

Does anyone have a solution on how to fix this?

Pander (pander)
tags: added: 12.10
Revision history for this message
Michal Weinfurtner (weinfurt) wrote :

Same problem here

I just added "/usr/share/roundcube:/usr/share/php:/var/lib/roundcube:/etc/roundcube" to open_basedir configuration and roundcube works !

Don't forget restart APACHE

Make sure, you don't have open_basedir reconfigured in <location /> tags somwere in apache2 configuration, like i had. In that case php.ini setting has no effect.

Revision history for this message
Laurent Declercq (l-declercq) wrote :

Hello community ;

I've encountered an identical problem on Ubuntu 12.4. To solve it, I've only un-commented the include_path parameter (include_path = ".:/usr/share/php") into the /etc/php5/apache2/php.ini and restarted the apache2 service.

cheers

Revision history for this message
Pander (pander) wrote :

Both suggestions are not fixing my 12.10 installation. Still have the same error. My Apache2 config has:

    Alias /rc/program/js/tiny_mce/ /usr/share/tinymce/www/
    Alias /rc /var/lib/roundcube

# Access to tinymce files
<Directory "/usr/share/tinymce/www/">
      Options Indexes MultiViews FollowSymLinks
      AllowOverride None
      Order allow,deny
      allow from all
</Directory>

<Directory /var/lib/roundcube/>
  Options +FollowSymLinks
  # This is needed to parse /var/lib/roundcube/.htaccess. See its
  # content before setting AllowOverride to None.
  AllowOverride All
  order allow,deny
  allow from all
</Directory>

# Protecting basic directories:
<Directory /var/lib/roundcube/config>
        Options -FollowSymLinks
        AllowOverride None
</Directory>

<Directory /var/lib/roundcube/temp>
        Options -FollowSymLinks
        AllowOverride None
        Order allow,deny
        Deny from all
</Directory>

<Directory /var/lib/roundcube/logs>
        Options -FollowSymLinks
        AllowOverride None
        Order allow,deny
        Deny from all
</Directory>

Revision history for this message
Andreas Schiller (as-aschiller) wrote :

I just had the same problem as Pander (#11).

The problem here was another installed webapp (DaviCAL) which overrode include_path within its apache-config.

BTW: I found out by creating /var/lib/roundcube/phpinfo.php:

 <?php phpinfo() ?>

and then calling http://myserver/roundcube/phpinfo.php and checked include_path within core section

Revision history for this message
Pander (pander) wrote :
Revision history for this message
pratyush kumar (pratyushk) wrote :

i too had same problem using roundcube with open_basedir enabled (i use ispconfig)
i got it solved by adding

php_admin_value open_basedir /usr/share/roundcube:/etc/roundcube:/var/lib/roundcube:/etc/hostname:/etc/mailname:/usr/share/php

and

php_value include_path .:/usr/share/php (got hint from the comment by Andreas Schiler)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.