Connecting Tech Pros Worldwide Forums | Help | Site Map

No apxs when updating PHP

mechphisto@gmail.com
Guest
 
Posts: n/a
#2: Jun 2 '08

re: No apxs when updating PHP


I have a FC 7 box with PHP 5.2.4 and I'm installing mcrypt. To do
that, I have to recompile PHP with the libmcrypt switches in the ./
configure.
So I downloaded the latest PHP source files, and using phpinfo() got
my current configure command (included below), took off the quotes,
added the new switches, and got an error unrelated to mcrypt:

-error-
checking for Apache 2.0 handler-module support via DSO through
APXS...

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/
to/apxs
3. Apache was not built using --enable-so (the apxs usage page is
displayed)

The output of /usr/sbin/apxs follows:
../configure: line 6669: /usr/sbin/apxs: No such file or directory
configure: error: Aborting
-end error-

I did a find and an updatedb/locate for apxs and this is all I could
find:

/var/www/manual/programs/apxs.html

Web searching for an answer all I can find are fixes to put the proper
location for apxs in the configure, but as you can see, I don't seem
to have the bin.
I also tried a "yum search apxs" and got nothing.

So, how did my PHP have apxs before if when I reconfigure now it can't
find it. And more importantly, how do I fix this?

Thanks!

../configure --build=i386-redhat-linux-gnu --host=i386-redhat-linux-gnu
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-
prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --
datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --
libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../
config.cache --with-libdir=lib --with-config-file-path=/etc --with-
config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-
rpath --without-pear --with-bz2 --with-curl --with-exec-dir=/usr/bin --
with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --
without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/
usr --with-openssl --with-png --with-pspell --with-expat-dir=/usr --
with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-exif --
enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --
enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid
--enable-yp --enable-wddx --with-kerberos --enable-ucd-snmp-hack --
with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --
enable-calendar --enable-dbx --enable-dio --without-mime-magic --
without-sqlite --with-libxml-dir=/usr --with-xml --with-apxs2=/usr/
sbin/apxs --without-mysql --without-gd --without-odbc --disable-dom --
disable-dba --without-unixODBC --disable-pdo --disable-xmlreader --
disable-xmlwriter --disable-json --with-mcrypt=/usr/local/lib/ --
disable-posix-threads --enable-dynamic-loading

Peter H. Coffin
Guest
 
Posts: n/a
#1: Jun 2 '08
On Thu, 24 Apr 2008 14:12:33 -0700 (PDT), mechphisto@gmail.com wrote:
Quote:
I have a FC 7 box with PHP 5.2.4 and I'm installing mcrypt. To do
that, I have to recompile PHP with the libmcrypt switches in the ./
configure.
So I downloaded the latest PHP source files, and using phpinfo() got
my current configure command (included below), took off the quotes,
added the new switches, and got an error unrelated to mcrypt:
So how did you get php installed before?
Quote:
>
-error-
checking for Apache 2.0 handler-module support via DSO through
APXS...
>
Sorry, I cannot run apxs. Possible reasons follow:
>
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/
to/apxs
3. Apache was not built using --enable-so (the apxs usage page is
displayed)
>
The output of /usr/sbin/apxs follows:
./configure: line 6669: /usr/sbin/apxs: No such file or directory
configure: error: Aborting
-end error-
>
I did a find and an updatedb/locate for apxs and this is all I could
find:
>
/var/www/manual/programs/apxs.html
>
Web searching for an answer all I can find are fixes to put the proper
location for apxs in the configure, but as you can see, I don't seem
to have the bin.
I also tried a "yum search apxs" and got nothing.
>
So, how did my PHP have apxs before if when I reconfigure now it can't
find it. And more importantly, how do I fix this?
Maybe it didn't. Maybe it was a static, built-in Apache module.

http://www.php.net/manual/en/install.unix.php Example #2

