yum update -y
installation
sudo yum install -y epel-release
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf config-manager --set-enabled remi
vi /etc/selinux/config {for disable and reboot after change}
yum install -y nginx
systemctl start nginx
systemctl enable nginx
yum install wget zip unzip
yum-config-manager --enable remi-php73
yum install php php-cli php-common php-mysqlnd php-fpm php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo php-intl php-pecl-apcu php-intl
systemctl enable php-fpm
systemctl restart php-fpm
wget -O /etc/yum.repos.d/MariaDB.repo https://repo.bkatz.net/mariadb10.txt
yum update -y
yum install mariadb mariadb-server -y
systemctl start mariadb mariadb-server
systemctl enable mariadb mariadb-server
systemctl start mysql mysqld
systemctl enable mysqld
mysql_secure_installation {first configoration}
cd /usr/share/
wget https://files.phpmyadmin.net/phpMyAdmin/4.9.7/phpMyAdmin-4.9.7-all-languages.zip
unzip phpMyAdmin-4.9.7-all-languages.zip
rm -f phpMyAdmin-4.9.7-all-languages.zip
mkdir /var/www/phpMyAdmin
ln -s /usr/share/phpmyadmin/ /var/www/phpMyAdmin
chown nginx:nginx /var/www/ -R
{change apache user and group to nginx on /etc/php-fpm.d/www.conf}
virtual host
cd /etc/nginx/conf.d
vi exmple.com.con
{virtualhost exmple with php-fpm https://repo.bkatz.net/exmple.conf.txt}
wget -O /var/www/****/info.php https://repo.bkatz.net/info.php.txt
for install ssl with certbot
cd /tmp/
curl -O https://dl.eff.org/certbot-auto
mv certbot-auto /usr/local/bin/certbot-auto
chmod 0755 /usr/local/bin/certbot-auto
certbot-auto --nginx -d domain.com
insert for php sites:
try_files $uri $uri/ /index.php?$args;