PHP4 & apxs

PHP4 & apxs

Post by Bret Sander » Tue, 04 Jul 2000 04:00:00



I cannot seem to get PHP4 to configure with apxs on Solaris 2.7. I'm
using Apache 1.3.12, and php 4.01p12. It looks like it's passing invalid
arguments to apxs?

Quote:> ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs

---snip---

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...
Usage: apxs -g [-S <var>=<val>] -n <modname>
       apxs -q [-S <var>=<val>] <query> ...
       apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
               [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
               [-Wl,<flags>] <files> ...
       apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
       apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Sorry, I cannot run apxs. Either you need to install
Perl or you need to pass the absolute path of apxs by using
--with-apxs=/absolute/path/to/apxs

 
 
 

PHP4 & apxs

Post by Xavier ROCH » Tue, 04 Jul 2000 04:00:00


Hi,

I had the same problem-
The problem is the apxs which is missing: you need to install the
apache-devel module (if you're using rpm based apache) or the necessary
files to get apxs

You can also compile apache through:

tar xvzf apache_1.3.12.tar.gz
cd apache_1.3.12
./configure --prefix=/usr/local/apache --enable-module=so
--enable-rule=SHARED_CORE --enable-module=rewrite
--enable-module=speling --enable-module=mmap_static
--enable-module=example
make
make install
ln -s /usr/local/apache/bin/httpd /usr/sbin/httpd
ln -s /usr/local/apache/conf /etc/httpd/conf
ln -s /usr/lib /etc/httpd/lib

Bret Sanders a crit :> I cannot seem to get PHP4 to configure with apxs
on Solaris 2.7. I'm

Quote:> using Apache 1.3.12, and php 4.01p12. It looks like it's passing invalid
> arguments to apxs?
> configure: error: Sorry, I cannot run apxs. Either you need to install
> Perl or you need to pass the absolute path of apxs by using


 
 
 

PHP4 & apxs

Post by Bret Sander » Wed, 05 Jul 2000 04:00:00


apxs is there and it tries to run when I configure php4, but it doesn't
run correctly.

Bret


> Hi,

> I had the same problem-
> The problem is the apxs which is missing: you need to install the
> apache-devel module (if you're using rpm based apache) or the necessary
> files to get apxs

> You can also compile apache through:

> tar xvzf apache_1.3.12.tar.gz
> cd apache_1.3.12
> ./configure --prefix=/usr/local/apache --enable-module=so
> --enable-rule=SHARED_CORE --enable-module=rewrite
> --enable-module=speling --enable-module=mmap_static
> --enable-module=example
> make
> make install
> ln -s /usr/local/apache/bin/httpd /usr/sbin/httpd
> ln -s /usr/local/apache/conf /etc/httpd/conf
> ln -s /usr/lib /etc/httpd/lib

> Bret Sanders a crit :> I cannot seem to get PHP4 to configure with apxs
> on Solaris 2.7. I'm
> > using Apache 1.3.12, and php 4.01p12. It looks like it's passing invalid
> > arguments to apxs?
> > configure: error: Sorry, I cannot run apxs. Either you need to install
> > Perl or you need to pass the absolute path of apxs by using

 
 
 

PHP4 & apxs

Post by Peartre » Thu, 06 Jul 2000 04:00:00


do you have perl installed?



> apxs is there and it tries to run when I configure php4, but it
doesn't
> run correctly.

> Bret


> > Hi,

> > I had the same problem-
> > The problem is the apxs which is missing: you need to install the
> > apache-devel module (if you're using rpm based apache) or the
necessary
> > files to get apxs

> > You can also compile apache through:

> > tar xvzf apache_1.3.12.tar.gz
> > cd apache_1.3.12
> > ./configure --prefix=/usr/local/apache --enable-module=so
> > --enable-rule=SHARED_CORE --enable-module=rewrite
> > --enable-module=speling --enable-module=mmap_static
> > --enable-module=example
> > make
> > make install
> > ln -s /usr/local/apache/bin/httpd /usr/sbin/httpd
> > ln -s /usr/local/apache/conf /etc/httpd/conf
> > ln -s /usr/lib /etc/httpd/lib

> > Bret Sanders a crit :> I cannot seem to get PHP4 to configure with
apxs
> > on Solaris 2.7. I'm
> > > using Apache 1.3.12, and php 4.01p12. It looks like it's passing
invalid
> > > arguments to apxs?
> > > configure: error: Sorry, I cannot run apxs. Either you need to
install
> > > Perl or you need to pass the absolute path of apxs by using

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

PHP4 & apxs

Post by Bret Sander » Thu, 06 Jul 2000 04:00:00


Yes, it's there, and I can run apxs by hand without problems.


/bin/perl


-rwxr-xr-x   2 bin      bin       724924 Oct 26  1998
/usr/local/bin/perl


This is perl, version 5.005_02 built for sun4-solaris

Bret


> do you have perl installed?



> > apxs is there and it tries to run when I configure php4, but it
> doesn't
> > run correctly.

> > Bret


> > > Hi,

> > > I had the same problem-
> > > The problem is the apxs which is missing: you need to install the
> > > apache-devel module (if you're using rpm based apache) or the
> necessary
> > > files to get apxs

> > > You can also compile apache through:

> > > tar xvzf apache_1.3.12.tar.gz
> > > cd apache_1.3.12
> > > ./configure --prefix=/usr/local/apache --enable-module=so
> > > --enable-rule=SHARED_CORE --enable-module=rewrite
> > > --enable-module=speling --enable-module=mmap_static
> > > --enable-module=example
> > > make
> > > make install
> > > ln -s /usr/local/apache/bin/httpd /usr/sbin/httpd
> > > ln -s /usr/local/apache/conf /etc/httpd/conf
> > > ln -s /usr/lib /etc/httpd/lib

> > > Bret Sanders a crit :> I cannot seem to get PHP4 to configure with
> apxs
> > > on Solaris 2.7. I'm
> > > > using Apache 1.3.12, and php 4.01p12. It looks like it's passing
> invalid
> > > > arguments to apxs?
> > > > configure: error: Sorry, I cannot run apxs. Either you need to
> install
> > > > Perl or you need to pass the absolute path of apxs by using

> Sent via Deja.com http://www.deja.com/
> Before you buy.

 
 
 

PHP4 & apxs

Post by Bret Sander » Fri, 07 Jul 2000 04:00:00


Okay, it works now. I'm not sure which fixed it, but I compiled apache
with SHARED_CORE and did a 'make install', instead of trying to use apxs
as-is from the src/support location.

From Apache.org:

"When installing Apache the configure's make install procedure installs
the Apache C header files and puts the platform-dependent compiler and
linker flags for building DSO files into the apxs program"

So apparently the make install does more to apxs.

Bret


> I cannot seem to get PHP4 to configure with apxs on Solaris 2.7. I'm
> using Apache 1.3.12, and php 4.01p12. It looks like it's passing invalid
> arguments to apxs?

> > ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs

> ---snip---

> Configuring SAPI modules
> checking for AOLserver support... no
> checking for Apache module support via DSO through APXS...
> Usage: apxs -g [-S <var>=<val>] -n <modname>
>        apxs -q [-S <var>=<val>] <query> ...
>        apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
>                [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
>                [-Wl,<flags>] <files> ...
>        apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
>        apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
> configure: error: Sorry, I cannot run apxs. Either you need to install
> Perl or you need to pass the absolute path of apxs by using
> --with-apxs=/absolute/path/to/apxs

 
 
 

1. cannot compile PHP 4.0.2 on RH box... missing APXS SCRIPT

I am trying to compile PHP 4.0.2 on my i386 box with RH 6.2 installed.
It comes up with an error asking me to give a path for the 'apxs script'

Never heard of it, cannot find reference to it anywhere easily, except
that it usually resides in /usr/sbin/

What creates this script, and why could it be absent from my RH install?

Any answers appreciated.

frankie

2. XInside/NM2070-Dell line bug workaround

3. building php4 with apxs for apche 1.3.14 with gcc

4. Sharing shares across the Internet .. possible ??

5. cannot compile PHP 4.0.2 on RH box... missing APXS SCRIPT

6. command substitution

7. Apache 1.3.19 & PHP4: module doesnt seem to start

8. Shell Scripts & permissions

9. easy to install PHP4 & Ghostscript binaries for OSR5.0.x ??

10. Apache_2.0 & PHP4 install

11. PHP4 & Apache2

12. RAQ4 w/PHP4

13. PHP4 not working on new RedHat 7.2 install