--
26. No matter how attractive certain members of the rebellion are, there is
probably someone just as attractive who is not desperate to kill me.
Therefore, I will think twice before ordering a prisoner sent to my
bedchamber. --Peter Anspach's list of things to do as an Evil Overlord
Jerry Stuckle
Guest
 
Posts: n/a
#3: Jun 2 '08

re: No apxs when updating PHP


mechphisto@gmail.com wrote:
Quote:
I have a FC 7 box with PHP 5.2.4 and I'm installing mcrypt. To do
that, I have to recompile PHP with the libmcrypt switches in the ./
configure.
So I downloaded the latest PHP source files, and using phpinfo() got
my current configure command (included below), took off the quotes,
added the new switches, and got an error unrelated to mcrypt:
>
-error-
checking for Apache 2.0 handler-module support via DSO through
APXS...
>
Sorry, I cannot run apxs. Possible reasons follow:
>
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/
to/apxs
3. Apache was not built using --enable-so (the apxs usage page is
displayed)
>
The output of /usr/sbin/apxs follows:
./configure: line 6669: /usr/sbin/apxs: No such file or directory
configure: error: Aborting
-end error-
>
I did a find and an updatedb/locate for apxs and this is all I could
find:
>
/var/www/manual/programs/apxs.html
>
Web searching for an answer all I can find are fixes to put the proper
location for apxs in the configure, but as you can see, I don't seem
to have the bin.
I also tried a "yum search apxs" and got nothing.
>
So, how did my PHP have apxs before if when I reconfigure now it can't
find it. And more importantly, how do I fix this?
>
Thanks!
>
./configure --build=i386-redhat-linux-gnu --host=i386-redhat-linux-gnu
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-
prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --
datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --
libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../
config.cache --with-libdir=lib --with-config-file-path=/etc --with-
config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-
rpath --without-pear --with-bz2 --with-curl --with-exec-dir=/usr/bin --
with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --
without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/
usr --with-openssl --with-png --with-pspell --with-expat-dir=/usr --
with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-exif --
enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --
enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid
--enable-yp --enable-wddx --with-kerberos --enable-ucd-snmp-hack --
with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --
enable-calendar --enable-dbx --enable-dio --without-mime-magic --
without-sqlite --with-libxml-dir=/usr --with-xml --with-apxs2=/usr/
sbin/apxs --without-mysql --without-gd --without-odbc --disable-dom --
disable-dba --without-unixODBC --disable-pdo --disable-xmlreader --
disable-xmlwriter --disable-json --with-mcrypt=/usr/local/lib/ --
disable-posix-threads --enable-dynamic-loading
>
You only need apxs to compile PHP, not install a binary.

Check the Apache newsgroups on what package you need to download for
your installation.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Jerry Stuckle
Guest
 
Posts: n/a
#4: Jun 2 '08

re: No apxs when updating PHP


