You are here

Part I: Linux Debian

Personally I prefers to use Debian Linux when building web-servers, but you could as well use any other flavor of Linux. If you want to use Debian 7 you should first test that your site runs with PHP 5.4 as that is the default version in Debian 7 (it can be downgraded).

Historically the stable releases of Debian comes without the newest version of the software required, so to remedy this I use the Dotdeb repository.

Lets get off the ground by adding the Dotdeb repository to our package manager and upgrade our system.

~$ echo "deb http://packages.dotdeb.org wheezy all" >> /etc/apt/sources.list
~$ echo "deb-src http://packages.dotdeb.org wheezy all" >> /etc/apt/sources.list
~$ wget http://www.dotdeb.org/dotdeb.gpg
~$ cat dotdeb.gpg | sudo apt-key add - && rm dotdeb.gpg
~$ apt-get update
~$ apt-get upgrade

If you not already have installed the basic packages needed to run a PHP based web-server this is the time to do so.

~$ apt-get install apache2-mpm-worker php5 php5-cli php5-gd php5-mysql php5-sqlite mysql-server php-pear php5-dev

Read more

If you want a more detailed walk through see my previous article Drupal 7 and Aegir server setup. It assumes that you are installing an Aegir based stack, if you do not which to run Aegir simply skip the Aegir parts of the article.

References

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.