alpha

Migrating from magnolia to wordpress was unfortunately necessary because of a lack of support and expertise for magnolia, and the version of magnolia installed for OpenVino is EOL.

This section describes the steps involved in installing wordpress.

Backup!

Even though we are not going to erase magnolia (yet), first check to make sure that an up-to-date backup of alpha exists:

 

[root@foxtrot alpha]# date Wed Apr 21 15:22:50 -03 2021 [root@foxtrot alpha]# pwd /ov_data/backups/alpha [root@foxtrot alpha]# ls -lat var/log/messages -rw------- 1 root root 6803187 Apr 20 23:36 var/log/messages

Make sure that the rsync backup script is not currently running on alpha:

 

[mbarrow@alpha ~]$ ps -ef | grep rsync mbarrow  13751 13678  0 20:23 pts/0    00:00:00 grep --color=auto rsync

Check for the last monthly archive:

[root@foxtrot alpha]# ls -l /ov_data/backups/monthly/ total 437978608 -rw-r--r-- 1 root root  5863489557 Apr  1 02:20 alpha.Apr.tar.bz2.cpt -rw-r--r-- 1 root root  3081689040 Aug 11  2020 alpha.Aug.tar.bz2.cpt -rw-r--r-- 1 root root  5858589854 Dec  1 02:25 alpha.Dec.tar.bz2.cpt -rw-r--r-- 1 root root  5863683890 Feb  1 02:24 alpha.Feb.tar.bz2.cpt -rw-r--r-- 1 root root  5922971391 Jan  1 02:02 alpha.Jan.tar.bz2.cpt -rw-r--r-- 1 root root  5866212383 Mar  1 01:59 alpha.Mar.tar.bz2.cpt -rw-r--r-- 1 root root  5856488010 Nov  1 01:59 alpha.Nov.tar.bz2.cpt -rw-r--r-- 1 root root  3081874851 Oct  1  2020 alpha.Oct.tar.bz2.cpt -rw-r--r-- 1 root root  3081559094 Sep  1  2020 alpha.Sep.tar.bz2.cpt

About Wordpress

WordPress is an open source website creation tool or content management system (CMS) based on PHP and MySQL. Matt Mullenweg and Mike Little programmed WordPress back on 2003. This is the most easiest static (can be developed for dynamic also) website content management system (or CMS) that exists.

WordPress is a free and license under GPLv2 (or later) from the Free Software Foundation. According to a survey report, WordPress was used by more than 23.3% of the top 10 million websites. WordPress is one of the most popular blogging system used on the Web.

To know more about WordPress, visit this link. To download latest WordPress from here.

Prerequisites

To install WordPress on our CentOS 7 server.

  • Apache as web server

  • PHP version 5.6 or greater

  • MySQL / MariaDB version 5.6 or greater as database

Also, make sure your firewall / iptables or SELinux is not blocking any port(s) which is required over here or you don’t have any problem with proper user permission.

To disable SELinux, type the following

First update the CentOS 7 server first:

[root@delta]# sudo yum clean all

Test Apache

To test apache:

 

 

Installing PHP 

To install PHP, open a terminal and issue the below command.

This will download and install PHP along with some others PHP modules which are required for WordPress.

Installing phpMyAdmin

To install phpMyAdmin:

After installing PHP, we need to restart the Apache or other web server in order to work with PHP. Type the following to do so.

To test whether you can access phpMyAdmin or not, open any web browser and type the following in the address bar.

You will see something like this.

 

 

Install Apache server.

First, clean-up yum:

 

Update our packages:

 

Install Apache:

 

Add to start:

 

Create mtb18.costaflores.com folder:

 

Create VirtualHost file in Apache config:

[root@alpha ~]# cd /etc/httpd/conf.d/
[root@alpha conf.d]# vi website.mtb18.costaflores.com.conf
[root@alpha conf.d]#

 

Restart Apache server: (Apache start/stop/status/restart)

 

Firewall Add ports:

 

Reload firewall rules:

 

List rules:

 

Check Apache is listen in port 80:

 

Install nmap:

 

Check what ports are listening for TCP connections from the network:

 

Install "mod_ssl" module:

 

Install Let's Encrypt Certificates:

 

 

Uninstall Let's Encrypt Certificates:

 

Install HAPROXY