zurück zum Bug Report | Seiten

flashwebb

13.08.2007, 21:44
 

Settings.php (Bug Report)

Hi
There is still problem with the settings.php file on windows machine
after install the settings.php is 0 byte..
i thougt you fix that problem

Peter

JR-EWING

20.08.2007, 09:02

Settings.php

Hi,
sorry you are the first with this problem. I tested it also on windows systems and had no problem.

Please give me more hints ;-)

Which Version of Spider Trap do you use ?
Which PHP Version are installed on your server ?
and so on.


Suche noch Programmierer für das Spider Trap Team, die mir helfen die Software weiterzuentwickeln.

treitmayr

05.10.2007, 01:46

Settings.php

Hi,
I had the same problem and traced it back to flock() not being allowed to lock the settings file. Unfortunately you don't see the error message, it is generated but not used any further.
Try to comment out each of the flock calls - that fixed it for me.
-Thomas

flashwebb

21.01.2008, 22:05

Settings.php

Hi
what file should i remove the flock?
the setting.php??
in my setting.php i don't have these flock


<?php
/**
* $Id: settings.php,v 1.10 2006/23/8 $
*
* @author Thomas Zeithaml <info@spider-trap.de>
* @copyright (c) 2005-2006 Spider-Trap Team
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the 'License'); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an 'AS IS'
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*/

// Schreibrechte CHMOD 777

$spider_files['htaccess_file'] = '../.htaccess';
$spider_files['blacklist_file'] = 'files/blacklist.txt';
$spider_files['whitelist_file'] = 'files/whitelist.txt';
$spider_files['captcha_file'] = 'files/captcha.txt';
$spider_files['user_agent_file'] = 'files/user_agent.txt';

$spider_conf['spider_path'] = '/spider-trap/'; // path of the trap - must end with a '/'

$spider_conf['redirect_after_ban'] = '../';
$spider_conf['alert_email'] = 'spider-info@domain.com'; // Email für Benachrichtigungen
$spider_conf['ban_expired'] = 14400; // Anzahl der neuen Spambots bis Sperre aufgehoben
$spider_conf['email_on_ban'] = 0; // Email senden wenn neue Sperre
$spider_conf['email_on_unban'] = 0; // Email senden wenn Sperre für jemand aufgehoben wurde ?
$spider_conf['use_captcha'] = 1;
$spider_conf['report_ips'] = 1; // report ips to spider-trap.de

$spider_conf['admin_name'] = 'admin';
$spider_conf['admin_pass'] = 'f30fa14283b8150e3fa3bdcccd0e8cb8';
$spider_conf['lang'] = 'de';
?>



I have ver 1.1 of spider trap

and 4.4.7 of php

treitmayr

21.01.2008, 22:50

Settings.php

Hi,
you find multiple flock's in functions.php. You should comment out both the LOCK_EX and the LOCK_UN calls. If you remove the whole if statements don't forget to also get rid of the else part.
Note that there might be a slight chance to end up with a corrupted blacklist or htaccess file if you encounter a lot of spider traffic.
For me it works well with the occasional spider crawling by.
-Thomas

» Hi
» what file should i remove the flock?
» the setting.php??
» in my setting.php i don't have these flock

flashwebb

22.03.2008, 23:27

Settings.php

Hi
it's working now..and now i can acces the admin page and do some changes...But the cron.php will not working...I have put 20 sec ..but nothing happend..it will not remove th ipnumber in blacklist.txt...I have also try to run cron.php
Peter


Ähnliche Beiträge
Thema Author Antworten Letzter Beitrag



zurück zum Bug Report | Seiten