PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > No apxs when updating PHP
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
No apxs when updating PHP

Réponse
 
LinkBack Outils de la discussion
Vieux 24/04/2008, 22h12   #1
mechphisto@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Vieux 24/04/2008, 23h33   #2
Peter H. Coffin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: No apxs when updating PHP

On Thu, 24 Apr 2008 14:12:33 -0700 (PDT), mechphisto@gmail.com wrote:
> 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?

>
> -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
  Réponse avec citation
Vieux 25/04/2008, 02h37   #3
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: No apxs when updating PHP

mechphisto@gmail.com wrote:
> 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
==================

  Réponse avec citation
Vieux 25/04/2008, 14h59   #4
mechphisto@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: No apxs when updating PHP

On Apr 24, 8:37 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> mechphi...@gmail.com wrote:
> > 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
  Réponse avec citation
Vieux 25/04/2008, 15h02   #5
mechphisto@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: No apxs when updating PHP

On Apr 24, 5:33 pm, "Peter H. Coffin" <hell...@ninehells.com> wrote:
> On Thu, 24 Apr 2008 14:12:33 -0700 (PDT), mechphi...@gmail.com wrote:
> > 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
ing with. I wouldn't have a GoDaddy hosted server if they paid
me.)

>
>
>
> > -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.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

> --
> 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


  Réponse avec citation
Vieux 25/04/2008, 17h44   #6
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: No apxs when updating PHP

mechphisto@gmail.com wrote:
> On Apr 24, 8:37 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> mechphi...@gmail.com wrote:
>>> 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
==================

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h05.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,20672 seconds with 14 queries