Setup WordPress on CentOS 7/Fedora 2x with MySQL 5.6 and PHP5.6

In this article we will setup WordPress from scratch in just a few easy steps. I will use a vps with centos 7.

Step 1) Install Apache web server

yum -y install httpd
systemctl start httpd.service
systemctl enable httpd.service

Step 2) Install PHP 5.6

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum -y install php56w php56w-opcache php56w-mysql php56w-xml
systemctl restart httpd.service

Step 3) Install Mysql 5.6

yum -y install http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum -y install mysql-community-server
systemctl start mysqld.service
systemctl enable mysqld.service

Step 4) Install WordPress

1 – Download latest WordPress

cd /var/www/html
wget https://wordpress.org/latest.zip
unzip latest.zip
rm -rf latest.zip
cp -rf wordpress/* /var/www/html/
rm -rf wordpress/

2 – Setup permissions:

chown -R apache:apache /var/www/html/*
chown  apache:apache /var/www/html

3 – Create MySQL Database, we will call ours ‘wordpress’, you can replace the word ‘wordpress’ below with whatever you would like your database to be called

mysqladmin create wordpress

Step 5) Point your browser to http://Your-Server-IP and you will see the WordPress

Read More


Getting started with Ansible on CentOS 6

What is Ansible?

Long story short, Ansible is a tool which helps server administrators automate and execute tasks on multiple servers at the same time. Imagine having 20 Linux servers, each needing an installtion

of a web server. In the good old days, you would have to login to each server individually and perform the task, now though you can do it with a single command.

Why is Ansible preferred – other automation tools require you to install additional software on your remote servers, while Ansible does the job through SSH, which means no additional software on your target servers, less resources/low overhead, less things to troubleshoot then things go wrong.

Install Ansible

We will refer to the machine we install Ansible on as the command server. This could be your own laptop, stand alone

Read More


Setup EasyEngine on Debian/Ubuntu

EasyEngine (ee) is a Linux shell-script to install and manage wordpress-nginx websites in one go. Using EasyEngine, you can install Nginx, PHP, MySQL, Postfix, phpMyAdmin and their dependencies in one shot easily without the help of a System administrator. It makes very easy to install and manage wordpress-nginx websites, and you don’t have to manually install each packages and memorize all commands. Everything will be done automatically on the background. EasyEngine will work on Ubuntu LTS versions such as Ubuntu 12.04/14.04, and Debian 6/7 version. Unfortunately, there is no support for RPM based systems like CentOS, and there is no future plan to make it work on RPM based systems right now.

Features

The following are the notable features of EasyEngine:

  • Install Nginx, php, mysql, phpmyadmin and all its dependencies in

    Read More


Set Up a Remote Database to Optimize Performance with MySQL on Ubuntu 16.04

Introduction

As your application or website grows, you may come to a point where you’ve outgrown your current server setup. If you are hosting your web server and database backend on the same machine, it may be a good idea to separate these two functions so that each can operate on its own hardware and share the load of responding to your visitors’ requests.

In this guide, we’ll discuss how to configure a remote MySQL database server that your web application can connect to. We will be using WordPress as an example so that we have something to work with, but the technique is widely applicable to any MySQL-backed application.

Prerequisites

Before beginning this tutorial, you will need:

  • Two Ubuntu 16.04 servers, with a non-root sudo-enabled user, and UFW firewall enabled
  • On one

    Read More


Install LEMP (nginx, MySQL or MariaDB, PHP) Stack On Debian 8

LEMP is a combination of the operating system and open-source software stack. The acronym LEMP came from the first letters of Linux, Nginx(engine-x) HTTP Server, MySQL/MariaDB database, and PHP/Perl/Python.

In this tutorial, let us see how to install lemp stack on Debian 8, and its previous versions such as Debian 7 and Debian 6 etc.

Install LEMP Stack On Debian

1. Install Nginx

Nginx (pronounced as engine-x) is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server written by Igor Sysoev.

Let us begin to install nginx.

service apache2 stop

apt-get remove --purge apache2 apache2-utils apache2.2-bin apache2-common

apt-get autoremove

apt-get autoclean

First, switch to root user using command:

su

Note: If another web server like apache2 was installed in your system, remove it first to avoid conflicts. To uninstall apache, run the

Read More