PHP Configuration Error

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
leyh
Forum Newbie
Posts: 1
Joined: Tue Jul 04, 2006 4:02 am

PHP Configuration Error

Post 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
:-(
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

You need to install the apache devel package.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Cool, someone else answered. So now, can you tell me what apxs is so I don't have to google it :oops: .
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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...
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Thanks dude, I was wondering what that was all about. Do you use it?
Post Reply