debian

Change language on your Debian system

To check which locale you currently have as your default just run:

# locale

or type to see a list of installed locales

# locale -a

MySql set default character set to UTF-8 (utf8_unicode_ci)

Dabian; As default mysql is installed with character-set latin1
 

utf8, a UTF-8 encoding of the Unicode character set using one to three bytes per character.
utf8mb4, a UTF-8 encoding of the Unicode character set using one to four bytes per character. (utf8mb4 from MySQL version 5.5.3)

Postfix Block top-level domain (TLD)

Block top-level domain (TLD) with Postfix and postfix-pcre, A top-level domain (TLD) is one of the domains at the highest level in the hierarchical (DNS) Domain Name System. As few examples here; .nl, .eu, .com, org, .net, and .biz.

1. Create a file in /etc/postfix, and name it "reject_domains"
pico /etc/postfix/reject_domains

2. Add list with some bad (TLD) domain
(Add or remove top-level domains on your needs)

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

 

Postfix - Message size exceeds fixed limit

email error 552 5.3.4 Message size exceeds fixed limit

Postfix mail server limit the mailbox size

Display the default mailbox size limit
postconf -d |  grep size

Output:

Upgrade Debian 7 wheezy to Debian 8 jessie and upgrade PHP 5.4 to PHP 5.6

Upgrade Debian 7 wheezy to Debian 8 jessie and upgrade PHP 5.4 to PHP 5.6
NOTE Make a Backup!!!!!
New version apache 2.4 will be installed  with important changes!
Make a backup of your data before upgrading. You will have to make changes to your Apache 2.2 virtual hosts settings to make your websites work again with Apache 2.4.
Important changes for .htaccess files

Upgrade Debian 6 squeeze to Debian 7 wheezy and upgrade PHP 5.3 to PHP 5.4

Upgrade Debian 6 `squeeze` to Debian 7 `wheezy` and upgrade PHP 5.3 to PHP 5.4

Debian 6.0.4
Apache 2.2.16
PHP version: 5.3.3
MySQL version: 5.1.73

pico /etc/apt/sources.list
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

Upgrade PHP 5.5 to PHP 5.6 on Debian 7 “Wheezy” with dotdeb repository

Upgrade PHP 5.5 to PHP 5.6 on Debian 7 “Wheezy” with dotdeb repository

pico /etc/apt/sources.list
deb http://packages.dotdeb.org wheezy-php56 all
deb-src http://packages.dotdeb.org wheezy-php56 all

apt-get update

Upgrade PHP 5.4 to PHP 5.5 on Debian 7 “Wheezy” with dotdeb repository

Upgrade PHP 5.4 to PHP 5.5 on Debian 7 “Wheezy” with dotdeb repository
Debian 7.8
Apache version: 2.2
PHP version: 5.4
MySQL version: 5.5

Upgrade PHP 5.3 to PHP 5.4 on Debian 6 "Squeeze" with dotdeb repository

Upgrade PHP 5.3 to PHP 5.4 on Debian 6 “Squeeze” with dotdeb repository
Apache version: 2.2
PHP version: 5.3.3
MySQL version: 5.1.73

Syndicate content
Bespaar continu