Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-02-2005, 02:23 PM   #1
Registered: Sep 2001
Location: New York
Distribution: Slackware 8
Posts: 100

Rep: Reputation: 16
How do i make my own php rpm?

I'm running RHEL 3ES and have been doing everything via up2date until just now. I need to roll my own version of php but I have know idea how to do this. I've been playing around w/ .spec files with no luck..

i downloaded the source for php4.4.1 from
( and i can build and install it from source w/ no problem)

I want everything to work the way the redhat rpm works.
The only thing I want different from the way redhats rpm is:

1. I want to use php-4.4.1 instead of 4.3.2 ( from up2date)
2. I want to change the "./configure" line when it builds to the following

./configure \ --host=i686-redhat-linux \ --build=i686-redhat-linux \ --target=i686-redhat-linux-gnu \ --enable-force-cgi-redirect \ --disable-debug \ --enable-pic \ --disable-rpath \ --enable-inline-optimization \ --with-bz2 \ --with-curl \ --with-dom=/usr \ --with-png-dir=/usr \ --with-gd \ --enable-gd-native-ttf \ --with-ttf \ --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-pcre-regex \ --with-zlib \ --with-layout=GNU \ --enable-bcmath \ --enable-exif \ --enable-ftp  \ --enable-safe-mode \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-discard-path \ --enable-track-vars \ --enable-trans-sid \ --enable-wddx \ --enable-mbstring \ --enable-mbstr-enc-trans \ --enable-mbregex \ --without-oci8 \ --with-pear \ --with-kerberos=/usr/kerberos \ --with-ldap=shared \ --with-mysql=shared,/usr \ --enable-memory-limit \ --enable-bcmath \ --enable-shmop \ --enable-versioning \ --enable-calendar \ --enable-dbx \ --enable-dio \ --with-mcrypt=/usr/local/lib \ --enable-mcal \ --with-apxs2filter=/usr/sbin/apxs
(which i will be changing later.. but for now thats how i want to configure)

the main goal is to run the following on my server
rpm -e php php-mysql php-devel php-ldap php-$everything
rpm -i php-myversion-4.4.1.rpm

and hope everything works
Old 12-02-2005, 08:07 PM   #2
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
there are many resources for building rpm's, do a google to get an idea of what you need to do to do it manually. you might want to try some utilities, like RPMBuild or checkinstall, though i'm not sure exactly where they would differ from an official redhat rpm. I imagine though they will probably do what you are wanting to do.



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
how do I make a binary rpm from a source rpm darkone66669 Linux - Software 3 01-11-2005 10:42 AM
Searching PHP RPM?!?!!?!! djkoe Linux - Newbie 1 12-29-2003 10:03 AM
php-4.2.4 RPM RH 9.0 Blackrose_1100 Red Hat 0 11-18-2003 03:54 PM
RPM of php problem kelper Linux - General 4 02-26-2003 04:47 AM
RPM of php installation kelper Linux - Software 3 01-23-2003 10:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:53 AM.

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