I'm kind of tethered to Modernbill right now so upgrading to Plesk8 introduces a whole host of issues. The only issue I have with php5.2.5 is Horde. So after many different "fixes" that didn't completely work this is the one that worked best.
Download and uncompress source:
Code: Select all
cd /usr/src/
wget http://us2.php.net/distributions/php-4.4.7.tar.gz
tar xvzf php-4.4.7.tar.gz
cd php-4.4.7/
Now configure and resolve any dependencies:
Code: Select all
./configure --prefix=/usr/local/php4 --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --with-libdir=lib --with-config-file-path=/usr/local/php4/lib --with-pic --disable-rpath --with-exec-dir=/usr/bin --with-png-dir=/usr --enable-gd-native-ttf --without-gdbm --with-gettext --with-iconv --with-jpeg-dir=/usr --with-png --with-zlib --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-pear=/usr/share/pear --enable-calendar --with-libxml-dir=/usr --with-xml --enable-force-cgi-redirect --enable-pcntl --enable-mbstring --enable-mbregex --with-ncurses --with-gd --enable-bcmath --with-xmlrpc --with-mysql --with-mysqli --enable-dom --with-xsl --enable-fastcgi --program-suffix=4 --with-expat-dir=/usr --with-ldap=shared --with-imap --with-imap-ssl=/usr/include/openssl --with-kerberos
Compile and install php4:
Check if the modules are installed properly with php4:
If not check the following binaries
Copy them over if needed:
Code: Select all
cp -rf ./sapi/cgi/php /usr/local/php4/bin/
Setup directories for apache:
Code: Select all
mkdir -pv /etc/httpd/cgi-sys/
cp -rf ./sapi/cgi/php /etc/httpd/cgi-sys/
cp -rf php.ini-recommended /usr/local/php4/lib/php.ini
Create this file /etc/httpd/conf.d/zz050a_horde_php_workaround.conf and insert the following:
Code: Select all
<DirectoryMatch /usr/share/psa-horde>
AddHandler application/x-httpd-php4 .php
php_value include_path "/usr/share/psa-horde/lib:/usr/share/psa-horde:/usr/share/psa-horde/pear:."
</DirectoryMatch>
Modify Horde to work with CGI version of PHP:
Go to line 206 and edit to look like this:
Code: Select all
// get hostname from http URL (patch for Plesk)
#$headers = getallheaders();
$ServerName = preg_replace('/^webmail\./', '', preg_replace('/^www\./', '', $_SERVER['HTTP_HOST']));
Now the installation is finished, restart Apache and test Horde.
http://webmail.domain.com/test.php
It should list your version of php as 4. Now test your webmail and you should be able to log in rather then see a white page.