Hi,
I try to use updateBannedIPs.sh on http://c2ilibre.free.fr, as described at http://www.mediawiki.org/wiki/Manual:Combating_spam.
I added the line "require_once("$IP/extensions/bannedips.php");" to "LocalSettings.php", and I put "bannedips.php" and "updateBannedIPs.sh" into the folder "extensions". "updateBannedIPs.sh" has the rights 644, and I cannot change at.
"updateBannedIPs.sh" works on my computer, but how to run it on the web? When I indicate the adress "http://c2ilibre.free.fr/extensions/updateBannedIPs.sh" in firefox, it will download the file. I use Debian/Linux.
For the moment, my wiki says: "0.0.0.0,0.0.3.0,0.2.0.0,1.0.0.0,1.1.1.1,1.1.2.3,1.186.6.110,...... Warning: Cannot modify header information - headers already sent by (output started at /mnt/142/sda/5/a/c2ilibre/extensions/bannedips.php:1) in /mnt/142/sda/5/a/c2ilibre/includes/WebResponse.php on line 16
greetings
Klaus
Le samedi 05 février 2011 11:44:25, Klaus Becker a écrit :
Hi,
I try to use updateBannedIPs.sh on http://c2ilibre.free.fr, as described at http://www.mediawiki.org/wiki/Manual:Combating_spam.
I added the line "require_once("$IP/extensions/bannedips.php");" to "LocalSettings.php", and I put "bannedips.php" and "updateBannedIPs.sh" into the folder "extensions". "updateBannedIPs.sh" has the rights 644, and I cannot change at.
"updateBannedIPs.sh" works on my computer, but how to run it on the web? When I indicate the adress "http://c2ilibre.free.fr/extensions/updateBannedIPs.sh" in firefox, it will download the file. I use Debian/Linux.
For the moment, my wiki says: "0.0.0.0,0.0.3.0,0.2.0.0,1.0.0.0,1.1.1.1,1.1.2.3,1.186.6.110,...... Warning: Cannot modify header information - headers already sent by (output started at /mnt/142/sda/5/a/c2ilibre/extensions/bannedips.php:1) in /mnt/142/sda/5/a/c2ilibre/includes/WebResponse.php on line 16
greetings
Klaus
in "bannedips.php", I deleted the last, empty line, and now the above error message desappeared.
but I did not find a way to run "updateBannedIPs.sh" on free.fr, neither any other admin script.
Klaus
On 05/02/11 11:44, Klaus Becker wrote:
Hi,
I try to use updateBannedIPs.sh on http://c2ilibre.free.fr, as described at http://www.mediawiki.org/wiki/Manual:Combating_spam.
You can not run a shell script on shared hosts such as free.fr. Sorry :(
By looking at the script it could probably converted to a PHP script which update the bannedips list.
Le samedi 05 février 2011 22:19:47, Ashar Voultoiz a écrit :
On 05/02/11 11:44, Klaus Becker wrote:
Hi,
I try to use updateBannedIPs.sh on http://c2ilibre.free.fr, as described at http://www.mediawiki.org/wiki/Manual:Combating_spam.
You can not run a shell script on shared hosts such as free.fr. Sorry :(
By looking at the script it could probably converted to a PHP script which update the bannedips list.
-- Ashar Voultoiz
Hi,
and how can I run Mediawiki admin-scripts on shared host ?
Klaus
mediawiki-l@lists.wikimedia.org