How To Install Mod_Security On LiteSpeed
Jul 6, 2009i'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'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 ,
problem with install suhosin and ...
how i can install Mod_security
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 RelatedFor 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 Relatedhow to install mod_security, suhosin, Mod_Evasive on server plesk (apache2, php5)?
win I loacate apxs I have empty results
In a 2 X Quad Xeon server with 16GB RAM and 2 X 500GB on DirectAdmin.
IOwait is less than 10% most of the times.
So litespeed told me to go with a 2 CPU core license.
1. So since i going with 2 CPU core license. It will only make 2 cores user litespeed for PHP out of 8 cores? what other cores gonna do? only static content? Or other cores gonna use Apache for php? can you plz explain.
2. Do we have to configure cache like mod_cache, mod_disk_cache, and mod_mem_cache etc with litespeed too? Or it has its own methods of caching?
3. Should use their PHP LiteSpeed SAPI over normal PHP?
Is there any compatibility problems with scripts like Vbulletin, jamroom?
Anyone happen to know the difference between the two and whether or not I'll notice the difference between them?
For example, many, many, many, many moons ago, in a far away land, there used to be a difference between Windows and Linux for perl scripts. In fact, if you couldn't re-write half the script, some of them just didn't work right on a windows host.
Are there any differences like that between lightspeed and apache, or is it all pretty much the same and doesn't really matter?
I'm now running litespeed server to power sites on a VPS. Currently, a site is working without https access normally. However, when you access the site via HTTPS (SSL), I recieve ioncube is not loaded. Comparing the phpinfo, it appears that the https is loading the old configuration of phpinfo, what's worse, is that it's loading PHP 4. Both however, load the same PHP configuration file.
View 1 Replies View Relatedwhen I type "top" into ssh I see 3 proccesses of lshttpd, 2 are running by nobody, 1 by root., lsws is installed as nobody:nobody. Also, I see 2 lsphp5 processes, by nobody both. I have 4 virtual hosts configured. Are those proccesses normal, I think there should be only 1 proccess lshttpd and lsphp5.
Can you check if you are running litespeed how many proccesses of lshttpd you have?
My litespeed is not using httpd.conf
I have a site hosted at steadfast.net - I like it very much especially the speed is Great and the prices are Good. However i am having a lot of connection errors and MySQL Problems.
Is there any other shared hosting that uses Litespeed ? with Good Prices and Good Reviews ?
i am interested to install Litespeed on my vps (with cpanel)
it is good?
I no longer have the funds for a LSWS lic, so I need to move to Apache. I run CPanel and need help in configuring Apache to be able to take 120 requests/sec and no crap out.
I've never worked with Apache since been using LiteSpeed for over 2 years, so I need some advice on how to set it up, compile, configure, ect...
I started a thread last night to get some opinions as I am trying to find a new host & now am coming up with another question... Apache vs Litespeed. A cpanel is important to me, which I am not sure is possible with Litespeed & a highly rated company that offers LS, Medialayer, doesn't offer phone support which is mandatory to me. Can't find many companies that offer Litespeed & everything else that I need.
So as not to repeat, please see the tread I started last night to get the gist of my needs. I also another opinion over there on Liquidweb. See:
[url]
I have litespeed enterprise.
Will mod Security work with it? I doubt it, because it says Apache. But just wondering.
Dos anyone know of anything else, besides the security section on litespeed?
Any packages like mod security, that work with Ubuntu and LiteSpeed?
Due to heavy load, our web server get crashed. We have plan to use LiteSpeed web server, is anybody used these server. I like to know performance of these.
View 11 Replies View RelatedI tried searching for it on google but couldn't find any server company offering VPS using Litespeed instead of Apache. Yes, I know that Apache could be optimized, but would like to try a VPS or dedicated server with Litespeed, just for testing and learning to use and troubleshoot Litespeed. Does anybody here know of a supplier? I would need less than 10 gigs, 250+ Ram as well as cPanel.
View 13 Replies View RelatedI installed lsws without apache conf file(httpd.conf). Then I created a new virtual host in "suEXEC" Template. I added a new user via SSH and made home dir for him and chowned his home dir + all his files to hisusername:hisusername. His home dir(/home/user/) is chmoded to 755 and his /public_html to 711. It worked fine but after that I installed phpbb3 forum and when I tried to chmod config.php to 600 I got an error on the forum:
Fatal error: require() [function.require]: Failed opening required './config.php' (include_path='.:/usr/local/lib/php') in /home/username/public_html/common.php on line 127
When I was using lsws with apache conf file and I had configured suEXEC + suPHP for apache I was able to chmod config file to 600 and it worked fine. I have no idea what could be the problem now.
It works fine when I chmod config.php to 755 but for security reasons I would need a way to configure it to 600.
LiteSpeed si running as nobody:nobody.
EX. APP settings:
LSAPI App
$VH_NAME_lsphp
uds://tmp/lshttpd/$VH_NAME_lsphp.sock
SCRIPT HANDLER settings:
Suffix: php5
Type: LiteSpeed API
Name: [VHost Level]: $VH_NAME_lsphp
I got new server for free image hosting services, I was reading up about lite speed and it seems faster for this type of need however i do not have money to buy enterprise edition now, standard edition which is free but it says only 150 concurrent connection, means i can't have more than 150 ppl viewing a image? please advice or do stick with our great Apache which free
View 8 Replies View RelatedWe run a quite intensive web and found some performance tests about LiteSpeed Ent. Our site is Apache + PHP driven. Is it worth to pay for LiteSpeed Ent ? Is the performance increase really significant?
View 7 Replies View RelatedI've tried turning on/off gzipping, other stuff.
It's an AJAX tab script.
Exact same thing, exact same paths work on my shared hosting elsewhere, but not on my box running LS.
Does LiteSpeed webserver provides me bandwidth usage?
Someone told me that he was using 8 mbits connection and after jumping to LiteSpeed, bandwidth usage has decreased to 3 mbits.
I installed litespeed but now I can't send mails, I didn't got any error but mails are not delivered. My ip is not listed at spamhaus or something like that. Before, with apache it worked fine
View 4 Replies View RelatedHaving constant and random downtime with Lighttpd being that for no reason connections get refused and my server load is low, that I think maybe get Litespeed.
I believe my server is an Intel Core2Quad Q6600
I think its only got 1 CPU in it.
What license do I need?
Anyone using free version of litespeed?
View 3 Replies View RelatedIve been planning to try LiteSpeed Web Server on my cPanel webhosting servers, but cant decide which license is best for my 2 x quadcore Xeon E5335 system and 2 x dualcore Xeon 5130 system.
View 4 Replies View Relatedif there is any difference between apache & litespeed? Performance wise I know litespeed would be better. But in terms of configuration wise, compatitibility wise and some other factors, how different would it be for apache & litespeed?
My concern is if I were to change from apache to litespeed, would my webhosting customers know how to use it in 1 way or another? like permissions and stuff.
i would like to use Litespeed webserver from my server.i installed and run Litespeed from my server. but i dont know how to config. when i start the Litespeed webserver i have an error to please install Zend. Please help me to install zend and if you know whats my need for install please help me to done.
I use cPanel - Dedicated Server
i can control the Litespeed from the cPanel WHM.
I'm having a problem with litespeed and apache, every time when I reboot the server listespeed and apache(both) are started and the server uses apache. I configured litespeed to use a conf file of apache so I can't remove just apache. I need a way when I restart the server litespeed is started and apache is stoped
2nd problem. how to make this in a batch script
The script will backup a directory every month and I need in every backup get a date like this directoryname-date(day/month/year)