LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-22-2005, 11:21 AM   #1
kingtas
Member
 
Registered: Sep 2004
Distribution: RH9
Posts: 36

Rep: Reputation: 15
Apache2 Mod_Security apxs command


Hi,

I am a newbie so please be specific when responding.

I am trying to install Mod_Security for Apache2.

I downloaded the mod_security-1.8.6.tar.gz and unzipped it, then ran the tar command to be left with mod_security.c.

The directions say run this command next:

/usr/local/apache/bin/apxs -cia mod_security.c

I get an error stating that the apxs command not found.

Do I need to install something for Apache first, before running an apxs command. I found something on the Apache site but I really didn't understand what I needed to do because these things are written for people with more experience.

Thanks,

Tom
 
Old 01-22-2005, 02:21 PM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
It's telling you that /usr/local/apache/bin/apxs does not exist. Where apxs is depends on where you installed Apache. If you compiled it from source, it defaults to /usr/local/apache2/bin/apxs. Otherwise locate the apxs binary and run the command. Try "locale apxs".
 
Old 01-22-2005, 04:08 PM   #3
kingtas
Member
 
Registered: Sep 2004
Distribution: RH9
Posts: 36

Original Poster
Rep: Reputation: 15
Ok. I didn't have the apxs rpm installed. I installed it and still can't use it. Here is where I am at this point.

# whereis apxs
apxs: /usr/sbin/apxs /usr/share/man/man8/apxs.8.gz

mod_security-1.8.6.c is in this directory
/usr/local/apache/mod_security-1.8.6/apache2

Please tell me how to install this module. I need to know what directory I have to be in when I input the command because I'm still not clear on where I have to be to use certain commands (I'm so used to Windows letting you do what you want from wherever you want).

I tried to run it from where the file .c file lives using the ./ prefix, but that didn't work.

I really appreciate the time and effort of this community.

Thanks,

Tom
 
Old 01-24-2005, 01:29 AM   #4
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Ok, it should be as simple as running this as root:
Code:
cd /usr/local/apache/mod_security-1.8.6/apache2
apxs -cia mod_security.c
This is assuming you have gcc installed. I didn't realize apxs was provided as a separate RPM. I always install Apache from source, which includes apxs if using DSO.
 
Old 01-24-2005, 07:05 AM   #5
kingtas
Member
 
Registered: Sep 2004
Distribution: RH9
Posts: 36

Original Poster
Rep: Reputation: 15
I was able to get it installed and configured. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_security kingtas Linux - Security 4 01-20-2008 04:53 PM
apxs - bash: apxs: command not found -- please help me b:z Linux - General 1 05-18-2005 12:14 AM
Apache2: apachectl command not found hektor Linux - Software 3 01-14-2005 12:23 PM
mod_security ridertech Linux - Security 1 09-01-2004 05:16 PM
Starting Apache2 using Service Command liaaam Linux - Software 2 06-14-2004 05:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration