Install Webmin Control Panel on CentOS 6

Webmin is an open source web based system configuration application for Linux system administration, with the help of this tool we can manage internal system configuration such as setting up user accounts,disk
services configuration like Apache, DNS, PHP, MySQL and more. Webmin applications is based on Perl module and it uses TCP port 10000 with OpenSSL library.

Install webmin

Install required packages

yum -y install perl-Net-SSLeay

yum -y install

then

yum -y install http://download.webmin.com/download/yum/webmin-1.740-1.noarch.rpm

Add IP you allow to access the webmin

vi /etc/webmin/miniserv.conf

add follows to the end (IP you allow to access)

allow=ip_address/24

Restart the webmin

/etc/rc.d/init.d/webmin restart

Access webmin

https://(hostname or IP address):10000

That all!!

How to Uninstall WHMSonic

The process for uninstalling WHMSonic is much the same as the process for installing WHMSonic

 

Login to your server via SSH then run the following command via Linux:

cd /root/; wget http://www.whmsonic.com/setupr/uninstall.sh; chmod +x uninstall.sh; ./uninstall.sh

then, WHMSonic will be uninstalled.

How to Install WHMSonic

WHMSonic can be installed by the root user under the root SSH. After you run the following command as a root user, your software will be automatically installed and you can access to WHMSonic under the WHM root left menu at the bottom.

Requirements

A dedicated server or VPS with WHM/cPanel.

 

Installation:
Login to your servers root SSH and copy/paste the following command.

wget -N http://whmsonic.com/setupr/installr.sh; sh installr.sh;

You will receive a final notification after the installation.

How would I uninstall WHMSonic?

Install cPanel on CentOS

To install cPanel & WHM on your server, run the following command:

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Note:

We recommend that you run the installation command within a Linux screen session. The Linux screen command allows you to create a shell session that will stay active through a network disruption.

  1. To determine whether your operating system contains screen and it exists in your path, run the which screen command. The system will return /usr/bin/screen if screen exists on your system and whether it exists in your path.
    • If your system does not contain screen, you can install it with the yum install screen command.
    • To run a screen session, enter the screen command. Then, run the installation command.
  2. If your session disconnects for some reason, log back in to your server and run the screen -r command. This will reconnect you to your screen session.

How to Install NginxCP on cPanel/WHM

Nginx is a fantastic, free, open-source, high-performance HTTP server and reverse proxy. It is one of the most popular tools used to power many websites, and can be implemented quite easily on a new server or live production server.


First of all, with the latest version on NginxCP, regardless of whether you have IPv6 addresses, you must have the service enabled. Otherwise, the latest version of NginxCP will not run, and you will be left scratching your head, and uninstalling. Below is the error message you will see in such instances –

nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)

Enable IPv6 on RHEL 5.0 / RHEL 6.0

First, we need to enable IPv6 in /etc/sysconfig/network]

nano /etc/sysconfig/network

It will look something like this –

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=server.example.info
DOMAINNAME=example.info

You need to change NETWORK_IPV6 to yes

NETWORKING_IPV6=yes

Next, you need to ensure that disabling IPv6 in /etc/modprobe.conf is removed or commented out. If these lines aren’t there, you can skip this step.

nano /etc/modprobe.conf

May look similar to this –

alias eth0 r8168
alias scsi_hostadapter ata_piix
alias scsi_hostadapter1 ahci
alias net-pf-10 off
alias ipv6 off
options ipv6 disable=1


Comment out or delete the following: allias net-pf-10 off, alias ipv6 off, options ipv6 disable=1

alias eth0 r8168
alias scsi_hostadapter ata_piix
alias scsi_hostadapter1 ahci
# alias net-pf-10 off
# alias ipv6 off
# options ipv6 disable=1

If you have not updated modprobe.conf, then you just need to restart the network service

service network restart

If you have updated modprobe.conf, you will need to restart your system for the changes to be made<

reboot

Once the server comes back online, you will then need to recompile EasyApache so that everything works correctly with the IPv6 configuration. To do so

Login to WHM, go to EasyApache and click Build Profile Now.

Now, you’re ready to install NginxCP

To install NginxCP on your WHM, login to PuTTy and do the following –

cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller install

Once the installation has completed, reboot the httpd service

/etc/init.d/httpd restart


Uninstall NginxCP

How to Install and Configure TaskBoard on Ubuntu 18.04 LTS

TaskBoard is an open source Kanban-inspired app that can be used to keep track of things that need to get done. It comes with a built-in web interface for keeping track of tasks. It is simple, easy to install and works on almost any web hosts. TaskBoard allows you to create unlimited board, projects and customize columns within boards. TaskBoard provides lots of features such as, basic user management, RESTful API, Items display complete history of activities and Full history of all board activity.

In this tutorial, we will learn how to install TaskBoard on Ubuntu 18.04 server.

Requirements

  • A server running Ubuntu 18.04.
  • A root password is set up to your server.

Getting Started

The first step is to become the root user on your system. To do so, run the command:

sudo -s

Before starting, you will need to update your system with the latest version. You can do this by running the following command:

sudo apt-get update -y
sudo apt-get upgrade -y

Once your server is updated, restart your server to apply the changes.

Install Java

First, you will need to install java to your system. By default, the latest version of Java is not available in the Ubuntu 18.04 default repository. So, you will need to add the java repository first.

You can do this with the following command:

add-apt-repository ppa:webupd8team/java

Once the repository is installed, you can install the java with the following command:

apt-get install oracle-java8-installer -y

After installing Java, check the version of java with the following command:

java -version

You should see the following output:

java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

Once you have done, you can proceed to the next step.

Install Apache, SQLite, and PHP

TaskBoard runs on a web server, written in PHP and use SQLite to store their data. So, you will need to install Apache, SQLite, PHP and other required dependencies to your server. You can install all of them with the following command:

apt-get install apache2 sqlite3 php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-common php7.2-json php7.2-readline php7.2-sqlite3 libaio1 libapr1 libhtml-template-perl libaprutil1-dbd-sqlite3 libaprutil1-ldap libaprutil1 libdbi-perl libterm-readkey-perl curl libwrap0 unzip wget -y

Once all the packages are installed, start apache service and enable it to start on boot with the following command:

systemctl start apache2
systemctl enable apache2

Install TaskBoard

First, download the latest version of TaskBoard from Git repository with the following command:

cd /tmp
wget https://github.com/kiswa/TaskBoard/archive/master.zip

Once the download is completed, extract the downloaded file with the following command:

unzip master.zip

Next, move the extracted directory to the Apache web root directory with the following command:

mv TaskBoard-master /var/www/html/taskboard

Next, change the directory to the taskboard and update the composer with the following command:

cd /var/www/html/taskboard
./build/composer.phar self-update

You should see the following output:

Updating to version 522ea033a3c6e72d72954f7cd019a3b75e28f391.
    Downloading: 100%         
Use composer self-update --rollback to return to version feefd51565bb8ead38e355b9e501685b5254d0d5

Next, install the php dependencies with composer by running the following command:

./build/composer.phar install

You should see the following output:

Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 5 installs, 0 updates, 0 removals
  - Installing firebase/php-jwt (1.0.0): Downloading (100%)         
  - Installing gabordemooij/redbean (v4.2.1): Downloading (100%)         
  - Installing ircmaxell/password-compat (v1.0.4): Downloading (100%)         
  - Installing phpmailer/phpmailer (v5.2.14): Downloading (100%)         
  - Installing slim/slim (2.6.2): Downloading (100%)         
phpmailer/phpmailer suggests installing league/oauth2-client (Needed for XOAUTH2 authentication)
phpmailer/phpmailer suggests installing league/oauth2-google (Needed for Gmail XOAUTH2)
slim/slim suggests installing ext-mcrypt (Required for HTTP cookie encryption)
Generating autoload files

Next, build JavaScript and CSS with the following command:

./build/build-all

You should see the following output:

Building...
 Installing dependencies
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
 Compiling lib JS files...
 Minifying lib CSS files...
 Compiling app JS files...
 Minifying app CSS files...
 Updating index.html...
Build Complete

Next, give proper permissions to the taskboard directory with the following command:

chown -R www-data:www-data /var/www/html/taskboard
chmod -R 755 /var/www/html/taskboard

Once you have done, you can proceed to configure Apache for TaskBoard.

Configure Apache for TaskBoard

Next, you will need to create an Apache virtual host file for TaskBoard. You can do it with the following command:

nano /etc/apache2/sites-available/taskboard.conf

Add the following lines:

 VirtualHost *:80
    ServerAdmin [email protected]
    DocumentRoot "/var/www/html/taskboard"
    ServerName 1example.com
    Directory "/var/www/html/taskboard"
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    /Directory
    ErrorLog "/var/log/apache2/taskboard-error_log"
    CustomLog "/var/log/apache2/taskboard-access_log" combined
/VirtualHost

Save and close the file. Then, enable the virtual host file with the following command:

a2ensite taskboard.conf

Next, enable Apache rewrite module and restart Apache web service with the following command:

a2enmod rewrite
systemctl restart apache2

Access TaskBoard

TaskBoard is now installed and configured, it’s time to access TaskBoard web interface.

Open your web browser and type the URL http://example.com. You will be redirected to the following page:

Provide default administrator username and password as admin / admin and click on the Sign In button. You should see the following page:

Now, click on the Settings button and change the default password as you wish, then click on the Update password button. Next, click on the Add Board button, you should see the following page:

Next, provide Board Name and Columns and click on the + button, you should see the following page:

Now, click on the Add Board button to add the board.

Next, navigate to home page and select your newly created board. You should see the following page:

Congratulations! you have successfully installed TaskBoard on Ubuntu 18.04 server. You can now keep track of your task using TaskBoard. Feel free to ask me if you have any questions.

How to Install Shopware with NGINX and Let’s Encrypt on CentOS 7

Shopware is the next generation of open source e-commerce software. Based on bleeding edge technologies like Symfony 3, Doctrine2 and Zend Framework Shopware comes as the perfect platform for your next e-commerce project. This tutorial will walk you through the Shopware Community Edition (CE) installation on CentOS 7 system by using NGINX as a web server.

Requirements

Make sure your system meets the following minimum requirements:

  • Linux-based operating system with NGINX or Apache 2.x (with mod_rewrite) web server installed.
  • PHP 5.6.4 or higher with ctype, gd, curl, dom, hash, iconv, zip, json, mbstring, openssl, session, simplexml, xml, zlib, fileinfo, and pdo/mysql extensions. PHP 7.1 or above is strongly recommended.
  • MySQL 5.5.0 or higher.
  • Possibility to set up cron jobs.
  • Minimum 4 GB available hard disk space.
  • IonCube Loader version 5.0.0 or higher (optional).

NOTE: Shopware is currently up to PHP 7.2.x compatible.

Prerequisites

  • An operating system running CentOS 7.
  • A non-root user with sudo privileges.

Initial steps

Check your CentOS version:

cat /etc/centos-release

Set up the timezone:

timedatectl list-timezones
sudo timedatectl set-timezone 'Region/City'

Update your operating system packages (software). This is an important first step because it ensures you have the latest updates and security fixes for your operating system’s default software packages:

sudo yum update -y

Install some essential packages that are necessary for basic administration of the CentOS operating system:

sudo yum install -y curl wget vim unzip socat epel-release

Step 1 – Install PHP and PHP extensions

Setup the Webtatic YUM repo:

sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Install PHP, as well as the necessary PHP extensions for Shopware:

sudo yum install -y php72w php72w-cli php72w-fpm php72w-common php72w-mysql php72w-curl php72w-json php72w-zip php72w-gd php72w-xml php72w-mbstring php72w-opcache

To show PHP compiled in modules, you can run:

php -m

ctype
curl
exif
fileinfo
. . .
. . .


Check the PHP version:

php --version
# PHP 7.2.14 (cli) (built: Jan 12 2019 12:47:33) ( NTS )
# Copyright (c) 1997-2018 The PHP Group
# Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
#     with Zend OPcache v7.2.14, Copyright (c) 1999-2018, by Zend Technologies

Start and enable PHP-FPM service:

sudo systemctl start php-fpm.service
sudo systemctl enable php-fpm.service

We can move on to the next step, which is the IonCube Loader installation.

Step 2 – Install IonCube Loader (optional)

Download IonCube Loader:

cd /tmp  wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

Extract the loader:

tar xfz ioncube_loaders_lin_*.gz

Find the PHP extensions directory on the system by running the command below:

php -i | grep extension_dir
# extension_dir = /usr/lib64/php/modules = /usr/lib64/php/modules

Copy the ionCube Loader into the PHP extensions directory:

sudo cp /tmp/ioncube/ioncube_loader_lin_7.2.so /usr/lib64/php/modules

Include the loader via PHP configuration:

sudo vim /etc/php.ini

Then add a line in the file to include ionCube loader. It can be anywhere in the file below [PHP] line:

zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_7.2.so

Save the file and restart PHP-FPM:

sudo systemctl restart php-fpm.service

Step 3 – Install MariaDB and create a database for Shopware

Install MariaDB database server:

sudo yum install -y mariadb-server

Check the MariaDB version:

mysql --version
# mysql  Ver 14.14 Distrib 5.7.26, for Linux (x86_64) using  EditLine wrapper

Start and enable MariaDB service:

sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service

Run mysql_secure installation script to improve MariaDB security and set the password for MariaDB root user:

sudo mysql_secure_installation

Answer each of the questions:

Would you like to setup VALIDATE PASSWORD plugin? N
New password: your_secure_password
Re-enter new password: your_secure_password
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y

Connect to MariaDB shell as the root user:

sudo mysql -u root -p
# Enter password

Create an empty MariaDB database and user for Shopware and remember the credentials:

mysql CREATE DATABASE dbname;
mysql GRANT ALL ON dbname.* TO 'username' IDENTIFIED BY 'password';
mysql FLUSH PRIVILEGES;

Exit from MariaDB:

mysql exit

Replace dbname, username and password with your own names.

Step 4 – Install Acme.sh client and obtain Let’s Encrypt certificate (optional)

Securing your website with HTTPS is not necessary, but it is a good practice to secure your site traffic. In order to obtain a TLS certificate from Let’s Encrypt we will use acme.sh client. Acme.sh is a pure Unix shell software for obtaining TLS certificates from Let’s Encrypt with zero dependencies.

Download and install acme.sh:

sudo su - root
git clone https://github.com/Neilpang/acme.sh.git
cd acme.sh 
./acme.sh --install --accountemail [email protected]
source ~/.bashrc
cd ~

Check acme.sh version:

acme.sh --version
# v2.8.1

Obtain RSA and ECC/ECDSA certificates for your domain/hostname:

# RSA 2048
acme.sh --issue --standalone -d example.com --keylength 2048
# ECDSA
acme.sh --issue --standalone -d example.com --keylength ec-256

If you want fake certificates for testing you can add –staging flag to the above commands.

After running the above commands, your certificates and keys will be in:

  • For RSA: /home/username/example.com directory.
  • For ECC/ECDSA: /home/username/example.com_ecc directory.

To list your issued certs you can run:

acme.sh --list

Create a directory to store your certs. We will use a directory /etc/letsencrypt.

mkdir -p /etc/letsecnrypt/example.com
sudo mkdir -p /etc/letsencrypt/example.com_ecc

Install/copy certificates to /etc/letsencrypt directory.

# RSA
acme.sh --install-cert -d example.com --cert-file /etc/letsencrypt/example.com/cert.pem --key-file /etc/letsencrypt/example.com/private.key --fullchain-file /etc/letsencrypt/example.com/fullchain.pem --reloadcmd "sudo systemctl reload nginx.service"
# ECC/ECDSA
acme.sh --install-cert -d example.com --ecc --cert-file /etc/letsencrypt/example.com_ecc/cert.pem --key-file /etc/letsencrypt/example.com_ecc/private.key --fullchain-file /etc/letsencrypt/example.com_ecc/fullchain.pem --reloadcmd "sudo systemctl reload nginx.service"

All the certificates will be automatically renewed every 60 days.

After obtaining certs exit from root user and return back to normal sudo user:

exit

Step 5 – Install and configure NGINX

Install the NGINX web server:

sudo yum install -y nginx

Check the NGINX version:

nginx -v

Start and enable Nginx service:

sudo systemctl start nginx.service
sudo systemctl enable nginx.service

Configure NGINX for Shopware. Run sudo vim /etc/nginx/conf.d/shopware.conf and add the following configuration:

server {
    listen 80;
    listen 443 ssl;
    
    server_name example.com;
    root /var/www/shopware;
    ssl_certificate /etc/letsencrypt/example.com/fullchain.cer;
    ssl_certificate_key /etc/letsencrypt/example.com/example.com.key;
    ssl_certificate /etc/letsencrypt/example.com_ecc/fullchain.cer;
    ssl_certificate_key /etc/letsencrypt/example.com_ecc/example.com.key;
    index shopware.php index.php;

    location / {
        try_files $uri $uri/ /shopware.php$is_args$args;
    }

    location /recovery/install {
      index index.php;
      try_files $uri /recovery/install/index.php$is_args$args;
    }

    location ~ .php$ {
        include fastcgi.conf;
        fastcgi_pass 127.0.0.1:9000;
    }
}

Check NGINX configuration for syntax errors:

sudo nginx -t

Reload NGINX service:

sudo systemctl reload nginx.service

Step 6 – Install Shopware

Create a document root directory for Shopware:

sudo mkdir -p /var/www/shopware

Change ownership of the /var/www/shopware directory to {jour_user}:

sudo chown -R {your_user}:{your_user} /var/www/shopware

Navigate to the document root directory:

cd /var/www/shopware

Download and unzip the latest Shopware release via wget:

wget https://releases.shopware.com/install_5.5.8_d5bf50630eeaacc6679683e0ab0dcba89498be6d.zip?_ga=2.141661361.269357371.1556739808-1418008019.1556603459 -O shopware.zip
unzip shopware.zip
rm shopware.zip

NOTE: Update download URL if there is a newer release.

Change ownership of the /var/www/shopware directory to nginx.

sudo chown -R nginx:nginx /var/www/shopware

Run sudo vim /etc/php-fpm.d/www.conf and set user and group to nginx.

sudo vim /etc/php-fpm.d/www.conf
# user = nginx
# group = nginx

Create /var/lib/php/session directory and change its ownership to a user nginx.

sudo mkdir -p /var/lib/php/session  sudo chown -R nginx:nginx /var/lib/php/session

Increase memory_limit = 256M and upload_max_filesize = 6M, and set allow_url_fopen = On if not already set in /etc/php.ini file.

sudo vim /etc/php.ini

After making changes in /etc/php.ini file, reload php-fpm.service:

sudo systemctl reload php-fpm.service

Open your domain/IP in the web browser and follow the installation wizard. The backend of Shopware is located at /backend example: http://example.com/backend.

Step 7 – Complete the Shopware setup

Start by selecting the language and click Next:

Shopware setup wizard

Next, make sure you meet all the Shopware requirements:

System requirements are met

Agree with Shopware TOS and click Next:

Accept license

Enter database credentials and click Next:

Shopware database settings

Start the installation to create database tables:

Installing database tables

After that, you will see a message about successful database import:

Database initialization successful

Choose a license and click Next:

Choose license

Fill in a few basic settings to finish up the setup and click Next:

Basic settings

Installation is complete.

Installation is complete

To access admin area append /backend to your URL.

Shopware backend login

You have successfully installed Shopware. Enjoy your new online shop!

How to Install DokuWiki on Ubuntu 18.04 LTS

DokuWiki is a free, open source and highly versatile wiki application written in the PHP programming language. It works on plain text files so doesn’t require any database. DokuWiki wiki offers lots of features that may not be available to other CMS like, Joomla, WordPress and Drupal. DokuWiki is a file-based CMS and provides WYSIWYG support and SEO friendly.

In this tutorial, we will learn how to install DokuWiki on Ubuntu 18.04 server.

Requirements

  • A server running Ubuntu 18.04.
  • A static IP address 192.168.0.101 is set up on your server.
  • A root password is set up to your server.

Getting Started

