Страница 1 из 1
mod_security на apache2.0
Добавлено: 2009-05-20 18:54:53
shirker
стал ставить mod_security из портов, как в:
http://www.lissyara.su/?id=1450
при перезагрузке апач ругаетсо, что мол это от 2.2 версии модуль, негодиццо(
апач - apache-2.0.63_2, поставлен директадмином, не из портов
как сконфигурировать, какую опцию указать в make configure, чтоб от нужной версии собирался? на сайте не нашел.. там описано, как встроить в билд, но толи доки старые..
Re: mod_security на apache2.0
Добавлено: 2009-05-20 18:57:30
zingel
Код: Выделить всё
cd /usr/ports/www/apache20 && make rmconfig && make config; make install
Re: mod_security на apache2.0
Добавлено: 2009-05-20 19:16:10
shirker
а без переустановки апача никак? нельзя как-то указать этому mod_security сорцы апача, из которых апач установлен?
Re: mod_security на apache2.0
Добавлено: 2009-05-20 19:19:10
zingel
чтот я нагнал
вместо
Код: Выделить всё
cd /usr/ports/www/apache20 && make rmconfig && make config; make install
должно
Код: Выделить всё
cd /usr/ports/www/mod_security && make rmconfig && make config; make install
Re: mod_security на apache2.0
Добавлено: 2009-05-20 19:23:29
shirker
вот так и делаю, но после подключения модуля апач ругаеццо, что модуль от 2.2 ( что-то там сигначе мол не то)
Re: mod_security на apache2.0
Добавлено: 2009-05-20 19:26:42
zingel
что у Вас показывает
Код: Выделить всё
grep USE_ /usr/ports/www/mod_security/Makefile
Re: mod_security на apache2.0
Добавлено: 2009-05-20 19:28:58
shirker
Код: Выделить всё
# grep USE_ /usr/ports/www/mod_security/Makefile
USE_APACHE= 2.0+
USE_GNOME= libxml2
USE_LUA= 5.1+
но после сборки:
Код: Выделить всё
# httpd -k restart
httpd: Syntax error on line 169 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of
/etc/httpd/conf/extra/httpd-mod_security.conf: API module structure 'security2_module'
in file /usr/local/libexec/apache2/mod_security2.so
is garbled - expected signature 41503232 but saw 41503230 - perhaps this is not an Apache module DSO,
or was compiled for a different Apache version?
а 41503232 ето вроде как 2.2
Re: mod_security на apache2.0
Добавлено: 2009-05-20 19:31:31
ProFTP
на 2.2 все работает поставь его!
может ты в конфиге прогнал?
Re: mod_security на apache2.0
Добавлено: 2009-05-20 19:37:22
shirker
ProFTP писал(а):
может ты в конфиге прогнал?
Код: Выделить всё
LoadModule security2_module /usr/local/libexec/apache2/mod_security2.so
файл один единственный
я мож и поставил бы 2.2, но там наверн вхосты переносить и пр заморок..

Re: mod_security на apache2.0
Добавлено: 2009-05-20 19:41:21
zingel
а mod_security2 собирается?
Re: mod_security на apache2.0
Добавлено: 2009-05-20 19:44:50
shirker
zingel писал(а):а mod_security2 собирается?
да, почти:
Код: Выделить всё
Libraries have been installed in:
/usr/local/libexec/apache2
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/local/libexec/apache2/mod_security2.so
[preparing module `security2' in /usr/local/etc/apache2/httpd.conf]
find: doc: No such file or directory
find: rules: No such file or directory
find: doc: No such file or directory
find: rules: No such file or directory
*** Error code 1
Stop in /usr/ports/www/mod_security2.
Re: mod_security на apache2.0
Добавлено: 2009-05-20 19:49:14
zingel
апач нормально собирайте, что-то ничего нет
Re: mod_security на apache2.0
Добавлено: 2009-05-20 19:52:23
shirker
zingel писал(а):апач нормально собирайте, что-то ничего нет
апач директадмин ставил, на конфиг можно линк сделать, ав вот что за рулес и док он хочет - непонятно

Re: mod_security на apache2.0
Добавлено: 2009-05-20 19:53:27
zingel
Re: mod_security на apache2.0
Добавлено: 2009-05-20 20:02:44
shirker
zingel писал(а):
сами ставьте
похоже, что других вариантов нет

Re: mod_security на apache2.0
Добавлено: 2009-05-20 22:53:00
zingel
непонятно какой демон компилит кавайный апачь, это надругательство