Re: Trouble with php 4.33 RPM on SuSE 7.3

From: stephan beal (stephan_at_s11n.net)
Date: 12/10/03


Date: Wed, 10 Dec 2003 12:19:47 +0100

Russell wrote:
> I've tried using the mod_php 4.33 RPM from
> ftp.suse.com/pub/projects/apache/mod_php4/7.3-i386/
>
> Everything works great until I try php grouware which dies with Fatal
> error: Call to undefined function: imap_open()
...
> SO I _think_ this might be my problem. Trouble is, I ahve no idea how to
> go about building the source rpm available in that folder.

You're exactly right: the php needs to be built --with-imap (or
--with-cygnus, or whatever the option is actually called).

> /usr/src/packages/SPECS/mod_php4.spec:30: parseExpressionBoolean returns
> -1

Probably because Suse 7.x uses a much older version of RPM, missing some
features which have been introduced since then.

> and from here I am stuck. It seems this srpm has lots of Apache2 stuff
> in it, when all I need to build is the modphp rpms for apache 1.3.x

Follow the installation docs which come with the PHP source tree and you'll
be all set.

> Can anyone offer any help or suggestions? Given the RPMs install, if I
> could jsut fix this one bit, it'd be so much easier than going to source
> with something like apachetoolbox.

Building PHP is not difficult: the docs explain it 100% clearly and
accurately.

-- 
----- stephan beal
http://s11n.net/
Registered Linux User #71917 http://counter.li.org
I speak for myself, not my employer. Contents may 
be hot. Slippery when wet. Reading disclaimers makes
you go blind. Writing them is worse. You have been Warned.


Relevant Pages

  • 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: [PHP] Installing php and mysql on linux
    ... Does anyone know where I can go to download a php-mysql rpm? ... [PHP] Installing php and mysql on linux ... That's what 'command not found' means, it can't find the 'up2date' command. ... bash: up2date: command not found ...
    (php.general)
  • 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: apache2 + PHP + RH
    ... apache seems to not parsing the php pages. ... This was _probably_ done by the apxs2 mod installer: ... Removing the RPM probably removed ...
    (comp.lang.php)
  • [4.4.1] Compile libphp4.so from src w/o apache src?
    ... I was running php 4.1.2 that came with my Linux distro a while ... how can I compile a libphp4.so for use with my apache. ... (it was made available as an RPM when I obtained it some time ago, ...
    (comp.lang.php)