Meselelerim-iz-
Epeycesi, şaka ciddi karışık
Anasayfa/Homepage Hakkımda/About Me Türkçe Yazılar Posts in English

Step by Step Nginx + Wordpress-mu Blog Service Creation - Step 1: Install OS, Firewall, Nginx, Mysql, PHP

Saturday, 25 Apr 2009

We will discuss here and show a how-to to create a server for serving blogs with wordpress-mu.

First of all, be prepared for a little time consuming and tiresome work. Let’s Begin!

Firstly, we need a server, it can be a dedicated or vps bleong to your expectations, i prefer to start with a vps since there is no guarantee that i will succeed in this business :)

By the way, i highly recommend my VPS provider Linode. These guys really rock!

Whatever you choose, firstly we have to have an os. I prefer Ubuntu (8.10) because of its easiness, and rest of the article is assumes you preferred that also.

If you using a vps, then probably you will create a new distro with hdd and swap attached from some control panel.

Now, we can begin the real thing.

#ssh your.servers.ip.address (For Windows users like me, there is PuTTY.)

When connected to the box, i see, the timezone is different from mine. Let’s fix that.

#ln -sf /usr/share/zoneinfo/Europe/Istanbul /etc/localtime

Here, you must select your area after zoneinfo/.

After that, we install a easy-to-use firewall ufw (uncomplicated firewall), it’s iptables based and very easy to configure and use.

#apt-get update

#apt-get install ufw

Then, before activating firewall, we must allow ssh for not being kicked.

#ufw allow OpenSSH

Then, enable the firewall. #ufw enable

Now, it’s time to install some everyday tools.

#apt-get install nano wget htop lynx zip

nano is a text editor (i know vim is far more better but i can’t use it effectively), wget is a download tool, htop is a better top, lynx is a text-based web browser, zip is for creating and decompressing files which compressed with that format.

Now, it’s time to install webserver. We will install with apt, but it’s always possible and generally better choice compiling from source. Ubuntu repositories have 0.6.32 version of nginx but actual stable release is 0.6.36.

#apt-get install nginx

#ufw allow 80 (Open port 80 to connections)

#apt-get install php5-common php5-cgi php5-mysql php5-cli (php install)

#apt-get install mysql-server mysql-client (mysql install, that will ask a password for database root access, it must be something complex)

hasan.cansiz.info @ 2009