error update spamassassin: sa-update failed for unknown reasons

Error /etc/cron.daily
error: unable to refresh mirrors file for channel updates.spamassassin.org, using old file
channel: could not find working mirror, channel failed
sa-update failed for unknown reasons

change permissions for directories /var/lib/spamassassin/ and /etc/spamassassin

root@1:~# chown -R debian-spamd:debian-spamd /etc/spamassassin /var/lib/spamassassin
root@1:~# /etc/cron.daily/spamassassin


The Apache server status and Error codes

BOLD == List of Common HTTP Status Codes

Successful Client Requests
200 OK
201 Created
202 Accepted
203 Non-Authorative Information
204 No Content
205 Reset Content
206 Partial Content

Client Request Redirected
300 Multiple Choices
301 Moved Permanently
302 Moved Temporarily
303 See Other
304 Not Modified
305 Use Proxy

Block a Specific IP Address

If you want to block someone coming from a specific IP address from accessing your website, you can use the following code in .htaccess file:

RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^(A\.B\.C\.D)$
RewriteRule ^/* http://www.domain.com/oops.html [L]

Replace the A\.B\.C\.D with the IP address you want to block (don't forget to leave the "\" before each dot, which escapes the character).


Set up a Default Image -htaccess

Using a default, backup image in case of broken images can make your site look more professional. Use the following code in htaccess file to redirect to a default image for any image whose file cannot be found.

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^images/.*\.jpg$ /images/default.jpg [L]

Preventing directory listing - htaccess

Typically servers are setup to prevent directory listing, but often they aren't. If you have a directory full of downloads or images that you don't want people to be able to browse through, add the following line to your .htaccess file...

IndexIgnore *

The * matches all files. If, for example, you want to prevent only listing of images, use...

IndexIgnore *.gif *.jpg *.png

htaccess - Redirecting YourSite.com to www.YourSite.com

Redirecting YourSite.com to www.YourSite.com
In .htaccess you can set up a 301 redirect (permanent redirect) from YourSite.com to www.YourSite.com...

RewriteEngine On
RewriteCond %{HTTP_HOST} ^YourSite\.com [nc]
RewriteRule (.*) http://www.YourSite.com/$1 [R=301,L]


RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]


Hypertext Transfer Protocol -- HTTP/1.0 - Status Code Definitions

List of Common HTTP Status Codes

200 OK
This class of status code indicates that the client's request was successfully received, understood, and accepted.

201 Created
The request has been fulfilled and resulted in a new resource being created.

202 Accepted
The request has been accepted for processing, but the processing has not been completed.

204 No Content

Install Debian 5.0.x Lenny - net install : Apache2, PHP5, Mysql, Postfix, GeoIP and ...

Install Debian 5.0 Lenny and some extra software + basis config,
-ssh, mc, apache2, php5, mysql5, geoip, posfix, GD image modulue, imagemagick, webmin, rkhunter, chkrootkit ...

Install debian 5.0.x Lenny net install

Download debian


How to install BIND9 master / slave nameserver

Install BIND9 DNS nameserver master/slave


Remove BIND 8 ...

apt-get --purge remove bind

To remove Bind 9 use
apt-get --purge remove bind9
apt-get autoremove


Syndicate content
Bespaar continu