The tool we are going to use is yum-utils. First, you need to install yum-utils
# yum install yum-utils
# yumdownloader --destdir=/tmp --resolve elinks
Linux is for everybody. Lets enjoy it.
The tool we are going to use is yum-utils. First, you need to install yum-utils
# yum install yum-utils
# yumdownloader --destdir=/tmp --resolve elinks
There are 3 main components to be installed, before wordpress can be deployed, which are apache2, php and mariadb-server.
Install apache2
$ sudo apt install apache2 libapache2-mod-php
$ sudo apt install php php-curl php-gd php-mbstring php-xml php-xmlrpc php-mysql
$ sudo apt install mariadb-server
$ mysql -u root
MariaDB [none]> create database mywordpressdb;
MariaDB [none]> grant all on mywordpressdb.* to mywordpressuser@localhost identified by 'password';
MariaDB [none]> flush privileges;
$ mysql -u mywordpressuser -p mywordpressdb
MariaDB [wordpress_db]>
$ wget -c https://wordpress.org/latest.tar.gz
$ tar -xvf latest.tar.gz
$ sudo mv wordpress /var/www/html/mywordpress
$ sudo chown -R www-data /var/www/html/mywordpress
3 main components to make joomla work are nginx, mariadb and php.
Install nginx
$ sudo apt install nginx
Install mariadb
$ sudo apt install mariadb-server
Install php and required components
$ sudo apt install php php-zlib php-xml php-json php-mcrypt
Download joomla
$ wget -c https://downloads.joomla.org/cms/joomla3/3-8-10/Joomla_3-8-10-Stable-Full_Package.tar.bz2
Extract joomla
$ mkdir joomla
$ tar -xvf Joomla_3-8-10-Stable-Full_Package.tar.bz2 -C joomla
Deploy to DocumentRoot
$ sudo mv joomla /var/www/html/
$ sudo chown www-data -R /var/www/html/joomla
Create database
$ sudo mysql
MariaDB [(none)]> create database joomla;
MariaDB [(none)]> grant all on joomla.* to joomla@localhost identified by 'password';
MariaDB [(none)]> flush privileges;
Edit nginx config as per below:
server {
listen 80;
listen [::]:80;
root /var/www/html/joomla;
index index.php index.html index.htm;
server_name 192.168.10.100;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Test for syntax error
$ sudo nginx -t
Restart nginx
$ sudo systemctl restart nginx
Browse 192.168.10.100 and follow the joomla installation wizard until finish.
To see existing security group
$ openstack security group list
To create a new security group named ssh-allow
$ openstack security group create ssh-allow
$ openstack security group rule create --ingress --proto tcp --dst-port 22 ssh-allow
$ openstack security group show ssh-allow --fit-width
Mongodb needs at least 2 servers, preferably 3, to setup a proper mongodb replication. In this article, we will use below hostname as our mongodb nodes:
192.168.0.10 mongo-1 (primary)
192.168.0.11 mongo-2
192.168.0.12 mongo-3
Make sure mongodb is installed in all servers.
Set mongodb repo:
mongo-1: $ cat
>name=MongoDB Repository
>baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
>gpgcheck=0
>enabled=1
>EOF
mongo-1: $ sudo mv mongodb.repo /etc/yum.repos.d/
Install mongodb:
mongo-1: $ sudo yum install -y mongodb-org
Set /etc/hosts for each server as below:
mongo-1: $ cat