1
macmend
since installing protector...sites slow down to unusable state?
  • 2006/3/13 11:08

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


since I installed the protector module my sites have become almost unusable, because they are soooooo slow anyone know why this may be?
Free Mac Support

Ordinary Wisdom

apache server with php sshexec turned on
xoops version 2.0.18.1 & 2.3.1
php version 5.2.5
mysql version 5.0.45

2
Herko
Re: since installing protector...sites slow down to unusable state?
  • 2006/3/13 12:48

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


protgector adds a number of queries to each pageview, to check if the page sent is requested by a valid user, to check the request for unwanted patterns, and to log any events that qualify. This added security costs extra resources, and it seems that in your case, you pay too high a price.

Herko

3
macmend
Re: since installing protector...sites slow down to unusable state?
  • 2006/3/13 12:54

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


yes but why would it start OK on restarting my server and then get slower and slower until it brings the server down.

And if it is this how can I remove it easily and put my mainfile back to its previous state

On one site it has paid it dues discovering and stopping an attack but it appears to slow down both my sites, whether i am blocking, logging or sanitizing.

I did think it might be the instructions to .htaccess that might be causing the problem!
Free Mac Support

Ordinary Wisdom

apache server with php sshexec turned on
xoops version 2.0.18.1 & 2.3.1
php version 5.2.5
mysql version 5.0.45

4
Herko
Re: since installing protector...sites slow down to unusable state?
  • 2006/3/13 13:05

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


without more information about what exactly is going wrong, where it hangs, what the bottleneck actually is, all we can do is guess about the cause. If you can provide some more info about what exactly is slowing the site down, that would help.

Herko

5
svaha
Re: since installing protector...sites slow down to unusable state?
  • 2006/3/13 13:15

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Quote:

macmend wrote:
yes but why would it start OK on restarting my server and then get slower and slower until it brings the server down.

And if it is this how can I remove it easily and put my mainfile back to its previous state

On one site it has paid it dues discovering and stopping an attack but it appears to slow down both my sites, whether i am blocking, logging or sanitizing.

I did think it might be the instructions to .htaccess that might be causing the problem!


I've protector installed on all my sites, the page loading times are 0,3 - 0,7 seconds, so I don't see the slow down you are talking about. It must have another reason.

6
macmend
Re: since installing protector...sites slow down to unusable state?
  • 2006/3/13 13:17

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


What information do you need.

The evidence is that the site progressively slows and then even slower until pages will not load, and then i cannot log into ftp either.

This has all happened since i installed protector at both macmend.com and jonathanspencer.net, they are running similar 2.23a set ups except js.net is run as a blog with wordpress and macmend.com is mainly a forum, both sites run simplified urls.

can you tell me what code should i put back in mainfile.php if I disable this module
Free Mac Support

Ordinary Wisdom

apache server with php sshexec turned on
xoops version 2.0.18.1 & 2.3.1
php version 5.2.5
mysql version 5.0.45

7
svaha
Re: since installing protector...sites slow down to unusable state?
  • 2006/3/13 13:19

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


What version of protector are you using?

8
svaha
Re: since installing protector...sites slow down to unusable state?
  • 2006/3/13 13:28

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Here are the lines inside mainfile.php

define('XOOPS_GROUP_ADMIN''1');
    
define('XOOPS_GROUP_USERS''2');
    
define('XOOPS_GROUP_ANONYMOUS''3');

                 [
COLOR=RED]include( XOOPS_ROOT_PATH '/modules/protector/include/precheck.inc.php' ) ;[/COLOR]

    if (!isset(
$xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
        require 
XOOPS_ROOT_PATH."/include/common.php";
        include 
XOOPS_ROOT_PATH."/include/autologin.php" ;
    }
                [
COLOR=RED]include( XOOPS_ROOT_PATH '/modules/protector/include/postcheck.inc.php' ) ;[/COLOR]
}


color red and end color red point to the lines

And this is in my dotHtaccess file


Quote:
php_flag register_globals off

php_flag session.use_trans_sid off

9
macmend
Re: since installing protector...sites slow down to unusable state?
  • 2006/3/13 13:36

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


version is 2.55, can i just remove the precheck and post check lines and turn of the two lines in htacess

what does php_flag register_globals off do

I have got to get it done or my hosts will take me down as they say my site is bringing the server down

I seem to remember they had some kind of phishing attack going on and had to turn on something on the server to do with php I wonder if this is causing a conflict, I will find out
Free Mac Support

Ordinary Wisdom

apache server with php sshexec turned on
xoops version 2.0.18.1 & 2.3.1
php version 5.2.5
mysql version 5.0.45

10
svaha
Re: since installing protector...sites slow down to unusable state?
  • 2006/3/13 14:08

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


You can uninstall the module protector and comment out the lines in mainfile.php and htaccess, but I don't think that protector is the cause of this slow down.
I've installed it like I said on all my sites and the sites are installed on three different hosts and my own computer, success.

Login

Who's Online

357 user(s) are online (39 user(s) are browsing Support Forums)


Members: 0


Guests: 357


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits