Page 1 of 1

PHP Configuration Error

Posted: Tue Jul 04, 2006 4:12 am
by leyh
Hi,

perhaps a beginner's question: why do I fail using the './configure' option '--with-apxs2=/usr/bin/apxs2'? I just cannot find any tool like 'apxs'
which is definitly not on my system (SuSE OpenLinux 10.0). How can I achieve success with this problem?

The error output was as follows:

checking for Apache 2.0 filter-module support via DSO through APXS... no
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/apxs2 follows:
./configure: line 6323: /usr/sbin/apxs2: No such file or directory
configure: error: Aborting

greetings
Chris
:-(

Posted: Wed Jul 05, 2006 6:16 pm
by RobertGonzalez
OK, so you want to use apxs? What are the requirements? It sounds like it needs Perl, like it needs to be available to apache and like apache needs to be configure to run using --enable-so. Does your server meet these requirements?

Posted: Wed Jul 05, 2006 6:16 pm
by Benjamin
You need to install the apache devel package.

Posted: Wed Jul 05, 2006 6:19 pm
by RobertGonzalez
Cool, someone else answered. So now, can you tell me what apxs is so I don't have to google it :oops: .

Posted: Wed Jul 05, 2006 6:39 pm
by Benjamin
http://httpd.apache.org/docs/1.3/programs/apxs.html
apxs is a tool for building and installing extension modules
for the Apache HyperText Transfer Protocol (HTTP) server.
This is achieved by building a Dynamic Shared Object (DSO)
from one or more source or object files which then can be
loaded into the Apache server under runtime via the LoadMo-
dule directive from mod_so.

So to use this extension mechanism, your platform has to
support the DSO feature and your Apache httpd binary has to
be built with the mod_so module. The apxs tool automati-
cally complains if this is not the case. You can check this
yourself by manually running the command...

Posted: Wed Jul 05, 2006 10:25 pm
by RobertGonzalez
Thanks dude, I was wondering what that was all about. Do you use it?