how to switch from php 5.0.4-10 to 4.3.x

Author Message

Greg McAvoy-Jensen

Monday 20 June 2005 10:20:55 am

I just did a fresh install of linux (now FC4). Can anyone tell me the simplest way to switch my php 5.0.4-10 to 4.3.x? I'm afraid my trial and error technique will end up forever putting all kinds of files in the wrong place, and on my last try on my RH9 I managed to get new installs of ezpublish to fail (http://www.ez.no/community/bugs/fresh_install_yeilds_no_database_connection_could_be_made_the_system_might_not_behave_properly).
I'd like to do it right this time. Where should I start? Below are the notes on how I used to try installing Apache and php for ez.no. I'd start after unpacking the tarball for Apache, then moving into its directory.

./configure --enable-rewrite=shared --enable-so
make
make install
rm -rf /usr/local/php
su
cd /home/gregmj/php-4.3-4
./configure --prefix=/usr/local/php --with-config-file-path=/etc/php --with-apxs2=/usr/local/apache2/bin/apxs --enable-track-vars --enable-magic-quotes --enable-debugger --with-mysql --with-mysql-sock=/tmp/mysql.sock
make
make install
cp php.ini-dist /etc/php.ini

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Daniel Beyer

Monday 20 June 2005 2:38:34 pm

Hi,

this might not be a real help, but if you reinstalled your system you might want to do this again and give debian sarge a try this time. I strongly recomend this if you plan to run a stable productiv system. The network-installer is about 100MB and you can get an iso-image at http://www.debian.org/CD/netinst/ . We're very happy with debian - manly because of the packet-engine "dpkg" and apt. You can get apache (or apache2), mysql and php4 easily with apt. If you need help with Debian GNU Linux, just contact me at ich['at"]daniel-beyer.com.

If you're not going to setup a productive system, than give the Linux-Installer of eZ systems a try. This installer will setup apache, php and mysql together with eZ publish on your system. See: http://www.ez.no/ez_publish/download

Daniel Beyer
_________________________________
YMC AG
Kreuzlingen, Switzerland
web: www.ymc.ch
____________________________________

Greg McAvoy-Jensen

Sunday 26 June 2005 9:48:35 pm

I'll keep Debian in mind for next time. I've got access to the "yum" facility with FC4, but php 4 isn't available to it. Apache is running fine, hosting non-ez-Publish sites already, but will need to be re-compiled, I'm sure, to get php 4.3.x to work properly.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Lars Tore Gustavsen

Monday 27 June 2005 12:25:24 am

One solution can be to uninstall php and mysql. Then install php and mysql from FC3. I have tested this one a workstation.

I also think debian sarge is a great choice for a server.

Greg McAvoy-Jensen

Monday 27 June 2005 9:24:33 am

Interesting. How would I install it from FC3? I do have the CD's.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Lars Tore Gustavsen

Tuesday 28 June 2005 12:17:35 am

You can install it with the rpm tool (http://www.rpm.org/max-rpm/).
You have to uninstall php and mysql first.

Check what you have installed with (in a console)
#rpm -qa|egrep -i "mysql|php"

Do a rpm -e package-names

Mount the cdrom (I don't remember which)
Go to the RPMS directory and install the same package as you uninstalled.

Greg McAvoy-Jensen

Thursday 05 January 2006 10:07:36 pm

I switched to Debian and am very happy with it.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.