Facing issue while installing Modsecurity(version 2.9) in Rhel(version 5.6) with apache(version 2.4.18) - apache

Getting the below issue while installing the "modsecurity-2.9.1" on RHEL 5.6 having apache version 2.4.18.
[root#pysdcstg1070308 bin]# ./apachectl start
httpd: Syntax error on line 536 of /root/Apache-2.4.18/apache/conf/httpd.conf: Syntax error on line 4 of /root/Apache-2.4.18/apache/conf/mod_security.conf: Cannot load /root/Apache-2.4.18/apache/modules//mod_security2.so into server: /root/Apache-2.4.18/apache/modules/mod_security2.so: undefined symbol: ap_get_server_version
following the steps in the below link for installation:
http://blog.astaz3l.com/2015/02/19/apache-mod-security/
Have searched for possible soluting in stack overflow and other sites as well and googled , but could not find proper solution.
Please help.

Related

How can I solve this problem of installation xampp on fedora?

When I run xampp on fedora this error is showing up on application log
Starting Apache Web Server...
Exit code: 8
Stdout:
apache config test fails, aborting
Stderr:
httpd: Syntax error on line 522 of /opt/lampp/etc/httpd.conf: Syntax error on line 10 of /opt/lampp/etc/extra/httpd-xampp.conf: Cannot load modules/libphp7.so into server: libnsl.so.1: cannot open shared object file: No such file or directory
can anyone tell me how can I solve this?
it seems you're missing libnsl. install it through this command:
sudo dnf install libnsl
In case this doesn't work you can then download it manually:
Visit https://pkgs.org/
In the search box (pkgs.org of course) type libnsl.so.1 and choose the appropriate OS. The version shown might be higher e.g libnsl-2.28-9.fc29.x86_64.rpm, but it doesn't matter, the file needed is also included in this very package.
In the terminal, navigate to the directory where the .rpm was downloaded.
Type the following command to install it:
sudo rpm libnsl-2.XX-X.fc29.x86_64.rpm
Upon completion everything should be working fine.
A quick Google search returns this: https://www.reddit.com/r/Fedora/comments/8hlhlv/xampp_with_fedora_28/
The suggested fix is installing libnsl from this source:
https://www.rpmfind.net/linux/rpm2html/search.php?query=libnsl.so.1%28%29%2864bit%29&submit=Search+...&system=fedora&arch=

Apache http server, Solaris 8

While starting the apache http server, I am getting the below error:
httpd: Syntax error on line 67 of /isgwtld/lsam/apache/conf/httpd.conf: Cannot load modules/mod_wl_22.so into server: ld.so.1: httpd: fatal: relocation error: file /isgwtld/lsam/apache/modules/mod_wl_22.so: symbol unixd_set_global_mutex_perms: referenced symbol not found
Configuration used currently:
OS: Solaris 8
APACHE HTTP SERVER : 2.4.27
weblogic: 10.3.0
Probably you are using an old version of the module or a mod_wl module compiled for an older httpd version (2.0 or 2.2).
In my case, I solved using an updated mod_wl version compiled for apache 2.4.

module pcntl already loaded in unknown on line 0

After installation pcntl encounters an error while running tests (make test)
Module 'pcntl' already loaded in unknown on line 0
Thus on many forums the same - comment out in the *.ini files row
Disable_functions =
pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl
I found it in the file /etc/php5/apache2/php.ini, commented out, restart apache2, did not help. Restarting the server does not help.
How do I fix this error?
ubuntu 14.04
apache 2.4.7
php5 5.5.9

Transport Layer Security module fails to load

I am using Ubuntu 12.04 LTS, and Apache 2.4.
I've installed TLS by following the steps on this link: https://help.ubuntu.com/community/GnuTLS
When restarting Apache I get the following error:
apache2: Syntax error on line 212 of /etc/apache2/apache2.conf:
Syntax error on line 1 of /etc/apache2/mods-enabled/gnutls.load:
Cannot load /usr/lib/apache2/modules/mod_gnutls.so into server:
/usr/lib/apache2/modules/mod_gnutls.so: undefined symbol: unixd_config
If I remove the #gnutls.conf file from the /etc/apache2/mods-enabled directory Apache restarts.
What is causing the module not to load?
Your level of mod_gnutls isn't aware of Apache 2.4, one breaking change in 2.4 is the symbol unixd_config is replaced by ap_unixd_config. There will probably be a slew of similar issues.

Configuration http not running after installing mod_jk.so

I installed: mod_jk-1.2.31-httpd-2.2.x.so
When restart httpd after updateing mod_jk
/sbin/service http stop
ERROR:
httpd: syntax error on line 30 of /usr/local/apache/conf/httpd.conf: syntax error on line 2 of /usr/local/apache/conf.d/mod_jk.conf: cannot load /usr/local/apache/modules/mod_jk.so into server: /usr/local/apache/modules/mod_jk.so: wrong ELF class: ELFCLASS32
Found the correct compiled version for 64bit system.