How to Create the Swap File on Ubuntu 12.04

What is swap? Swap space is the area on a hard disk which is part of the Virtual Memory of your machine, which is a combination of accessible physical memory (RAM) and the swap space. Swap space temporarily holds memory pages that are inactive. Swap space is used when your system decides that it needs […]

How to set up PostgreSQL on a Debian or Ubuntu in Vesta Control Panel

Set up PostgreSQL on a Debian or Ubuntu in Vesta Control Panel Step 1. Install PostgreSQL packages apt-get install postgresql postgresql-contrib phppgadmin Step 2. Download hba configuration wget http://c.vestacp.com/0.9.8/debian/pg_hba.conf -O /etc/postgresql/*/main/pg_hba.conf Step 3. Restart the server service postgresql restart Step 4. Set oracle user password su – postgres psql -c “ALTER USER postgres WITH PASSWORD […]

How to install ClamAV and SpamAssassin on a Debian or Ubuntu

This tutorial is created for servers with less than 3Gb of ram avaialbe. On “big” servers installation is fully automatic. * ClamAV installation apt-get install clamav-daemon wget http://c.vestacp.com/0.9.8/ubuntu/clamd.conf -O /etc/clamav/clamd.conf gpasswd -a clamav mail gpasswd -a clamav Debian-exim freshclam update-rc.d clamav-daemon defaults service clamav-daemon restart * SpamAssassin installation apt-get install spamassassin update-rc.d spamassassin defaults sed […]