OK, I've searched through many forum posts and documentation articles, but I still cannot figure out how to get PHP4 on my system. I am a linux novice, so please try to explain things clearly...I don't know a lot of the "linux geek speak" stuff yet.
My system is CentOS 5.2. When I use "yum list" I can see that there are several php4* packages available via the virtualmin repository. So I did:
yum install php4*
and it seemed to work ok. However, when I do "php4 -v" I get this:PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib64/php4/mysqli.so' - /usr/lib64/php4/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib64/php4/pdo_mysql.so' - /usr/lib64/php4/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP 4.4.8 (cgi-fcgi) (built: Jun 24 2008 15:14:16) Copyright (c) 1997-2008 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
So it looks like there is something for PHP4 and MySQL missing from this.
At this point I can't even start trying to get PHP4 working for one of my virtual sites that needs it because of this error.
Could someone please give me some step-by-step instructions on how to get PHP4 and PHP5 both running on my CentOS system. I'm happy to do stuff manually at the root linux shell outside of Virtualmin as necessary.
I know that the "easy" switch between PHP4 and PHP5 are only in the Pro paid version of Virtualmin. Several people in other forum threads seem to think that it is straight-forward to do this manually in the GPL version, but I cannot figure it out.
If someone can help me get this working, then I can buy VirtualminPro. But until I can see PHP4 and PHP5 sites running on the same server, I cannot buy anything.