Monthly Archive for March, 2011

Create Backups with tartarus

If you have a FTP backup space for your vserver or dedicated server, tartarus is a great tool to create and crypt your backups.
This is my method to backup my Hetzner server

Install tartarus on Debian squeeze: (works on ubuntu too)
Continue reading ‘Create Backups with tartarus’

Debian squeeze install OpenVZ

I have a tiny embedded server (acrosser model) Intel Celeron with only 400MHz and 512MB Mem total. Before I upgraded debian to squeeze I used Xen, now its time to use OpenVZ.

Reasons:
- My tiny hardware:)
- Container virtualization – I can use more virtual machines
- Less memory usage – Container cannot boot

OpenVZ kernel and the vzctl and vzquota packages are available in the Debian repositories, so we can install them as follows:
Continue reading ‘Debian squeeze install OpenVZ’

Access denied for user ‘debian-sys-maint’


While trying to start or stop MySQL I get:

1
Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)

Dabian has a own way to login to the MySQL database the credantials are listed in a file:

1
2
3
4
cat /etc/mysql/debian.cnf
[...]
user = debian-sys-maint
password = bodCNLUx0GGYm6F

Logon:

1
mysql -u root -p

Execute:

1
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY 'bodCNLUx0GGYm6F' WITH GRANT OPTION;

By the way set a new root passwort:

1
mysqladmin -u root password 'new-password'

Apache2 and php5-fpm combination

PHP-FPM (FastCGI Process Manager) is a great alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

1
vim /etc/apt/sources.list

Add source for php5-fpm:

1
2
# PHP-FPM
deb http://packages.dotdeb.org stable all

Continue reading ‘Apache2 and php5-fpm combination’

Usermod command

Manpages are great!
Disable ssh login:

1
usermod -s /bin/false username

Change home directory:

1
usermod -d /home/users/newpath/ username