[4.4.1] Compile libphp4.so from src w/o apache src?



Hello, I was running php 4.1.2 that came with my Linux distro a while
back (RH7.3 RPM, Kernel 2.4.20-20.7) and I wanted a newer version so I
download the src tarball from the web and compiled it and it looks like
that well, as I have the new one in /usr/local/bin (the old binary is
still in /usr/bin until I have the new one working with my apache) :

$ php -v
PHP 4.4.1 (cgi) (built: Dec 13 2005 20:32:47)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


My question is, how can I compile a libphp4.so for use with my apache.
My apache is of a special configuration, so recompiling is not an option
(it was made available as an RPM when I obtained it some time ago, so I
don't have the source.)

Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b
PHP/4.1.2 mod_perl/1.26 FrontPage/5.0.2.2510 configured

The INSTALL file that came with the tarball wasn't very helpful in this
regard. It seems to make sense to me that one should be able to simply
compile the libphp4.so separately and add it to the modules for apache.

Thanks for any help


.



Relevant Pages

  • Re: upgrage from 4.1.2 to 4.3.3+?
    ... > every available RPM for the distro...and there isn't one for PHP. ... > And also, I uh, don't believe I've ever recompiled Apache or PHP. ... Well - You could compile your own version of Apache and PHP and place it ... port number - By this I mean, whenever you visit a website, it defaults ...
    (comp.lang.php)
  • Re: Setting up Apache on RH8
    ... Rock wrote: ... > I am now ready to test out a php ecommerce store before I upload it to ... rpm -qa | grep httpd ... To make sure apache runs at startup run: ...
    (alt.os.linux.redhat)
  • Re: Problem: php not working with apache on RedHat 9.0
    ... Perhaps the apache rpm was not built to handle the php ... >> installation instructions. ...
    (RedHat)
  • Re: Configure help using CentOS 5.1
    ... PHP excludes MySQL, PDO and a bunch of other popular modules. ... apxs is used to compile the package. ... It should be part of your Apache installation; depending on what they shipped you, you may have to install an Apache development package or similar. ...
    (comp.lang.php)
  • Re: php on RH8
    ... > i have to redo the rpm install for php on one of our RH8 boxes because ... > cli doesn't execute the mysql functions (if there are not any of them it ... If you can't find the RPM, just compile it yourself. ...
    (RedHat)