Upgrade from lenny to Squeeze

Valic —  February 6, 2011 — Leave a comment

Debian has released a stable version of Debian 6.0 (Squeeze).

If you’re running previous version of Debian, you can easily upgrade.

1. Update all packages currently installed to the latest lenny versions

apt-get update

apt-get upgrade

2. Replace all occurrences of etch with Squeeze in the apt sources file (pico /etc/apt/sources.list).

Here’s an example of what the file could look like after the change:

deb http://ftp.ro.debian.org/debian/ squeeze main
deb-src http://ftp.ro.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

deb http://ftp.ro.debian.org/debian/ squeeze-updates main
deb-src http://ftp.ro.debian.org/debian/ squeeze-updates main

3. Update apt repository

apt-get update

4. Upgrade apt, dpkg and aptitude packages first

apt-get install apt dpkg aptitude

5. Do a dist-upgrade to upgrade the rest of the system

apt-get dist-upgrade

6. Reboot

reboot

7. Check the debian version

cat /etc/debian_version

It should read version 6.0.

After I needed a DNS server DNS server, I decided the best idea would probably be to write this howto myself…. So, here it is:

Step 1. Install bind9:

apt-get install bind9

Step 2: Configure the main Bind files. Usually, if you install Bind from the source code, you will have to edit the file
named.conf. However, Debian provides you with a pre-configured Bind, so we will edit another file:

vim /etc/bind/named.conf.local

Continue Reading…

For more secure server, we have to close some ports to users.

If need access to this ports, we can give permission to our IP address.  Please dont forget, “iptables” can be block all IP address but when you restart the server it will be clean all of this commands.

Examples:

1. Closing FTP port except xxx.xxx.xxx.xxx

iptables -t filter -I INPUT 1 -p tcp -s ! xxx.xxx.xxx.xxx –dport 21 -j REJECT –reject-with icmp-host-prohibited

2. Closing SSH port except xxx.xxx.xxx.xxx

Continue Reading…

On Debian systems … Apache comes with mod_status compiled by default.
mod_status provides information on the Apache server activity and performance.
This tutorial will show you how to enable this feature, so that only requested issued from localhost are accepted and served.

Setting mod_status up:

By default, server status report is commented so you can not access it. To enable it, you need to uncomment from /etc/apache2/apache2.conf:

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from .your_domain.com
</Location>

Continue Reading…

PhpMyAdmin by default allows you to import only 2 MB file. In many cases this is just way too little.

In order to increase the values you need to alter your php.ini settings. For example put these in your php.ini to import 50 MB files:

post_max_size = 50M
upload_max_filesize = 50M

You can also create a .htaccess file with the above contents in the phpMyAdmin directory:

php_value post_max_size 50M
php_value upload_max_filesize 50M

Page 29 of 44« First...1020...25262728293031323334...40...Last »