[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP4 to PHP3?



Mike Fritsch <mfritsch@xxxxxxxxxxxx> wrote:
> Does any one know where I can find a tutorial onhow to upgrade PHP3 to
PHP4?

Your subject let me down.  It looked like you wanted to downgrade from PHP4
to PHP3 b/c of some incompatibility in your scripts (yes, some PHP3 code
will not work in PHP4).  I don't think it's possible to include php4 in
Apache's httpd binary on a RaQ3 (or I should say it's *a lot* of work since
recompiling Apache looks to be very difficult on the RaQ3), but you can
install it as a DSO.  And if you have a RaQ2, just search for Paul
Schreiber's instructions in the list archives.  If you want to replace PHP3
and it was installed with RPMs, use "rpm -qa | grep php" to find the
installed php RPMs and then "rpm -e packagename" to remove them.  Then
download php4.0.1pl2.tar.gz from php.net and follow the instructions they
have online combined with slight modifications for the RaQ3 that were posted
within the last two weeks on this list.  If you want to keep PHP3 just skip
my "rpm -e" step.  In that case, you'll probably want to map AddType lines
for PHP3 to the .php3 extension and for PHP4 to .php4 and .php in srm.conf.
And if you need support for MySQL, PostgreSQL or anything else non-standard
in PHP, make sure you add those options in during the ./configure step and
if necessary load the source code for the programs you need to install.

Steven Werby {steven-lists@xxxxxxxxxxxx}