Upgrading from 4.2.2

I need to upgrade my RH9 box with apache2 which is running great as of now to a newer version of php. I cant makeup my mind should I go for php5 or for 4.3.9 and what would be the easiest way to upgrade (steps would be great). thankyou.
kingpin006Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hernst42Commented:
Use rpms to upgrade your system.
rpms for RH9 and php 4.3.9 can be found here: http://au.seekbrain.com/downloads/psa/9/RPMS/

If you don't need special feature of php5 use php4, as upgrading to php5 will need a lot more newer libraries.
Download the rpm and use rpm -Uhv *.rpms. rpm will inform you if you need additional/new libraries.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kingpin006Author Commented:
thanx for your help, it worked.. more or less.. but now I cant follow any links to directories from the main site. like I can goto mysite.com/index.php and mysite.com/test.php but not mysite.com/forums/index.php or just about any directory inside the home directory...
0
kingpin006Author Commented:
I did it through yum btw not rpm, I saw they had a method to add thier channel to yum so I used it.

also points upped to 200.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

hernst42Commented:
Which error do you get when you try to access
mysite.com/forums/index.php
0
kingpin006Author Commented:
no error it just doesnt go there, doesnt load atall, its like I dodnt click atall.
0
hernst42Commented:
Are there any entries in the apache errorlog ?
0
kingpin006Author Commented:
my logs are full of following :

[Sun Nov 28 03:42:51 2004] [notice] child pid 20485 exit signal Segmentation fault (11)
[Sun Nov 28 03:43:24 2004] [notice] child pid 20480 exit signal Segmentation fault (11)
[Sun Nov 28 03:43:43 2004] [notice] child pid 20538 exit signal Segmentation fault (11)
[Sun Nov 28 03:45:03 2004] [notice] child pid 20543 exit signal Segmentation fault (11)
[Sun Nov 28 03:45:16 2004] [notice] child pid 20557 exit signal Segmentation fault (11)
[Sun Nov 28 03:46:20 2004] [notice] child pid 20569 exit signal Segmentation fault (11)
[Sun Nov 28 03:46:49 2004] [notice] child pid 20567 exit signal Segmentation fault (11)
[Sun Nov 28 03:47:38 2004] [notice] child pid 20558 exit signal Segmentation fault (11)
[Sun Nov 28 03:48:02 2004] [notice] child pid 20580 exit signal Segmentation fault (11)
[Sun Nov 28 03:48:46 2004] [notice] child pid 20586 exit signal Segmentation fault (11)
[Sun Nov 28 03:49:09 2004] [notice] child pid 20588 exit signal Segmentation fault (11)
[Sun Nov 28 03:49:18 2004] [notice] child pid 20589 exit signal Segmentation fault (11)
[Sun Nov 28 03:49:54 2004] [notice] child pid 20581 exit signal Segmentation fault (11)
[Sun Nov 28 03:50:25 2004] [notice] child pid 20600 exit signal Segmentation fault (11)
[Sun Nov 28 03:51:02 2004] [notice] child pid 20603 exit signal Segmentation fault (11)
[Sun Nov 28 03:51:10 2004] [notice] child pid 20613 exit signal Segmentation fault (11)
[Sun Nov 28 03:51:39 2004] [notice] child pid 20616 exit signal Segmentation fault (11)
[Sun Nov 28 03:51:56 2004] [notice] child pid 20626 exit signal Segmentation fault (11)
[Sun Nov 28 03:52:36 2004] [notice] child pid 20632 exit signal Segmentation fault (11)
[Sun Nov 28 03:54:03 2004] [notice] child pid 20634 exit signal Segmentation fault (11)
[Sun Nov 28 03:55:05 2004] [notice] child pid 20639 exit signal Segmentation fault (11)
[Sun Nov 28 03:55:38 2004] [notice] child pid 20675 exit signal Segmentation fault (11)
[Sun Nov 28 03:57:37 2004] [notice] child pid 20676 exit signal Segmentation fault (11)
[Sun Nov 28 03:58:09 2004] [notice] child pid 20685 exit signal Segmentation fault (11)
[Sun Nov 28 03:59:37 2004] [notice] child pid 20699 exit signal Segmentation fault (11)
[Sun Nov 28 04:00:24 2004] [notice] child pid 20718 exit signal Segmentation fault (11)
[Sun Nov 28 04:01:13 2004] [notice] child pid 20713 exit signal Segmentation fault (11)
[Sun Nov 28 04:01:59 2004] [notice] child pid 20719 exit signal Segmentation fault (11)
[Sun Nov 28 04:02:09 2004] [notice] child pid 20727 exit signal Segmentation fault (11)
[Sun Nov 28 04:02:27 2004] [notice] child pid 20990 exit signal Segmentation fault (11)
[Sun Nov 28 04:04:20 2004] [notice] child pid 20979 exit signal Segmentation fault (11)
[Sun Nov 28 04:04:23 2004] [notice] child pid 20992 exit signal Segmentation fault (11)
[Sun Nov 28 04:06:05 2004] [notice] child pid 20997 exit signal Segmentation fault (11)
[Sun Nov 28 04:06:09 2004] [notice] child pid 21014 exit signal Segmentation fault (11)
[Sun Nov 28 04:06:14 2004] [notice] child pid 21013 exit signal Segmentation fault (11)
[Sun Nov 28 04:08:28 2004] [notice] child pid 21015 exit signal Segmentation fault (11)
[Sun Nov 28 04:08:37 2004] [notice] child pid 21012 exit signal Segmentation fault (11)
[Sun Nov 28 04:09:34 2004] [notice] child pid 21028 exit signal Segmentation fault (11)
[Sun Nov 28 04:10:51 2004] [notice] child pid 21034 exit signal Segmentation fault (11)
[Sun Nov 28 04:12:22 2004] [notice] child pid 21044 exit signal Segmentation fault (11)
0
hernst42Commented:
Seems that the upgraded php-version via rpms have a problem with some libraries so the web server crashes. To track such an error down is very complicated as you need debugging skills.

Try recompiling php on your own. If you get a php-info-page you can see which configure options you can use.

Another option is to upgrade the whole sever to a newer version. This might be less work than trying to get php 4.3.9 to work with that system.

If you are satisfied with a php 4.3.6 Try the rpms from here: http://theprecipice.org/gallery/redhat-9/ which have been reported to work on RH9 (http:Q_21197608.html)
0
kingpin006Author Commented:
ok thanx for your help, so all im going to be doing is removing the current php then reinstalling the 4.3.6 version via yum?
0
kingpin006Author Commented:
here is a php info file :

http://www.kingpinservers.com/kps.php

you can try
 http://www.kingpinservers.com/forums/index.php

and see what im talking about.
0
hernst42Commented:
That version of php is compiled as filter, which is not realy stable. Try to recompile php to use php as handler and not as filter.

With that command-line (in the unpacked php-surces. YOu might also need to install additional devel-packes if some files can not be found during the configure):
'./configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--enable-xslt=shared' '--with-xslt-sablot' '--with-sablot-js=/usr' '--with-mhash=shared' '--with-mcrypt=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-pgsql=shared' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-apxs2=/usr/sbin/apxs'
make
make install
0
kingpin006Author Commented:
thanx for your help but enough I dont need anymore headaches, after installing about 9 packaes because php isntallation refused to recognize the ones that were already on the system even though they were newer, I gave up uninstalled the 4.3.9 and went back to good old 4.2.2 and leaving the 4.3 to some other time and some other distro. thankyou for your help and maybe I will use this reference some other day.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.