WordPress Howto

M A T E R I A L S   &   M E T H O D S :
H O W  T O  B R E W  Y O U R  O W N  P E R S O N A L  W O R D P R E S S  W E B S I T E

This document describes what was needed to setup this web presence. It can serve as a template to setup your own web presence. Note that there are many different ways (easier, less technical) to setup a web presence (Facebook for example). However this method is much more fun to implement. Unfortunately, it is not free of costs. The ingredients for this site are a domain name (sirä.ch), a server hoster (Hetzner Online), a Linux server and the wordpress blogging framework.

1) At first, a virtual server was booked from a server hoster (Hetzner Online) and a Linux server was installed. This is way much easier than you might think. The most important ingredients to achieve this is a credit card, a web browser and an email account. At Hetzner Online the most basic offer was booked, which is a vServer VQ 7. This is a virtual server with a virtual 20GB HD with 512 MB virtual memory with root (= administrator) access to the operating system. This roughly costs 8 Euro a month. In your web browser, press the order button, enter your adress and email and your credit card info and shortly after, you are in posession of your own server with your own IPv4 and IPv6 address. Hetzner sends you a mail with all the instructions and user credentials on how to access your new virtual server. Hetzner has different Images with different server operating systems to choose from. You do not even need to install your server, you just choose the OS of your choice and deploy the server by one mouse click, your server will be deployed from an image automatically. Like this you get a virtual server running in no more than five minutes. For this website a Debian Linux image was chosen.

3) To install a WordPress driven website on a Linux operating system. In order to run, WordPress needs Apache as a webserver, PHP interpreter as a scripting language and MySQL as a database, as a site admin you need a FTP server to maintain the site. Thus before WordPress can be installed, as a prerequisite, Apache, PHP, MySQL and FTP server need to be installed on your Linux box.

1) Prerequisits

a) install Apache

http://wiki.debian.org/Apache

apt-cache search apache | less

This will list all the Apache related software available in the Debian repositories. There’s “apache” along with all its related packages (-doc, -dev, -common, -perl, …).

Installing apache2 is as easy as running:

apt-get install apache2
apt-get install apache2-doc

To check succesful installation go to:

http://localhost

you will see the message:

——————————————————————————-
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.

——————————————————————————-
This is a success, it means that your Apache web server is up and running !
You can start and stop appache using the following start / stop command:

/etc/init.d/apache2 stop
/etc/init.d/apache2 start

b) install mySQL

http://wiki.debian.org/LaMp

http://wiki.debian.org/MySql

Install the packages mysql-server and mysql-client (which depends on the current “best” version of mysql).

apt-get install mysql-server mysql-client

database amin username:
database admin password for root was set to:

to logon to mySQL db use:

mysql –user= –password=

to create a new db user account

CREATE USER ‘username’@’hostname’ IDENTIFIED BY ‘mypassword’;

wordpress username:
password for user wordpress:

now create a new db wih the name wordpress:

CREATE DATABASE wordpress;

now we have to grant rights for db wordpress to user :

GRANT ALL ON wordpress.* TO ”@’localhost’;

c) install PHP

apt-get install php5 php5-mysql libapache2-mod-php5

d) install proftpd as a FTP server:

apt-get install proftpd
choose option “standalone”

useradd
passwd

Congratualtions, your done, you have properly installed and prepared your LAMP (Linux-Apache-MySQL-PHP) Server, now you are ready to install the main software, WordPress !

2) Installing WordPress

username:
password:

Leave a comment

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