[BlueOnyx:17783] Re: More Roundcube issues - fixed

Michael Stauber mstauber at blueonyx.it
Sun Jun 14 21:51:15 -05 2015


Hi Chris,

> Welp... this is on a new customer box (5208R) with Solarspeed's PHP 
> 5.4.38-1 installed. Server is fully yum'd.  I still get blank white 
> pages for Roundcube, and this in /var/log/httpd/error_log:
> 
> PHP Fatal error:  Class 'PEAR' not found in 
> /home/.sites/143/site2/web/webmail/program/lib/Roundcube/bootstrap.php 
> on line 102, referer: 
> http://208.77.216.131:444/webapps/webappVsiteEdit?group=site2&appname=roundcubemail
> 
> So I was wondering if there is something that I have not yet uncovered 
> in the installation process.

Yeah, there are two steps involved in getting it working. The first one
happens automatically when CCEd is restarted and when it runs this
constructor:

/usr/sausalito/constructor/base/apache/fix_php_conf.pl

That checks which PHP is installed and does a "pecl install Net_IDNA2"
for that PHP version.

The second step is this:

Go to the server wide PHP settings ("Server Management" / "Security" /
"PHP Settings") and under "Open Basedir (Vsite):" you need to add the
path to the PHP's pear directory.

With the Solarspeed PHP installed that's this directory:

/home/solarspeed/php/share/pear

When you save the changes this path will be added to all Vsites as well
and RoundCube should work.

I'll need to add this automatism to the above constructor as well.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list