Skip to main content

Install WordPress on Debian – Most popular CMS for blogs

WordPress is clearly the most popular blog platform / Content Management System.

Indeed it has all to please. Easy installation, well supported, big community, a lot of plugins, free, multilingual, etc….

Of course, some others CMS are very popular for blogs too like Dotclear but WordPress might be the one that does the most communication around its product.


So let’s see how to install this CMS. (Others CMS should follow the same principle)



Obviously, you need to have a proper HTTP server, PHP, database combo ready. In my case I’m using a LAMP configuration, Linux Apache, MySQL, PHP. If you haven’t install that, just check my previous tutorial on how to install a LAMP combo to host your own website.

Once done, most probably you will like to have a dedicated folder/database for your wordpress website.

The second command will change the owner of the folder (Previously root) by the apache user www-data.

Then download the latest WordPress archive inside your previously created folder:

Now, you will need to untar the archive in the folder. However the archive latest.tar.gz includes the subdirectory that includes all the files.

If you just untar with the regular:

You gonna have a folder wordpress in your /var/www/myblog

But we want to have all the needed files in /var/www/myblog directly, not in an additional subdirectory.

So you will have to move all the files from myblog/wordpress to myblog/ and remove the folder wordpress afterward.

But actually, you could directly untar all the content of wordpress folder directly in your current folder myblog with 1 command:



Now you will need to fulfill the wordpress conf file with your database information in order to launch the web-based installation interface of WordPress

Still in your /var/www/myblog folder run:

to use & modify the wp-config sample file, and modify those lines:

If you haven’t created a database yet for your website, I strongly recommend you to use PHPMyAdmin to easily do it. You can follow my previously created tutorial on how to install PHPMyAdmin and set up a database and user.

Once done, just save your wp-config file and point your web-browser to your server IP such as or point to your domain name/subdomain if you have configured a Virtualhost (Vhost) such as http://blog.mywebsite.tld for example.

If you haven’t done that, you can refer to the point 4 of my LAMP tutorial, dedicated on Virtualhost configuration.

And finally, just follow the quick web-based setup.

You should now have your blog ready !



Host your own server – Where do we start?

So you wish to install your own server to run may be a website or your own mail, or a specific application or service (Subsonic? Minecraft?…)

You will obviously have few requirement to match based on your needs.



You could have a dedicated server using OVH or any other provider, but I’ll assume your here to use your own hardware and host it at home.

In fact, a server does not need to be very powerful, so you could reuse an old laptop or computer if you want. For example a Rapsberry Pi (Based on Arm with 256Mo Ram) is enough to host quite a few services. But don’t except high reactivity tho.

My first dedicated server@HOME was a custom ITX (Small size) config based on:

Case: Thermaltake Element Q

Motherboard: Intel DG41MJ (ITX socket 775)

Processor: Intel E5300 2.5Ghz


250GB 2.5 7200tr/m Hard Drive

Paid 250e 4 years back

And I had a very good experience with it and I was hosting few websites with modest trafic (few hundreds per day) and dozen of services such as Subsonic, Ajaxplorer, FTP, Mails, …. No need to be much faster in fact.

Although my config now is way too powerfull for my needs (But it was my own gift xD)

I’m now having a i7 2600 with 16GB Ram + OCZ Vertex 3 SSD 64gb + 2x2To Storage (For duplication). I actually really enjoy using SSD in my machines now (Fast load time, very good performance with MySQL databases or heavy I/O tasks)


Obviously the faster your Internet connection is, the better but I would say there is no specific minimum, it will just limit your type of services and traffic.

If you could have at least 128kb/s (16ko/s) upload speed with your ADSL, that would be a good start. Download will not matter much usually, as upload is always the bottleneck in ADSL. (If you are having cables, ADSL2, VDSL2, or even FTTx, lucky you. In that case you will probably be very comfortable with upload)The server described earlier was on an ADSL2 connection at 16M/1M.

Now I’m having FTTB with 100M/40M (So much faster…indeed)

Another important aspect of your network will be your router, to route correctly the needed traffic to your server. You will need to open several ports to let enter the traffic.

Operating System:

GNU/Linux is THE Operating System for servers. Widely used, very stable and with good performance, it is a good choice to run your server on.

In the GNU/Linux family, it exists a lot of “flavor”, Ubuntu being the most popular and very easy to handle. Ubuntu has a dedicated server version called Ubuntu Server and will run quite well. But although I’ve started with Ubuntu Server, I’m quickly moved to Debian and could only strongly recommend you to give it a try.

Ubuntu being based on Debian, you will not feel much the difference as a server version. However I felt Debian to be much more stable and reactive than Ubuntu. However Debian got 3 majors branches (Stable, Testing and Unstable) with different version of application. Stable being based on very robust and tested set of application, while Testing has more up to date and Unstable being cutting edge version, with possible bugs for these 2 versions.

You want to play safe? I suggest you to use Debian Stable and if an application is not up to date enough, to install a more updated version from backport repositories.