LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   update redhat enterprise to php 5.0.2 (https://www.linuxquestions.org/questions/red-hat-31/update-redhat-enterprise-to-php-5-0-2-a-505397/)

ltbaggz 11-27-2006 08:58 PM

update redhat enterprise to php 5.0.2
 
I am trying to update the default linux installation of php 4.3.9 to php 5.0.2. ive tried to use:

php -i | grep Configure

to get configuration options but since linux installed when the OS was installed there is all kinds of stuff in there and i can not make sense of it. I currently have the new version of php in /usr/src/php-5.0.2 but cannot get ./configure to work. any help would be greatly appreciated.

thanks
drew

Lenard 11-28-2006 06:50 AM

Errr.... anything wrong with getting the source rpm file from Fedora core and building the binary rpm packages;

http://download.fedora.redhat.com/pu...4-10.5.src.rpm
http://download.fedora.redhat.com/pu....6-1.2.src.rpm

Or using the php 5 src.rpm from CentOS;
http://isoredirect.centos.org/centos...centos.src.rpm

Example;
rpmbuild --recompile --rebuild --define 'dist .el4' php-5.1.6-1.2.src.rpm

.

ltbaggz 11-29-2006 07:43 AM

well the problem is that i am not real familiar with linux. i did download the fedora version of php5 but had difficulties installing it. i am not in front of the computer right now but will the above command install it correctly?
then how do i link it to apache so i can use php.(how can i find the directory that apache is installed in? is it etc/httpd?

Do i need to unistall the current version on my machine? if so how can i be sure that everything has been removed. is there a command?

I appreciate the help and apologize for my lack of knowledge, im learning!

Drew

Lenard 11-29-2006 08:43 AM

First it is not a good idea to attempt installing binary rpm packages built for another distribution. Rebuilding from the soucre works fairly well, but toy may have to edit the spec file and/or install other packages some that also need to be built from source.

The rpmbuild command will build the binary rpm packages for installation. Review the output at the end, you should see something like (if successfully built) for example;

Wrote: /home/lenard/rpmbuild/RPMS/x86_64/php-5.1.6-1.2.1.centos.x86_64.rpm

No need to un-install the older version just install the new php packages by typing something like; rpm -Fvh php*.rpm

You can verify with; rpm -qa 'php*'

As far as setting up php with apache review the manuals for RHEL 4, the best way to learn; http://www.redhat.com/docs/manuals/enterprise/

http://www.redhat.com/docs/manuals/e...ual/ref-guide/


All times are GMT -5. The time now is 06:19 AM.