LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2004, 11:54 AM   #1
devil_flake
LQ Newbie
 
Registered: Feb 2004
Location: Memphis, TN
Posts: 2

Rep: Reputation: 0
Recomplie PHP from srpm on redhat 9


Ok... I haven't used rpm all that much, and I need to recompile PHP on my redhat 9 box with some option changes. The man pages are not giving me what I need and the info is either absent from the redhat site or buried under the weight of their removal of support.

First, where's a good place to get the latest PHP srpm's (oddly enough, I'm having trouble finding anything later than php 4.2.2)?

Second, I need a very brief walkthrough on installation and configuration. How's it done? And, most importantly, what is the best way to edit the option flags for installation (I need to insert --enable-pcntl)? Do I install first and recompile using an edited .spec file or can I edit the specs on the front end?

Help...

Last edited by devil_flake; 02-11-2004 at 12:13 PM.
 
Old 02-11-2004, 01:21 PM   #2
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
If you're compiling from source you could do it using the tarball from the PHP website (http://us2.php.net/get/php-4.3.4.tar.gz/from/a/mirror). Go to the directory, and type 'tar xzf php-4.3.4.tar.gz'. This extracts all the files into a folder called php-4.3.4. Now, type these commands:
Code:
cd php-4.3.4
./configure --enable-pcntl
make
make install
The ./configure line tells it what options you want PHP to have. Make compiles it and make install installs it. If you want to make an RPM out of it, get checkinstall (http://asic-linux.com.mx/~izto/check...5.3-1.i386.rpm), install that, and type 'checkinstall' instead of 'make install' and choose RPM when it asks you. Either way, you need to be root to install stuff. Hope this helps
 
Old 02-11-2004, 02:22 PM   #3
devil_flake
LQ Newbie
 
Registered: Feb 2004
Location: Memphis, TN
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Go to the directory, and type 'tar xzf php-4.3.4.tar.gz'. This extracts all the files into a folder called php-4.3.4. Now, type these commands:
That's what I tried originally without success. I am working on a redhat 9 box, and I cannot seem to update PHP. I feel like a complete moron at this point. I am using apache2, and php is installed as a module. I cannot figure out where to put PHP... The installation procedure works, but it simply makes a new instance of php. It does not replace the operative version... at least I think that's what happens

I want to upgrade from PHP 4.2.2 to 4.3.3 with process control enabled on my redhat machine. I can't find the information I need anywhere. I have tried everything I can think of. Does anyone know the solution to this... My hair is about to be pulled from my head.

Thanks in advance.
 
Old 02-11-2004, 11:48 PM   #4
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
You say it just makes a new instance of PHP. Are you sure you removed the old one?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Srpm? halechris Linux - Newbie 2 11-16-2004 11:04 PM
How to upgade or recomplie the new kernel 2.6.8.1 in Debian linuxxunil Debian 5 08-25-2004 01:04 PM
gnome 2.4 srpm build order on redhat AS 3.0 dnraikes Linux - General 1 12-19-2003 07:59 PM
noarch SRPM demmylls Linux - General 1 12-18-2003 03:13 PM
recomplie and no ALSA digital abuzer Slackware 1 10-21-2003 05:59 PM


All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration