Home / How To / How to install Phorum with Nginx on Fedora 30

How to install Phorum with Nginx on Fedora 30



Phorum is a PHP and MySQL based Open Source forum. In this guide, we guide you step by step through the Phorum installation process on the Fedora 30 operating system with Nginx as web server, MariaDB as database and acme.sh and let us encrypt for HTTPS. [19659002] Requirements to run Phorum are:

  • Nginx
  • PHP version 5.2 or higher
  • MySQL version 5.0 or later

Prerequisites

  • Fedora 30 operating system.
  • A non-root user with sudo privileges.

Initial steps

Check your Fedora system version:

  cat / etc / fedora release 
# Fedora release 30 (Thirty)

Set the time zone:

  timedatectl list time zones 
sudo timedatectl set timezone & # 39; Region / City & # 39;

Update the operating system packages (software). This is an important first step as it ensures that you have the latest updates and security fixes for the operating system's standard software package:

  sudo dnf upgrade -y 

Install some important packages necessary for basic administration of the Fedora operating system: [1

9659015] sudo dnf install -y curl wget vim git sudo unzip socat bash-completion

Step 1 – Install PHP

Install PHP, as well as the necessary PHP extensions:

  ] sudo dnf install -y php php-cli php-fpm php-common php-mysqlnd  

To display PHP compiled in modules you can run:

   php -m 

ctype
curl
exif
Fileinfo
. . .
. .

Check the PHP version:

   php - version  # PHP 7.3.5 (cli) (built: April 30, 2019 08:37:17)) 
# Copyright (c) 1997-2018 PHP group
# Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies

Start and activate the PHP FPM service:

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

Step 2 – Install MariaDB and create a database

Install MariaDB database server:

  sudo dnf install - y mariadb- server 

Check the MariaDB version:

  mysql - version 
# mysql Ver 15.1 Distrib 10.3.12-MariaDB, for Linux (x86_64) with the read line 5.1

Start and enable the MariaDB service:

 

Source link