[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need help building php4



Thanks! Actually, the thing I'm most unclear about is what all the output
files are and where they go.  I saw on another Web page that php4 is the
only file that matters, so I'll try that this afternoon. But it seems that a
lot of other files are generated, too.

Jen

----- Original Message -----
From: "Erdmut Pfeifer" <e.pfeifer@science-computing.de>
To: <debian-user@lists.debian.org>
Sent: Thursday, November 29, 2001 11:08 PM
Subject: Re: Need help building php4


> On Thu, Nov 29, 2001 at 07:30:55PM -0800, jennyw wrote:
> > I've run into some problems with php4 and it's been suggested I
recompile
> > php4.  The problem is ... I've never done this before, and reading the
> > directions is leaving me with a few questions. First, am I getting the
right
> > files? I typed "apt-get source php4" and then found the files in
/etc/apt.
> >
> > The instructions said to run configure in the php4 source directory
which I
> > did (to compile the dynamic module). When this is done, the script says
that
> > it's the CGI version ... I don't think this is what I want ...  What I
want
> > is to be able to use mod_php4, like what I have currently (except that
the
> > current install has a few issues, hence the recompile: e.g. it says that
> > squirrel mail is redefining functions when it's not).
>
> as with any autoconf-generated configure script, you can always run
>
> ./configure --help
>
> to get a list of all available configure options. Among these, you'll
> find --with-apxs and --prefix, etc. and a whole bunch of --with-* or
> --enable-* options, some of which might apply here.
>
> To build the dynamically loadable apache module (DSO), you probably
> need at least something like
>
> ./configure --with-apxs
>
> (or "./configure --with-apxs=/usr/bin/apxs", if apxs should not be
> found for some reason)
>
> plus some other --with-* options (e.g. --with-mysql). Also, the
> --prefix[=DIR] option might come in handy to get "make install" to put
> the stuff in the right directories. For the purpose at hand, though, it
> might suffice to manually copy the libphp4.so file to
/usr/lib/apache/1.3/,
> the rest should already have been setup correctly upon installation of
> the original php4 deb-package.
>
> The INSTALL document that comes with php includes some more details, in
> particular the section VERBOSE INSTALL, subsections 2a and 4a.
>
> You probably also need to get the apache-dev package, as this includes
> the apxs tool. Along similar lines, always check whether there is some
> developer package, in case you find something is missing when trying
> to build things from sources (this might happen for some of the other
> --with-* options...).
>
> As usual, http://packages.debain.org/ is your friend, if you need to
> locate which package a specific file is contained in.  Also see
>
> http://packages.debian.org/testing/web/php4.html
>
> for the list of php add-on modules that are built into the regular
> deb-package. If you need the associated funtionalities, you might (or
> might not) need to specify the appropriate --with-* or --enable-*
> option to configure, depending on the defaults in effect (see the
> output of --help).
> I'm not a PHP expert (personally prefer mod_perl), so I can't tell you
> any details on which options you most probably want, and how to get
> those working properly -- I assume there is some PHP list to post
> specific questions to...
>
> Good luck
>
> --
> Erdmut Pfeifer
> science+computing ag
> www.science-computing.de
>
> -- Bugs come in through open windows. Keep Windows shut! --
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
>
>
>
>



Reply to: