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:
Code Block |
---|
[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:
Code Block |
---|
[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:
Code Block |
---|
[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
Code Block |
---|
setenforce 0 |
First update the CentOS 7 server first:
[root@delta]# sudo yum clean all
Code Block |
---|
[root@delta ~]# yum -y update |
Test Apache
To test apache:
Code Block |
---|
[root@delta ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/httpd.service.d
└─limits.conf
Active: active (running) since Wed 2021-04-21 23:26:41 CEST; 1min 51s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 972 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─ 972 /usr/sbin/httpd -DFOREGROUND
├─1775 /usr/sbin/httpd -DFOREGROUND
├─1776 /usr/sbin/httpd -DFOREGROUND
├─1777 /usr/sbin/httpd -DFOREGROUND
├─1778 /usr/sbin/httpd -DFOREGROUND
└─1779 /usr/sbin/httpd -DFOREGROUND
Apr 21 23:26:39 delta systemd[1]: Starting The Apache HTTP Server...
Apr 21 23:26:40 delta httpd[972]: AH00112: Warning: DocumentRoot [/var/www/html/magento/] does not exist
Apr 21 23:26:41 delta systemd[1]: Started The Apache HTTP Server. |
Installing PHP
To install PHP, open a terminal and issue the below command.
Code Block |
---|
sudo yum -y install php php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl |
This will download and install PHP along with some others PHP modules which are required for WordPress.
Installing phpMyAdmin
To install phpMyAdmin:
Code Block |
---|
sudo yum -y 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.
Code Block |
---|
sudo systemctl restart httpd.service |
To test whether you can access phpMyAdmin or not, open any web browser and type the following in the address bar.
Code Block |
---|
localhost/phpmyadmin |
You will see something like this.
Install Apache server.
First, clean-up yum:
...