mod security install problem

alpus

Verified User
Joined
Jun 3, 2007
Messages
7
manuel install problem

[root@ns5 modsecurity-apache_2.5.5]# /usr/sbin/apxs -cia mod_security.c
/var/www/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_RE ENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/include -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -c -o mod_security.lo mod_secu rity.c && touch mod_security.slo
gcc: mod_security.c: No such file or directory
gcc: no input files
apxs:Error: Command failed with rc=65536
.

update.script modsecurity install problem
[root@ns5 updatescript]# ./update.script MODsecurityRulesH
mkdir: cannot create directory `modsecurity': File exists
--22:41:42-- http://www.supernamechange.com/tools/modsecurity/mini.conf.02
Resolving www.supernamechange.com... 67.205.76.198
Connecting to www.supernamechange.com|67.205.76.198|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
22:41:43 ERROR 404: Not Found.

mv: cannot stat `mini.conf.02': No such file or directory
--22:41:43-- http://www.supernamechange.com/tools/modsecurity/apache2.conf
Resolving www.supernamechange.com... 67.205.76.198
Connecting to www.supernamechange.com|67.205.76.198|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
22:41:44 ERROR 404: Not Found.

modsecurity rules update done
 
manuel install problem

[root@ns5 modsecurity-apache_2.5.5]# /usr/sbin/apxs -cia mod_security.c
/var/www/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX=2 -D_RE ENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/include -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -c -o mod_security.lo mod_secu rity.c && touch mod_security.slo
gcc: mod_security.c: No such file or directory
gcc: no input files
apxs:Error: Command failed with rc=65536
.

update.script modsecurity install problem
[root@ns5 updatescript]# ./update.script MODsecurityRulesH
mkdir: cannot create directory `modsecurity': File exists
--22:41:42-- http://www.supernamechange.com/tools/modsecurity/mini.conf.02
Resolving www.supernamechange.com... 67.205.76.198
Connecting to www.supernamechange.com|67.205.76.198|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
22:41:43 ERROR 404: Not Found.

mv: cannot stat `mini.conf.02': No such file or directory
--22:41:43-- http://www.supernamechange.com/tools/modsecurity/apache2.conf
Resolving www.supernamechange.com... 67.205.76.198
Connecting to www.supernamechange.com|67.205.76.198|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
22:41:44 ERROR 404: Not Found.

modsecurity rules update done
try this:
Code:
cd /usr/local/updatescript/
rm -rf modsecurity
./update.script MODsecurity25Apache2
That'll install Modsecurity 2.5.4. After it's done, I'd edit /etc/modsecurity2/config.conf and the rulesets to your liking (main thing I change is the server signature back to Apache).
 
Back
Top