How To Install Mod_security, Suhosin, Mod_Evasive On Server Plesk (apache2, Php5)
Jul 26, 2007how to install mod_security, suhosin, Mod_Evasive on server plesk (apache2, php5)?
win I loacate apxs I have empty results
how to install mod_security, suhosin, Mod_Evasive on server plesk (apache2, php5)?
win I loacate apxs I have empty results
problem with install suhosin and ...
how i can install Mod_security
My server ban me sometimes, while I am surfing on one of my websites(mostly Drupal, Joomla, Wordpress). Sometimes it happens with first visit sometimes later. I couldnt find the reason. Sometimes I cannot either create a ssh connection after ban. But ping answered after ban.
Which path/logs should I analize to find it? I tried with grep but couldnt find:
grep -iR 'my.old.ip' /var/log ... /etc/apf ... /usr/local/apache/...
I think mod_security and suhosin cannot block ssh, then iptables, lokkit or apf must be preventer here.
Where are logs of Iptables and APF? Or how can I find the reason?
I would like upgrading to apache2.X and PHP5.x I have some question about that, can I find details how can I make upgrade without any problem, in cpanel (aptche upgrade ) what modules can I check it befor upgrading I don't know what need to check ?? is my sites working well without problem after upgrading?
View 8 Replies View RelatedAnyone updated to Apache2, PHP5, and MySQL5? I'm running CentOS4.5 and cPanel but still using old version of these stuffs.
View 2 Replies View RelatedFor the last several days on one of our dedicated servers, a AMD 3000+ 2GB RAM 2x80GB HDD 5TB traffic installed with CentOS 5.3 64-bit w/a GNU Linux kernel-2.6.18-128.1.10.el5, we use as a 'backup' to our master, we've been having resolver issues. If we attempt to ping, dig or nslookup ANY hostname, we get "unknown host domainexample.com". We can, however, ping IP addresses, including the external one for the server. (Pinging the server from another, not connected to the network returns 0% packet loss.)
Our package managers can't resolve hostnames, either. For instance, when we try to run yum, we get:
"Could not retrieve reponamehere [url]
[Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Error: Cannot find a valid baseurl for repo: reponamehere"
We've already tried disabling several repos and it should be noted that when we use "wget" or "git" or any other package installer, we have the same resolving issues.
Our "/etc/resolv.conf" contains nameservers for the major upstream DC to our provider, which gave us permission to use them. We've tried two sets from them as well as those from our provider and from a DNS service provider. None have worked. (BTW, We have two servers with this provider and the other one is fine; the provider, though this is an unmanaged sever, is attempting to be very helpful and responsive. No problems there.)
We've tried rebooting the server and flushing IPtables as well as stopping it altogether. (Thankfully, we've set our DNS, SQL and httpd servers to run on boot) Nothing seems to resolve the issue (no pun intended).
However, we think this problem may have to do with having installed Suhosin on the server this past weekend since it seems to have started shortly after that but we're not sure. We are getting the following errors in from our httpd logs, though:
[Fri Jun 19 12:52:25 2009] [notice] Graceful restart requested, doing restart
[Fri Jun 19 12:52:25 2009] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Fri Jun 19 12:52:26 2009] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 19 12:52:26 2009] [notice] Digest: done
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/suhosin.so' - /usr/lib64/php/modules/suhosin.so: undefined symbol: php_rfc1867_callback in Unknown on line 0
[Fri Jun 19 12:52:26 2009] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Fri Jun 19 12:52:27 2009] [notice] Apache configured -- resuming normal operations
When we ran 'tcpdump', all it returned was the IP address for the server connected on several ports via SSH. Running 'netstat -an' shows the server's IP address, again connected on different ports, and the localhost address connected on a few. No other IP addresses--and we have about 10--are showing as connected.
Anyway, this is all we've been able to figure out. Anyone had this problem and solved it successfully?
I have an apache2/php5/mysql5 setup working fine.
I need to install php4 alongside php5. In the tutorials section i saw methods for people who already have php4 installed but not php5. I need to do this the other way around,
For a LAMP server user, is there a general consensus that everyone should pretty much install and run ModSecurity? Is there ever a good reason not too?
View 1 Replies View Relatedi want to install mod on my centos Cpanel server. so i try:
cd /usr/local/src
wget mod_evasive_1.10.1.tar.gz
tar -zxf mod_evasive_1.10.1.tar.gz
cd mod_evasive
/usr/sbin/apxs -cia mod_evasive20.c
but when i run /usr/sbin/apxs -cia mod_evasive20.c there is some error for me :
[root@ mod_evasive]#/usr/sbin/apxs -cia mod_evasive20.c
-bash: /usr/sbin/apxs: No such file or directory
and is it good to install or not?[url]
View 5 Replies View Relatedi have try:
wget [url]
tar -zxvf suhosin-0.9.27.tgz
./configure
make
make install
then:
ls –lah /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
mkdir /usr/lib/php/extensions/
cp /usr/local/lib/php/extensions/no-debug-non-zts-20060613/suhosin.so /usr/lib/php/extensions/
no-debug-non-zts-20060613
vi php.ini
But i havent:
:/usr/lib/php:/usr/local/lib/php:/usr/lib/php/extensions:/usr/lib/php/extensions/no-debug-non-zts-20060613
in my php.ini and i have this:
;include_path = ".:/php/includes"
According to this Guide I installed Suhosin Extension
[url]
After installation each time I add
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
include_path = ".:/usr/lib/php:/usr/local/lib/php:/usr/lib/php/extensions:/usr/lib/php/extensions/no-debug-non-zts-20020429:" ;
extension_dir = /usr/lib/php/extensions/no-debug-non-zts-20020429/ ; directory in which the loadable extensions (modules) reside
Http fail and php -v don't show that Suhosin installed
How can i check if Suhosin installed and working fine ?
I want run mod_deflate in my serve my server is apache 2.0.63
How can I do this?
I'm using Apache2, MySQL5, and PHP5 with CentOS4.6, cPanel 11.
When recompile Apache2 and PHP5 from WHM, there are no options for mbstring, so now my PHP5 doesn't has mbstring.
I tried to install mbstring as below, but I got this message:
Quote:
root@mybox [~]# yum install php-mbstring
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
No Match for argument: php-mbstring
Nothing to do
I also tried:
Quote:
up2date -i php-mbstring
Are there other ways to install mbstring for PHP5?
Is this possible? It seems that yum wants to also upgrade to mysql 5 if I want to upgrade php to 5. I'm having a hard time finding any info about it online.
View 4 Replies View Related1) Download PHP 5.x and do the usual
cd /usr/local/src
[url]
2) Compile php as in a new directory such as /usr/local/php5
Use the same ./configure line required but with the following changes:
--prefix=/usr/local/php5 --exec-prefix=/usr/local/php5 --program-suffix=5 --enable-force-cgi-redirect --enable-discard-path
3) Compile and install
make
make install
IMP Steps :
cp php.ini-dist /usr/local/php5/lib/php.ini
cp /usr/local/php5/bin/php5 /usr/local/cpanel/cgi-sys/php5
chown root:wheel /usr/local/cpanel/cgi-sys/php5
4) Edit httpd.conf and add lines below::
AddHandler application/x-http-php5 .php5
Action application/x-http-php5 /cgi-sys/php5
Just use .php5 and it will invoke php5.
# CGI configuration for PHP4
Action application/x-httpd-php4 /cgi-sys/php4
AddType application/x-httpd-php4 .php4 .php .php3 .php2 .phtml
# LibPHP5 configuration
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php5
with installing PHP5 on CentOS? I tried this:
Quote:
$ yum --enablerepo=centosplus --exclude=php-domxml install php*
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package php-pear-Cache.noarch 0:1.5.5-0.1.RC4.el4.centos set to be updated
---> Package php-odbc.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-Net-Curl.noarch 0:1.2.3-2.el4.centos set to be updated
---> Package php-mhash.x86_64 0:5.1.6-1.el4.centos set to be updated
---> Package php-dbase.x86_64 0:5.1.6-1.el4.centos set to be updated
---> Package php-mysql.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-gd.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-XML-Beautifier.noarch 0:1.1-1.el4.centos set to be updated
---> Package php-mcrypt.x86_64 0:5.1.6-1.el4.centos set to be updated
---> Package php-pear-HTTP.noarch 0:1.4.0-7.el4.centos set to be updated
---> Package php-xml.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-XML-Serializer.noarch 0:0.18.0-2.el4.centos set to be updated
---> Package php-pecl-apc.x86_64 0:3.0.12-1.el4.centos set to be updated
---> Package php-pear-Validate-Finance-CreditCard.noarch 0:0.5.2-1.el4.centos set to be updated
---> Package php-pear-Date.noarch 0:1.4.6-1.el4.centos set to be updated
---> Package php-pear-XML-Parser.noarch 0:1.2.7-4.el4.centos set to be updated
---> Package php-soap.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-Net-Socket.noarch 0:1.0.6-5.el4.centos set to be updated
---> Package php-pear-XML-Util.noarch 0:1.1.1-1.el4.centos set to be updated
---> Package php-pgsql.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-MDB2.noarch 0:2.2.2-2.el4.centos set to be updated
---> Package php-eaccelerator.x86_64 0:5.1.6_0.9.5-1.el4.centos set to be updated
---> Package php-pear-PHP-Compat.noarch 0:1.5.0-1.el4.centos.1 set to be updated
---> Package php-pear-HTTP-Request.noarch 0:1.4.0-1.el4.centos set to be updated
---> Package php-pecl-mailparse.x86_64 0:2.1.1-4.el4.centos set to be updated
---> Package php-pear-XML-RSS.noarch 0:0.9.10-2.el4.centos set to be updated
---> Package php-dba.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-common.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-ncurses.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-HTML-Table.noarch 0:1.7.5-1.el4.centos set to be updated
---> Package php.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-DB.noarch 0:1.7.6-6.el4.centos set to be updated
---> Package php-pear-Mail-Mime.noarch 0:1.3.1-8.el4.centos set to be updated
---> Package php-pear-Auth-SASL.noarch 0:1.0.2-4.el4.centos set to be updated
---> Package php-pear-Mail.noarch 0:1.1.14-1.el4.centos set to be updated
---> Package php-pear-PHPUnit.noarch 0:1.3.2-1.el4.centos.1 set to be updated
---> Package php-pear-Net-URL.noarch 0:1.0.14-1.el4.centos set to be updated
---> Package php-pear-Console-Table.noarch 0:1.0.5-2.el4.centos.1 set to be updated
---> Package php-pear-Net-DIME.noarch 0:0.3-1.el4.centos set to be updated
---> Package php-pear-Pager.noarch 0:2.4.2-1.el4.centos set to be updated
---> Package php-pdo.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-Log.noarch 0:1.9.9-1.el4.centos set to be updated
---> Package php-bcmath.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-Benchmark.noarch 0:1.2.6-1.el4.centos set to be updated
---> Package php-snmp.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-Net-SMTP.noarch 0:1.2.8-5.el4.centos set to be updated
---> Package php-pear.noarch 1:1.4.11-1.el4s1.1 set to be updated
---> Package php-xmlrpc.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-DB-QueryTool.noarch 0:1.0.3-1.el4.centos set to be updated
---> Package php-pear-PHPUnit2.noarch 0:2.3.6-1.el4.centos set to be updated
---> Package php-devel.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-mbstring.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-Payment-Process.noarch 0:0.6.5-1.el4.centos set to be updated
---> Package php-pear-Net-FTP.noarch 0:1.3.2-1.el4.centos set to be updated
---> Package php-pear.x86_64 0:4.3.9-3.22.5 set to be updated
---> Package php-cli.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-readline.x86_64 0:5.1.6-1.el4.centos set to be updated
---> Package php-pear-Console-Getargs.noarch 0:1.3.3-1.el4.centos set to be updated
---> Package php-imap.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pecl-zip.x86_64 0:1.8.0-1.el4.centos set to be updated
---> Package php-pear-Validate.noarch 0:0.6.4-1.el4.centos set to be updated
---> Package php-pear-Date-Holidays.noarch 0:0.16.1-1.el4.centos set to be updated
---> Package php-pear-HTML-Common.noarch 0:1.2.3-2.el4.centos set to be updated
---> Package php-pear-PHP-CompatInfo.noarch 0:1.4.0-1.el4.centos set to be updated
---> Package php-ldap.x86_64 0:5.1.6-3.el4s1.7 set to be updated
---> Package php-pear-Image-GraphViz.noarch 0:1.2.1-1.el4.centos set to be updated
---> Package php-tidy.x86_64 0:5.1.6-1.el4.centos set to be updated
--> Running transaction check
--> Processing Conflict: php-pecl-apc conflicts php-eaccelerator
--> Processing Dependency: autoconf for package: php-devel
--> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt
--> Processing Dependency: php-pecl(Xdebug) for package: php-pear-PHPUnit2
--> Processing Dependency: graphviz for package: php-pear-Image-GraphViz
--> Processing Dependency: libmhash.so.2()(64bit) for package: php-mhash
--> Processing Dependency: net-snmp for package: php-snmp
--> Processing Dependency: libpq.so.4()(64bit) for package: php-pgsql
--> Processing Dependency: libltdl.so.3()(64bit) for package: php-mcrypt
--> Processing Dependency: libmysqlclient.so.15()(64bit) for package: php-mysql
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-pear
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) for package: php-mysql
--> Processing Dependency: automake for package: php-devel
--> Processing Dependency: libnetsnmp.so.5()(64bit) for package: php-snmp
--> Processing Dependency: libtidy-0.99.so.0()(64bit) for package: php-tidy
--> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package libtidy.x86_64 0:0.99.0-9.20051025.el4.centos.3 set to be updated
---> Package postgresql-libs.x86_64 0:8.1.9-1.el4s1.1 set to be updated
---> Package net-snmp-libs.x86_64 0:5.1.2-11.EL4.10 set to be updated
---> Package libxslt.x86_64 0:1.1.11-1 set to be updated
---> Package libtool-libs.x86_64 0:1.5.6-4.EL4.1.c4.4 set to be updated
---> Package autoconf.noarch 0:2.59-5 set to be updated
---> Package automake.noarch 0:1.9.2-3 set to be updated
---> Package mysql.x86_64 0:5.0.27-1.el4.centos set to be updated
---> Package net-snmp.x86_64 0:5.1.2-11.EL4.10 set to be updated
---> Package libmcrypt.x86_64 0:2.5.7-4.el4.centos set to be updated
---> Package mhash.x86_64 0:0.9.2-4 set to be updated
--> Running transaction check
--> Processing Conflict: php-pecl-apc conflicts php-eaccelerator
--> Processing Dependency: libgpg-error.so.0()(64bit) for package: libxslt
--> Processing Dependency: php-pecl(Xdebug) for package: php-pear-PHPUnit2
--> Processing Dependency: libgcrypt.so.11()(64bit) for package: libxslt
--> Processing Dependency: graphviz for package: php-pear-Image-GraphViz
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: mysql-server
--> Processing Dependency: mysql = 4.1.20-2.RHEL4.1 for package: mysql-server
--> Processing Dependency: libpq.so.3()(64bit) for package: dovecot
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: mysql-server
--> Processing Dependency: libmysqlclient_r.so.14()(64bit) for package: mysql-server
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-pear
--> Processing Dependency: mysql = 4.1.20-2.RHEL4.1 for package: mysql-devel
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: perl-DBD-MySQL
--> Processing Dependency: libmysqlclient_r.so.14(libmysqlclient_14)(64bit) for package: mysql-server
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14)(64bit) for package: dovecot
--> Processing Dependency: libmysqlclient.so.14()(64bit) for package: dovecot
--> Processing Dependency: m4 for package: autoconf
--> Processing Dependency: libsensors.so.3()(64bit) for package: net-snmp
--> Processing Dependency: libgcrypt.so.11(GCRYPT_1.2)(64bit) for package: libxslt
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package mysqlclient14.x86_64 0:4.1.22-1.el4s1.1 set to be updated
---> Package postgresqlclient7.x86_64 0:7.4.14-1.el4s1.1.el4.centos set to be updated
---> Package mysql-server.x86_64 0:5.0.27-1.el4.centos set to be updated
---> Package m4.x86_64 0:1.4.1-16 set to be updated
---> Package lm_sensors.x86_64 0:2.8.7-2.40.3 set to be updated
---> Package libgcrypt.x86_64 0:1.2.0-3 set to be updated
---> Package mysql-devel.x86_64 0:5.0.27-1.el4.centos set to be updated
---> Package perl-DBD-MySQL.x86_64 0:3.0008-1.el4.centos set to be updated
---> Package libgpg-error.x86_64 0:1.0-1 set to be updated
--> Running transaction check
--> Processing Conflict: php-pecl-apc conflicts php-eaccelerator
--> Processing Dependency: php-pecl(Xdebug) for package: php-pear-PHPUnit2
--> Processing Dependency: graphviz for package: php-pear-Image-GraphViz
--> Processing Dependency: perl(:MODULE_COMPAT_5.8.8) for package: perl-DBD-MySQL
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-pear
--> Processing Dependency: kernel-utils for package: lm_sensors
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package kernel-utils.x86_64 1:2.4-13.1.99 set to be updated
---> Package perl.x86_64 4:5.8.8-4.el4s1 set to be updated
--> Running transaction check
--> Processing Conflict: php-pecl-apc conflicts php-eaccelerator
--> Processing Dependency: graphviz for package: php-pear-Image-GraphViz
--> Processing Dependency: php = 4.3.9-3.22.5 for package: php-pear
--> Processing Dependency: php-pecl(Xdebug) for package: php-pear-PHPUnit2
--> Finished Dependency Resolution
Error: php-pecl-apc conflicts with php-eaccelerator
Error: Missing Dependency: php-pecl(Xdebug) is needed by package php-pear-PHPUnit2
Error: Missing Dependency: graphviz is needed by package php-pear-Image-GraphViz
Error: Missing Dependency: php = 4.3.9-3.22.5 is needed by package php-pear
Anyone know how to resolve these dependencies?
i'm using DirectAdmin ,
when i was using Apache , i installed & Compiled Mod_Sec 2 , now i installed LiteSpeed & i want compile mod_sec with LiteSpeed ,
i have install modsecurity by WHM > Manage Plugins > check Name: modsecurity and save .and so without error its complite .
and restart my apache.
but i cant finde it in phpinfo and my Plugins in whm
Trying to install mod_security 2.5 on Red Hat box with Apache 2.0.52 per ModSecurity.org installation instructions.
Getting no errors when running:
./configure --with-apxs=/usr/sbin/apxs
or
make
But, when I run 'make test' I get the following:
# make test
/bin/sh /usr/lib/apr/build/libtool --silent --mode=compile gcc -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -pthread -O2 -g -Wall -Werror -I/usr/include/pcre -I/usr/include/libxml2 -I/usr/include/apr-0 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-0 -o msc_test.lo -c msc_test.c
In file included from re.h:36,
from modsecurity.h:46,
from msc_test.c:13:
apache2.h:14:23: http_core.h: No such file or directory
apache2.h:15:26: http_request.h: No such file or directory
apache2.h:16:19: httpd.h: No such file or directory
apache2.h:17:24: ap_release.h: No such file or directory
In file included from re.h:36,
from modsecurity.h:46,
from msc_test.c:13:
apache2.h:60: error: syntax error before '*' token
apache2.h:63: error: syntax error before '*' token
apache2.h:72: error: syntax error before "ap_filter_t"
apache2.h:80: error: syntax error before '*' token
apache2.h:82: error: syntax error before '*' token
apache2.h:89: error: syntax error before '*' token
In file included from msc_test.c:13:
modsecurity.h:48:23: ap_config.h: No such file or directory
modsecurity.h:53:25: http_config.h: No such file or directory
modsecurity.h:54:22: http_log.h: No such file or directory
modsecurity.h:55:27: http_protocol.h: No such file or directory
modsecurity.h:123:19: unixd.h: No such file or directory
In file included from msc_test.c:13:
modsecurity.h:145: error: syntax error before "AP_MODULE_DECLARE_DATA"
modsecurity.h:145: warning: type defaults to `int' in declaration of `security2_module'
modsecurity.h:145: warning: data definition has no type or storage class
modsecurity.h:147: error: syntax error before "module_directives"
modsecurity.h:147: warning: type defaults to `int' in declaration of `module_directives'
modsecurity.h:147: warning: data definition has no type or storage class
modsecurity.h:209: error: syntax error before "request_rec"
modsecurity.h:209: warning: no semicolon at end of struct or union
modsecurity.h:210: warning: type defaults to `int' in declaration of `r'
modsecurity.h:210: warning: data definition has no type or storage class
modsecurity.h:223: error: syntax error before '*' token
modsecurity.h:223: warning: type defaults to `int' in declaration of `if_brigade'
modsecurity.h:223: warning: data definition has no type or storage class
modsecurity.h:229: error: syntax error before '*' token
modsecurity.h:229: warning: type defaults to `int' in declaration of `of_brigade'
modsecurity.h:229: warning: data definition has no type or storage class
modsecurity.h:376: error: syntax error before '}' token
modsecurity.h:496: error: syntax error before "apr_global_mutex_t"
modsecurity.h:496: warning: no semicolon at end of struct or union
modsecurity.h:499: error: syntax error before '}' token
In file included from msc_test.c:15:
pdf_protect.h:18: error: syntax error before '*' token
msc_test.c:39: error: syntax error before "ap_filter_t"
msc_test.c: In function `msr_log':
msc_test.c:56: error: dereferencing pointer to incomplete type
msc_test.c:59: error: dereferencing pointer to incomplete type
msc_test.c:60: error: dereferencing pointer to incomplete type
msc_test.c:60: error: dereferencing pointer to incomplete type
msc_test.c:61: error: dereferencing pointer to incomplete type
msc_test.c:62: error: dereferencing pointer to incomplete type
msc_test.c:67: error: dereferencing pointer to incomplete type
msc_test.c:72: error: dereferencing pointer to incomplete type
msc_test.c: At top level:
msc_test.c:77: error: syntax error before '*' token
msc_test.c:81: error: syntax error before '*' token
msc_test.c:85: error: syntax error before '*' token
msc_test.c:89: error: syntax error before '*' token
msc_test.c: In function `test_tfn':
msc_test.c:156: error: dereferencing pointer to incomplete type
msc_test.c: In function `test_op':
msc_test.c:190: error: dereferencing pointer to incomplete type
msc_test.c:201: error: dereferencing pointer to incomplete type
msc_test.c:208: error: dereferencing pointer to incomplete type
msc_test.c:224: error: dereferencing pointer to incomplete type
msc_test.c: In function `init_msr':
msc_test.c:254: error: `request_rec' undeclared (first use in this function)
msc_test.c:254: error: (Each undeclared identifier is reported only once
msc_test.c:254: error: for each function it appears in.)
msc_test.c:255: error: syntax error before ')' token
msc_test.c:300: error: invalid application of `sizeof' to incomplete type `modsecurity.h'
msc_test.c:300: error: invalid application of `sizeof' to incomplete type `modsecurity.h'
msc_test.c:301: error: dereferencing pointer to incomplete type
msc_test.c:302: error: dereferencing pointer to incomplete type
msc_test.c:303: error: dereferencing pointer to incomplete type
msc_test.c:304: error: dereferencing pointer to incomplete type
msc_test.c:305: error: dereferencing pointer to incomplete type
msc_test.c:306: error: dereferencing pointer to incomplete type
msc_test.c:307: error: dereferencing pointer to incomplete type
msc_test.c:308: error: dereferencing pointer to incomplete type
msc_test.c:309: error: dereferencing pointer to incomplete type
msc_test.c:310: error: dereferencing pointer to incomplete type
msc_test.c:311: error: dereferencing pointer to incomplete type
msc_test.c:312: error: dereferencing pointer to incomplete type
msc_test.c:313: error: dereferencing pointer to incomplete type
msc_test.c:314: error: dereferencing pointer to incomplete type
msc_test.c:315: error: dereferencing pointer to incomplete type
msc_test.c:316: error: dereferencing pointer to incomplete type
msc_test.c:317: error: dereferencing pointer to incomplete type
msc_test.c:318: error: dereferencing pointer to incomplete type
msc_test.c:319: error: dereferencing pointer to incomplete type
msc_test.c:320: error: dereferencing pointer to incomplete type
msc_test.c:321: error: dereferencing pointer to incomplete type
msc_test.c:322: error: dereferencing pointer to incomplete type
msc_test.c:323: error: dereferencing pointer to incomplete type
msc_test.c:324: error: dereferencing pointer to incomplete type
msc_test.c:325: error: dereferencing pointer to incomplete type
msc_test.c: At top level:
modsecurity.h:147: warning: array 'module_directives' assumed to have one element
make: *** [msc_test.lo] Error 1
All of the 'No such file or directory' files are located in /usr/include/httpd/
why I am getting this error?
I have installed mod_security2 with apache2.x with success
but when I try to restart apache I have this wrong Msg:
PHP Code:
httpd restarthttpd: Syntax error on line 34 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_security2.so into server: /usr/local/apache/modules/mod_security2.so: undefined symbol: msc_alert
PHP Code:
[root@secure modsecurity-apache_2.1.3]# ls -la /usr/local/apache/modules/mod_security2.so-rwxr-xr-x 1 root root 52541 Nov 6 16:26 /usr/local/apache/modules/mod_security2.so[root@secure modsecurity-apache_2.1.3]#
Cant seem to find anywhere that has a tutorial or instructions on how to install mod security for ubuntu gutsy, has anyone installed it lately and like to share their experience or tell how? Ive google to try find answer about 4 times now in last 2 weeks and still havent found anything.
View 1 Replies View RelatedWhat is the difference between Suhosin Extension and Suhosin Patch?
View 6 Replies View RelatedI would like to install the Mod_evasive for Apache 2.0 on RHEL 4 Server(Cpanel Installed). I downloaded the Mod_evasive source and extracted and used the following command.
# cd mod_evasive
# /usr/sbin/apxs -cia mod_evasive20.c
I am getting folowing message.
-bash: /usr/sbin/apxs: No such file or directory
# whereis apxs
apxs:
The server gets around 25k unique visitors per day, but one website in particular allows hotlinking and uses a lot of bandwidth. Last time I checked...according to whm apache status page, I was getting 180 requests per second. Not sure what time it was though. So it might be higher at a different time of the day.
Recently got mod_evasive installed, but I didn't want it to block out legitimate users. Currently it's set to this...
<IfModule mod_evasive20.c>
DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 10
DOSBlockingPeriod 600
</IfModule>
what a better configuration would be? When I run the log I already see it block out a bunch of IP's. I don't want to lose any visitors to this program, but I do get ddos a lot.
I committed a fault, I reinstalled apache2 in my dedicated server, all my apache config files are missed so now plesk not work, i have 3 domains in production w and all are broken ...
error: Not Found
The requested URL / was not found on this server.
I tried to reconfigure but:
psa/admin/sbin/httpdmng:: No such file or directory
There is a solution to restore my apache2 old installation w files config?
Im using RHE 4 + cpanel
Im considering Suhosin, in fact i am using it in other plain server were i have 1 or 2 sites. But this is a very high traffic with 300 + sites, lot of sites are using cms apps..
may it cause conflicts with this apps?
i have just got a virtuzzo vps it have 512 mb ram, its comes with, centos 4.4, plesk 8.2
php 4.4, apache 2.05, so i want to upgrade, to, php5, apache 2.57
Code:
Kernel Version2.6.18-4-686 (SMP)
Distro Name Debian 4.0
Model Intel(R) Pentium(R) 4 CPU 2.40GHz
I've installed the default apache 2, mysql, php using aptitude.
The server load is not at all high, around 1-1.5 max. The apache processes running are at an avg 60-80. It has 1GB ram and Disk Swap usage is 0kB
My server keeps rebooting every now and then. These are the messages I get in the ssh session just before the reboot..
Code:
Message from syslogd@xxx at xxx
kernel: Bad page state in process 'apache2'
kernel: page:c17bc0a0 flags:0xc0000000 mapping:00800040 mapcount:0 count:0
kernel: Trying to fix it up, but a reboot is needed
kernel: Backtrace:
I just ran a simple yum update php on the server, because I need to be running 5.2 instead of 5.1.6
The update went smoothly, so I restarted httpd, and all hell broke loose. Apache can't start because of a whole lot of missing modules. So I commented out every single LoadModule line to see if that would get it to start, and it started complaining about the configuration file of some other software being incorrect (because that configuration file pointed to some module that no longer exists)
At one point I was able to get apache to start, I believe by copying my old configuration file to httpd.conf and then commenting out some lines that it was complaining about. Apache started, but no pages were loading.
So right now, basically, I've got no web service running at all on the server. I really didn't expect all of these problems for a simple PHP update, but obviously I was mistaken.
Is it worth trying to fix this myself (intermediate linux user here) or would it just be easier to hire someone to come in and do it for me?