Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't find APXS while trying to compile mod security for Nginx on Ubuntu 13.10 #654

Closed
hyperfocus1338 opened this issue Feb 4, 2014 · 5 comments
Milestone

Comments

@hyperfocus1338
Copy link

Trying to compile ModSecurity when directly downloading it directly from the master branch, but no luck yet.

Steps

sudo apt-get install git build-essential libtool autoconf automake libxml2 libxml2-dev libxml2-utils libaprutil1 libaprutil1-dev -y

git clone https://github.com/SpiderLabs/ModSecurity.git mod_security

cd mod_security

sudo ./autogen.sh

./configure --enable-standalone-module

make

Short error:

  • stderr: configure: error: couldn't find APXS
  • configure: looking for Apache module support via DSO through APXS

Long error: https://gist.github.com/hyperfocus1337/8803328

What am I missing? I prefer not to install Apache libraries to make this work.

@dmitrijn
Copy link

dmitrijn commented Feb 4, 2014

there is no workaround without apache2 dev libraries
you need to install apache2-threaded(prefork)-dev

@hyperfocus1338
Copy link
Author

On Ubuntu 13.10 it's apache2-dev, and on 13.04 it appears to be apache2-threaded-dev. Thanks!

@zimmerle zimmerle added this to the v2.8.0 milestone Mar 28, 2014
@marufalom
Copy link

I use nginx and i found same error too.

@aghontpi
Copy link

aghontpi commented Sep 17, 2019

on ubuntu 14-lts this should work
apt install apache2-dev,

edit: i used "apache" & came around this issue, solved it by above fix.

@zimmerle
Copy link
Contributor

Hi there,

Please use ModSecurity connector instead: https://github.com/SpiderLabs/ModSecurity-nginx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants