This is a compile guide for using php4.x in Fedora core 7 with Plesk . Tested with php versions 4.4.4 , 4.4.6, 4.4.7 and 4.4.8 . Plesk versions 8.3 and 8.4. Before we continue i would like to make a note that this article is not meant to show you how to use php 4.x and php 5.x on the same server. My personal opinion is that it generally makes it harder for administration and also it will require one of the php instances to work as CGI or FastCGI, or fcgi , or whatever. This are proven to have slower performance than mod_php .
Another point that i would like to make is that you better think of this as temporary solution. I highly recommend to adapt your code for php 5.x rather than to stick to php 4.x . That i snot because php 4.x is insecure as many sales people will say , i know that your php 4.x code has been working fine for years and your site is still up and working.
Now lets get to the point. Here is what you will need to do.
First we have to install the required development packages so that we are able to compile php as apache 2.x module.
# we will have support for mysql, imap, ftp, GD lib, pear, regular expressions, zend, etc.

