Installing and Configuring the Secure OV500 GUI and API

Disable the selinux to reduce and allow DB connectivity with OV500 project PDO connection

sed -i "s#SELINUX=enforcing#SELINUX=disabled#g" /etc/selinux/config
sed -i "s#SELINUX=permissive#SELINUX=disabled#g" /etc/selinux/config
setenforce 0

First, Install the repository of PHP7 and packages

yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 
yum -y install epel-release yum-utils
yum-config-manager --disable remi-php54
yum-config-manager --enable remi-php73
yum install -y php php-fpm php-mysql php-cli php-json php-readline php-xml php-curl php-gd php-json php-mbstring php-mysql php-opcache php-pdo

Lot of open source web servers are available but recommending to use the NGINX. It is light weight and can handle more request comparing others.  Apache is also good web server but OV500 is recommending to use NGINX and PHP-FPM to get the high performance output.

yum install -y nginx libxml2 libxml2-devel openssl openssl-devel gettext-devel fileutils

#NGINX installation steps

setenforce 0
systemctl start nginx
systemctl enable nginx
systemctl start php-fpm
systemctl enable php-fpm

Now, configure the SSL certificate using OpenSSL package

mkdir -p /etc/nginx/ssl
#Below CMD is to set up the self sign ssl certificate
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt

Leave a Reply

Your email address will not be published. Required fields are marked *