mechphisto@gmail.com wrote:
Quote:
On Apr 24, 8:37 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Quote:
>mechphi...@gmail.com wrote:
Quote:
>>I have a FC 7 box with PHP 5.2.4 and I'm installing mcrypt. To do
>>that, I have to recompile PHP with the libmcrypt switches in the ./
>>configure.
>>So I downloaded the latest PHP source files, and using phpinfo() got
>>my current configure command (included below), took off the quotes,
>>added the new switches, and got an error unrelated to mcrypt:
>>-error-
>>checking for Apache 2.0 handler-module support via DSO through
>>APXS...
>>Sorry, I cannot run apxs. Possible reasons follow:
>>1. Perl is not installed
>>2. apxs was not found. Try to pass the path using --with-apxs2=/path/
>>to/apxs
>>3. Apache was not built using --enable-so (the apxs usage page is
>>displayed)
>>The output of /usr/sbin/apxs follows:
>>./configure: line 6669: /usr/sbin/apxs: No such file or directory
>>configure: error: Aborting
>>-end error-
>>I did a find and an updatedb/locate for apxs and this is all I could
>>find:
>>/var/www/manual/programs/apxs.html
>>Web searching for an answer all I can find are fixes to put the proper
>>location for apxs in the configure, but as you can see, I don't seem
>>to have the bin.
>>I also tried a "yum search apxs" and got nothing.
>>So, how did my PHP have apxs before if when I reconfigure now it can't
>>find it. And more importantly, how do I fix this?
>>Thanks!
>>./configure --build=i386-redhat-linux-gnu --host=i386-redhat-linux-gnu
>>--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-
>>prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --
>>datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --
>>libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
>>--mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../
>>config.cache --with-libdir=lib --with-config-file-path=/etc --with-
>>config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-
>>rpath --without-pear --with-bz2 --with-curl --with-exec-dir=/usr/bin --
>>with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --
>>without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/
>>usr --with-openssl --with-png --with-pspell --with-expat-dir=/usr --
>>with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-exif --
>>enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --
>>enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid
>>--enable-yp --enable-wddx --with-kerberos --enable-ucd-snmp-hack --
>>with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --
>>enable-calendar --enable-dbx --enable-dio --without-mime-magic --
>>without-sqlite --with-libxml-dir=/usr --with-xml --with-apxs2=/usr/
>>sbin/apxs --without-mysql --without-gd --without-odbc --disable-dom --
>>disable-dba --without-unixODBC --disable-pdo --disable-xmlreader --
>>disable-xmlwriter --disable-json --with-mcrypt=/usr/local/lib/ --
>>disable-posix-threads --enable-dynamic-loading
>You only need apxs to compile PHP, not install a binary.
>>
>Check the Apache newsgroups on what package you need to download for
>your installation.
>>
>
I don't understand...are you referring to mcrypt as the binary?
If so, are you saying that PHP does not need to be recompiled to
install mcrypt?
Because everything I've been reading about installing mcrypt discusses
recompiling PHP.
Thanks for the reply.
-L
>
No, I'm saying you're trying to recompile PHP, and you need apxs for
that. However, if you install PHP from a binary, you don't need apxs.

But now you need to recompile PHP, so you need apxs. That's an Apache
module, so you need to check the Apache newsgroups to see how to get it
for your distro.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

mechphisto@gmail.com
Guest
 
Posts: n/a
#5: Jun 2 '08

re: No apxs when updating PHP


On Apr 24, 5:33 pm, "Peter H. Coffin" <hell...@ninehells.comwrote:
Quote:
On Thu, 24 Apr 2008 14:12:33 -0700 (PDT), mechphi...@gmail.com wrote:
Quote:
I have a FC 7 box with PHP 5.2.4 and I'm installing mcrypt. To do
that, I have to recompile PHP with the libmcrypt switches in the ./
configure.
So I downloaded the latest PHP source files, and using phpinfo() got
my current configure command (included below), took off the quotes,
added the new switches, and got an error unrelated to mcrypt:
>
So how did you get php installed before?
>
I didn't. It was a pre-installed setup from a server hosting service.
(GoDaddy to be exact. No, ugh!, not my server. It's a co-worker's I'm
helping with. I wouldn't have a GoDaddy hosted server if they paid
me.)
Quote:
>
>
>
Quote:
-error-
checking for Apache 2.0 handler-module support via DSO through
APXS...
>
Quote:
Sorry, I cannot run apxs. Possible reasons follow:
>
Quote:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/
to/apxs
3. Apache was not built using --enable-so (the apxs usage page is
displayed)
>
Quote:
The output of /usr/sbin/apxs follows:
./configure: line 6669: /usr/sbin/apxs: No such file or directory
configure: error: Aborting
-end error-
>
Quote:
I did a find and an updatedb/locate for apxs and this is all I could
find:
>
Quote:
/var/www/manual/programs/apxs.html
>
Quote:
Web searching for an answer all I can find are fixes to put the proper
location for apxs in the configure, but as you can see, I don't seem
to have the bin.
I also tried a "yum search apxs" and got nothing.
>
Quote:
So, how did my PHP have apxs before if when I reconfigure now it can't
find it. And more importantly, how do I fix this?
>
Maybe it didn't. Maybe it was a static, built-in Apache module.
>
http://www.php.net/manual/en/install.unix.phpExample #2
>
Thanks, but I'm not sure what that example implies. That that was the
way Apache/PHP and apxs was originally installed? Or that's what I
need to do in some way regarding installing apxs or mcrypt (the
original issue.)
Thanks for replying!
-L
Quote:
--
26. No matter how attractive certain members of the rebellion are, there is
probably someone just as attractive who is not desperate to kill me.
Therefore, I will think twice before ordering a prisoner sent to my
bedchamber. --Peter Anspach's list of things to do as an Evil Overlord
mechphisto@gmail.com
Guest
 
