Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How to install mod_unique_id

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
freddie
Posts: 3
Joined: Wed Jan 28, 2015 4:56 pm

How to install mod_unique_id
  • Quote

Post by freddie » Wed Jan 28, 2015 5:11 pm

Hey guys, I want to enable mod security on my centos server but received this error:
[error] ModSecurity: ModSecurity requires mod_unique_id to be installed.

I also find this tutorial:

https://redbeardtechnologies.wordpress. ... installed/

but apparently it doesn't work with my Vesta Apache web server because I cant find this folder:
/usr/local/apache2/bin/apxs

Do you guys now how can I use apxs in vesta or how can I install mod_unique_id? I appreciate your help.
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: How to install mod_unique_id
  • Quote

Post by joem » Thu Jan 29, 2015 4:55 am

freddie wrote:Hey guys, I want to enable mod security on my centos server but received this error:
[error] ModSecurity: ModSecurity requires mod_unique_id to be installed.

I also find this tutorial:

https://redbeardtechnologies.wordpress. ... installed/

but apparently it doesn't work with my Vesta Apache web server because I cant find this folder:
/usr/local/apache2/bin/apxs

Do you guys now how can I use apxs in vesta or how can I install mod_unique_id? I appreciate your help.

Which os do you have?
Top

freddie
Posts: 3
Joined: Wed Jan 28, 2015 4:56 pm

Re: How to install mod_unique_id
  • Quote

Post by freddie » Sun Feb 01, 2015 6:21 am

joem wrote:
freddie wrote:Hey guys, I want to enable mod security on my centos server but received this error:
[error] ModSecurity: ModSecurity requires mod_unique_id to be installed.

I also find this tutorial:

https://redbeardtechnologies.wordpress. ... installed/

but apparently it doesn't work with my Vesta Apache web server because I cant find this folder:
/usr/local/apache2/bin/apxs

Do you guys now how can I use apxs in vesta or how can I install mod_unique_id? I appreciate your help.

Which os do you have?

Thanks for the reply. I am using centos 6.5 but I solved the issue. If anyone else has the same problem, be aware that modsecurity requires mod_unique_id to work. If you didn't add mod_unique_id to Apache, you have to add it:

nano /etc/httpd/conf/httpd.conf

LoadModule unique_id_module modules/mod_unique_id.so

My problem was when I add unique_id_module to apache, it failed to restart again. If anyone has the same issue you have to change the hostname. The problem was occurred because of the server ip address. Just simply add your host-name with this command: hostname mysamplename

http://www.rackspace.com/knowledge_cent ... ame-change
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: How to install mod_unique_id
  • Quote

Post by mehargags » Sun Feb 01, 2015 7:16 am

Please educate me, what is the purpose of having mod_unique_id on a setup if I'm using nGinx as reverse proxy ?

Doesn't that actually create a "Unique" connection where nGinx is uniqly talking to apache on one dedicated channel ? atleast that's what I presume. Please correct me if I'm wrong.
Top

freddie
Posts: 3
Joined: Wed Jan 28, 2015 4:56 pm

Re: How to install mod_unique_id
  • Quote

Post by freddie » Sun Feb 01, 2015 7:49 pm

mehargags wrote:Please educate me, what is the purpose of having mod_unique_id on a setup if I'm using nGinx as reverse proxy ?

Doesn't that actually create a "Unique" connection where nGinx is uniqly talking to apache on one dedicated channel ? atleast that's what I presume. Please correct me if I'm wrong.

I am using cloudflare with mod-cloudflare installed on apache and cloudflare acts like a proxy, I am not very technical but maybe that's the difference. I also added cloudflare to nginx:

nano /etc/nginx/nginx.conf

http {
set_real_ip_from 199.27.128.0/21;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/12;
set_real_ip_from 127.0.0.1/32;
real_ip_header CF-Connecting-IP;

When for the first time I checked my error logs u(login to one of your user accounts on vesta panel, click on web and see one of domain logs) I received the error below:
[error] ModSecurity: ModSecurity requires mod_unique_id to be installed.

So if you already added mod-security to Apache and haven't received any error under your logs, everything should work fine. Otherwise add mod_unique_id to apache.
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password