Apache with no apxs

2.1k views Asked by At

I am running Apache on a Synology 1512+. I would like to do some development using python and have chose to use mod_wsgi to serve. I initially installed ipkg and used that to instal mod_wsgi. Unfortunately, it seems to have installed python 2.5 (and possible another apache) instead of using the currently installed Python 2.7 and the running Apache. I decided to just try to compile my own mod_wsgi, but it appears that I am missing apxs?

The following is the error that I receive. I am at a loss for what to do next. Using ipkg or compiling myself are my own two known options. Am I able to just download a compiled version or something?

./configure --with-python=/usr/local/bin/python2.7

checking for apxs2... no
checking for apxs... no
checking Apache version... ./configure: ./configure.lineno: line 1704: apxs: not found
./configure: ./configure.lineno: line 1704: apxs: not found
./configure: ./configure.lineno: line 1705: apxs: not found
./configure: ./configure.lineno: line 1723: /: Permission denied    
./configure: ./configure.lineno: line 1877: apxs: not found
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in
1

There are 1 answers

4
Graham Dumpleton On

Use ipkg to install the development package for Apache corresponding to the core Apache package you installed. The development package contains apxs, but more importantly contains the header files for Apache which mod_wsgi will need when it is being compiled. One can work around the lack of apxs, but if you do not have the correct Apache headers files, you cannot do anything.