Posts: n/a
#6: Jun 2 '08

re: No apxs when updating PHP


On Apr 24, 8:37 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Quote:
mechphi...@gmail.com wrote:
Quote:
I have a FC 7 box with PHP 5.2.4 and I'm installing mcrypt. To do
that, I have to recompile PHP with the libmcrypt switches in the ./
configure.
So I downloaded the latest PHP source files, and using phpinfo() got
my current configure command (included below), took off the quotes,
added the new switches, and got an error unrelated to mcrypt:
>
Quote:
-error-
checking for Apache 2.0 handler-module support via DSO through
APXS...
>
Quote:
Sorry, I cannot run apxs. Possible reasons follow:
>
Quote:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/
to/apxs
3. Apache was not built using --enable-so (the apxs usage page is
displayed)
>
Quote:
The output of /usr/sbin/apxs follows:
./configure: line 6669: /usr/sbin/apxs: No such file or directory
configure: error: Aborting
-end error-
>
Quote:
I did a find and an updatedb/locate for apxs and this is all I could
find:
>
Quote:
/var/www/manual/programs/apxs.html
>
Quote:
Web searching for an answer all I can find are fixes to put the proper
location for apxs in the configure, but as you can see, I don't seem
to have the bin.
I also tried a "yum search apxs" and got nothing.
>
Quote:
So, how did my PHP have apxs before if when I reconfigure now it can't
find it. And more importantly, how do I fix this?
>
Quote:
Thanks!
>
Quote:
./configure --build=i386-redhat-linux-gnu --host=i386-redhat-linux-gnu
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-
prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --
datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --
libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../
config.cache --with-libdir=lib --with-config-file-path=/etc --with-
config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-
rpath --without-pear --with-bz2 --with-curl --with-exec-dir=/usr/bin --
with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --
without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/
usr --with-openssl --with-png --with-pspell --with-expat-dir=/usr --
with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-exif --
enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --
enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid
--enable-yp --enable-wddx --with-kerberos --enable-ucd-snmp-hack --
with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --
enable-calendar --enable-dbx --enable-dio --without-mime-magic --
without-sqlite --with-libxml-dir=/usr --with-xml --with-apxs2=/usr/
sbin/apxs --without-mysql --without-gd --without-odbc --disable-dom --
disable-dba --without-unixODBC --disable-pdo --disable-xmlreader --
disable-xmlwriter --disable-json --with-mcrypt=/usr/local/lib/ --
disable-posix-threads --enable-dynamic-loading
>
You only need apxs to compile PHP, not install a binary.
>
Check the Apache newsgroups on what package you need to download for
your installation.
>
I don't understand...are you referring to mcrypt as the binary?
If so, are you saying that PHP does not need to be recompiled to
install mcrypt?
Because everything I've been reading about installing mcrypt discusses
recompiling PHP.
Thanks for the reply.
-L
Closed Thread


Similar PHP bytes