PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : نصب مود سکوریتی!!؟؟



mehrserver
August 5th, 2009, 23:32
سلام.
کسی تاحالا توی دایرکت ادمین مود سکوریتی نصب کرده؟
من هرکاری میکنم نمیشه!
لطفا دوستان یه اموزش قرار بدند!
با تشکر
:-*

iranwebwork
September 11th, 2009, 15:29
ممكن هست لود سرورت بالا بره كمي



This worked for me on centos 5.2 using info elsewhere on the DA forums and modsecurity site


For info see http://www.modsecurity.org/documenta...tallation.html (http://www.modsecurity.org/documentation/modsecurity-apache/2.1.4/html-multipage/02-installation.html)


download latest files from http://www.modsecurity.org/download/index.html (http://www.modsecurity.org/download/index.html)

wget http://www.modsecurity.org/download/...e_2.5.9.tar.gz (http://www.modsecurity.org/download/modsecurity-apache_2.5.9.tar.gz)

tar xzvf modsecurity-apache_2.5.9.tar.gz

cd modsecurity-apache_2.5.9/apache2

./configure
make
make test
make install

mkdir -p /etc/modsecurity2/base_rules/
cd /etc/modsecurity2/base_rules/
wget http://www.modsecurity.org/download/...5-1.6.1.tar.gz (http://www.modsecurity.org/download/modsecurity-core-rules_2.5-1.6.1.tar.gz)

vi /etc/httpd/conf/httpd.conf

after load php module, add...

#mod_sec
LoadModule security2_module /usr/lib/apache/mod_security2.so

and at end of file...

<IfModule mod_security2.c>
# ModSecurity2 config file.
#
Include /etc/modsecurity2/base_rules/*conf
</IfModule>

then compile into apache with custombuild


cd /usr/local/directadmin/custombuild

mkdir -p custom/ap2

cp configure/ap2/configure.apache custom/ap2/configure.apache

vi custom/ap2/configure.apache

and add...

"--with-mod_security2"

then...

./build clean 

./build apache

Linux
March 14th, 2010, 16:01
دستور حذف مدسکوریتی دایرکت ادمین چیه؟به شدت لود رو بالا برده

HugeServer
March 14th, 2010, 16:17
دستور حذف مدسکوریتی دایرکت ادمین چیه؟به شدت لود رو بالا برده





vi /etc/httpd/conf/httpd.conf

Edit This Line : LoadModule security2_module /usr/lib/apache/mod_security2.so
To : # LoadModule security2_module /usr/lib/apache/mod_security2.so

In this file : /etc/httpd/conf/httpd.conf

After that do following command :
# service httpd restart

Linux
March 14th, 2010, 16:20
vi /etc/httpd/conf/httpd.conf

edit this line : Loadmodule security2_module /usr/lib/apache/mod_security2.so
to : # loadmodule security2_module /usr/lib/apache/mod_security2.so

in this file : /etc/httpd/conf/httpd.conf

after that do following command :
# service httpd restart




ممنونم اما دستور حذف فایلها پوشه های نصب شدشو میخوم httpd رو خودم ویرایش کرده بودم

HugeServer
March 14th, 2010, 16:26
ممنونم اما دستور حذف فایلها پوشه های نصب شدشو میخوم httpd رو خودم ویرایش کرده بودم

عزیزم وقتی‌ که توی آپاچی صدا نشه، به لود سرورتون که کاری نداره :)

Linux
March 14th, 2010, 16:30
عزیزم وقتی‌ که توی آپاچی صدا نشه، به لود سرورتون که کاری نداره :)

دوست عزیز اینو من خودم میدونم ولودمو عادی کردم. دیگه بهش نیازی ندارم میخوام پاک کنم کلا.چطور بگم دیگه میخوام اثارشو نابود کنم اصلا بهش چندشم میشه.دستور انیستال نداره؟

Dr.SalaR
May 29th, 2011, 11:18
سلام . بعد از نصب آپاچی stop میشه وقتیم میخوام استارت کنم ارور زیر رو میده

[root@150 lib]# service httpd start
Starting httpd: [Sun May 29 12:07:58 2011] [warn] module php5_module is already loaded, skipping
Syntax error on line 191 of /etc/modsecurity2/base_rules/modsecurity_crs_10_config.conf:
ModSecurity: Failed to open the audit log file: /etc/httpd/logs/modsec_audit.log

حل شد :دی

mkdir logs

mehotkhan
June 27th, 2011, 20:22
سلام ، من امروز با این روش داشتم این کار رو میکردم مرحله ی آخر که خواستم آپاچی رو بیلد کنم ارور داد


config.status: creating build/config_vars.sh
config.status: creating include/ap_config_auto.h
config.status: executing default commands
/usr/local/directadmin/custombuild/custom/ap2/configure.apache: line 7: --bindir=/usr/bin: No such file or directory

*** There was an error while trying to configure Apache 2. Check the custom/ap2/configure.apache file




دوستان کسی میدونه مشکل از کجاست ؟

mehotkhan
June 28th, 2011, 11:34
دوستان کسی میتونه در این مورد بهم کمک کنه؟