First, you will need to update your server with the latest version. You can do it with the following command:

apt-get update -y
 apt-get upgrade -y

Once your server is updated, restart your system to apply all the changes

Install Apache, PHP

Before starting, you will need to install Apache web server, PHP and other packages to your server. You can install all of them by running the following command:

apt-get install apache2 php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-sqlite3 php7.2-soap php7.2-gd php7.2-xml php7.2-cli php7.2-tidy php7.2-intl php7.2-json php7.2-curl php7.2-zip unzip wget git -y

Once all the packages are installed, open php.ini file and change some settings:

nano /etc/php/7.2/apache2/php.ini

Make the following changes:

memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = Asia/Kolkata

Save and close the file, when you are finished. Then, start Apache service and enable it to start on boot time with the following command:

systemctl start apache2
 systemctl enable apache2

Once you have done, you can proceed to the next step.

Install DokuWiki

First, you will need to download the latest version of DokuWiki from Git repository. You can download it to the Apache web root directory with the following command:

cd /var/www/html/
 git clone --branch stable https://github.com/splitbrain/dokuwiki.git

Once the download is completed, give proper permissions to the dokuwiki directory with the following command:

chown -R www-data:www-data /var/www/html/dokuwiki/
 chmod -R 755 /var/www/html/dokuwiki/

Once you have done. You can proceed to the next step.

Configure Apache for DokuWiki

Next, you will need to create an Apache virtual host file for DokuWiki. You can do this by creating the following file:

nano /etc/apache2/sites-available/dokuwiki.conf

Add the following lines:

VirtualHost *:80
     ServerAdmin [email protected]
     DocumentRoot /var/www/html/dokuwiki
     ServerName example.com

     Directory /var/www/html/dokuwiki/
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     /Directory

     ErrorLog ${APACHE_LOG_DIR}/doku_error.log
     CustomLog ${APACHE_LOG_DIR}/doku_access.log combined
    
     Directory /var/www/html/dokuwiki/
            RewriteEngine on
            RewriteBase /
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^(.*) index.php [PT,L]
    /Directory
/VirtualHost

Save and close the file, when you are finished. Then, enable DokuWiki virtual host with the following command:

a2ensite dokuwiki.conf

Next, enable Apache rewrite module and restart Apache service to apply all the changes with the following command:

a2enmod rewrite
 systemctl restart apache2

You can also check the status of Apache service with the following command:

systemctl status apache2

You should see the following output:

? apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           ??apache2-systemd.conf
   Active: active (running) since Tue 2019-04-16 14:57:32 UTC; 3s ago
  Process: 2358 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
 Main PID: 2372 (apache2)
    Tasks: 6 (limit: 1113)
   CGroup: /system.slice/apache2.service
           ??2372 /usr/sbin/apache2 -k start
           ??2375 /usr/sbin/apache2 -k start
           ??2377 /usr/sbin/apache2 -k start
           ??2378 /usr/sbin/apache2 -k start
           ??2381 /usr/sbin/apache2 -k start
           ??2382 /usr/sbin/apache2 -k start

May 25 02:50:11 ubuntu1804 systemd[1]: Starting The Apache HTTP Server...
May 25 02:50:11 ubuntu1804 apachectl[2358]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 181.
May 25 02:50:11 ubuntu1804 systemd[1]: Started The Apache HTTP Server.

Once you have done, you can proceed to the next step.

Access DokuWiki Web Interface

Open your web browser and type the URL http://example.com/install.php. You will be redirected to the following page:

DikuWiki installer

Provide all the required information like superuser name, email, password. Then, click on the Save button. Once the installation has been completed successfully, you should see the following page:

Set username and password

Now, click on your new DokuWiki. You should see the following page:

DokuWiki successfully installed

Now, click on the login button. You will be redirected to the following page:

Login

Now, provide your Admin username and password. Then, click on the Log In button. You should see the DokuWiki dashboard in the following page:

Welcome to DokuWiki

Congratulations! you have successfully installed and configured DokuWiki on Ubuntu 18.04 server. You can now create your own wiki site easily using DokuWiki. Feel free to ask me if you have any questions.