Skip to main content

WordPress installation on Linux

Before starting the installation of WordPress I make sure you have added all the elements of LAMP. It is important to check and double check that your PHP module is actually working. The best way to verify this is to create a webpage with a small example code.

You can find more information about installation of LAMP from my previous posts:
Installing LAMP: http://runningwithcodes.blogspot.fi/2013/09/installing-lamp.html
Warming up with LAMP: http://runningwithcodes.blogspot.fi/2015/09/my-studies-with-linux-continue-and-our.html

Creating a MySql Database


mysql -u root -p


CREATE DATABASE wpcarola;

CREATE USER wpcarola@localhost IDENTIFIED BY 'verydifficultpassword';

I created a new database + user and configured the password.

GRANT ALL PRIVILEGES ON wpcarola.* to wpcarola@localhost IDENTIFIED BY 'verydifficultpassword';
Gave all privileges on this user.

FLUSH PRIVILEGES;
Reloaded the privaledges from the possible grant tables in the database.

EXIT
And finally exit the database.



Downloading WordPress


Since I had already created a public_html folder for xubuntu I decided to ran the installation under it.
After navigating to https://wordpress.org/download/ I copied the URL of the download link, entered my terminal and wrote:

wget https://wordpress.org/latest.zip  (wget + URL of download file)

unzip latest.zip
Once the download was complete I unzipped the file and wordpress folder appeared.



Configuring the settings and installation


I tried to open the configuration by writing the address based on the file's location (localhost/~xubuntu/wordpress) by using the browser and was ready to start the action!


I entered MySQL information which I had defined earlier.


I got a notification that the right configuration file would be needed. Luckily WordPress configured it for me so all I needed to do was following the instructions.


As guided I made the new wp-config file manually and pasted the text WordPress gave me there.

nano wp-config.php

I could now continue the installation and got to enter the information for my brand new WordPress.


Installing a new theme and plugin


The installation was done. After making a small "Hello World" post I took a closer look on my dashboard. I could already find some pre-installed themes but I fancied something different.

I selected theme from https://wordpress.org/themes/ and copied the URL.

cd wp-content
cd themes

wget https://downloads.wordpress.org/theme/pure-simple.1.1.3.zip
unzip pure-simple.1.1.3.zip


After unzipping I could find the theme from my own library.


The installation of a plugin was done with the same method.



From plugin directory I found Akismet that should automatically blog spam messages from the comment box of WordPress. From terminal I chose a plugin folder and installed Akismet:

wget https://downloads.wordpress.org/plugin/akismet.3.1.4.zip
unzip akismet.3.1.4.zip





Success! The plugin appeared to the library.

Sources 
Lectures by Tero Karvinen
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-12-04
https://miro.metsanheimo.fi/2015/10/08/installing-wordpress-along-with-plugins-themes-and-images/
Based on Linux course by Tero Karvinen (http://terokarvinen.com)

Comments

  1. This is my first visit to your blog, your post made productive reading, thank you. WordPress Installation

    ReplyDelete

Post a Comment

Popular posts from this blog

Building Love-O-Meter by using a temperature sensor

This "Love-O-Meter" is based on the tutorial by Arduino and it comes with the starter kit. It uses a temperature sensor to measure the warmth of your skin and then starts to turn on (or off) the LEDs  indicated by the temperature.

The components Arduino UNOBreadboardJumper wiresLEDs220 ohm resistorsTMP36 temperature sensor

Building the Circuit
At first I ran the "Hello World" for Arduino to make sure the environment would work as expected. Now I could start to connect the jumper wires between Arduino UNO and the breadboard.

As usually I connected the breadboard to power (5V) and to the ground (GND). I inserted the TMP36 on the breadboard so the rounded part of the sensor would face away from Arduino.

I attached 3 LED lights and the resistors and connected them with Arduino. The lights should react to the heat of the finger and if the temperature would get hot enough all the lights would be on and would also tell you if you are a hot lover or not...

The result and the …

Creating a Bootable USB for Kali Linux

If you are interested to see my documentation about making a bootable USB for Xubuntu please click here!

This USB was made by using the latest version of Xubuntu (the 14.04 release).

Downloading Kali Linux 
23.13. After navigating to https://www.kali.org/ I chose the version that would suit me the best and started downloading the ISO image for 64-Bit system.


USB imaging
22.40. I followed the guide offered by kali.org and used the commandsudo fdisk -lwithout plugging the USB yet. I needed to pay attention to the path of Device Boot (/dev/sdb1). After this I inserted USB and ran the same command again. Now I could see how the name of Device Boot had changed to sdc1. This would be my USB to use.

22.50 It only took a while to format the dd code correctly as the base was already given on Kali's web page. After running the correct command for the first time I got an error message "'/dev/sdc1': Permission denied". In these kind of situations I tend to ask sudo for help an…

Using a button to control the LED light

This time my project was to configure how to build a button that would turn on and off depending if the user is pushing it or not. While holding the button down the LED should stay on until removing the finger.



For this assignment I used the fallowing components:
Arduino UNO and USBJumper wiresLED lightBreadboardButton10k ohm resistor
At first I run the "Hello World" for Arduino and made sure that the LED I was using worked properly (read my previous post).

I attached the button in the middle of the breadboard so the legs were touching the both "sides" of it.


Now I started to connect the jumper wires between the Arduino UNO and the breadboard. In order to get it working like in the sample code (Ardoino > Examples > 02.Digital > Button)
I linked the wires with Arduino's 5V (red wire, positive) and ground (black wire, negative) to the equal holes on the very corner of the breadboard (+ and -). I put the white jumper wire to connect the positive circuit to t…