Setup Debian Server on HPCloud for production


Here are quick steps to setup Debian server for production in HPCloud. I use Debian 6 on this example.

1. Install basic software

1
2
3
apt-get update && apt-get upgrade
apt-get install nmap vim bind9 mysql-server mysql-client apache2  php5 php-pear php5-suhosin php5-mysql python-dev nginx php5-common phpmyadmin apache2 zip unzip unrar-free imagemagick rsync python-pip dnsutils libxml2 libxml2-dev libxslt1-dev libbz2-dev libssl-dev p7zip-full rar lha unrar unzip unace unp bzip2 gzip patch htop screen
a2enmod rewrite

2. Install php5-fpm on Debian
First, edit “/etc/apt/sources.list” and add :

1
deb http://packages.dotdeb.org stable all

Then start adding GPG Key and install software by :

1
2
3
4
5
wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | apt-key add –
rm dotdeb.gpg
apt-get update
apt-get install php5 php5-fpm php-pear php5-common php5-mcrypt php5-mysql php5-cli php5-gd

3. Install NodeJS in Debian

1
2
3
4
5
6
7
8
9
apt-get update && sudo apt-get install git-core curl build-essential openssl libssl-dev
git clone https://github.com/joyent/node.git
cd node
git checkout v0.9.5 (or the version you want to build)
./configure –openssl-libpath=/usr/lib/ssl
make
sudo make install
node -v
npm -v

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.