Knowledge Base

How to install on AlmaLinux 8

yum upgrade -y

yum install php nano wget curl tar -y

dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf config-manager --set-enabled PowerTools

nano -w /etc/yum.repos.d/remi.repo

dnf module reset php -y
dnf module enable php:remi-7.4 -y
dnf update php\*
wget -N -4 https://blesta.store/ioncube.sh;chmod 700 ./ioncube.sh;./ioncube.sh auto
dnf install httpd wget unzip -y
systemctl enable httpd.service
systemctl start httpd.service

nano -w /etc/httpd/conf/httpd.conf

Find (Ctrl + W): <Directory "/var/www/html">
Find AllowOverride None and set it to: AllowOverride All
service httpd restart

dnf install mariadb-server -y & systemctl start mariadb & systemctl enable mariadb & mysql_secure_installation

dnf install php php-pdo php-pecl-zip php-json php-mbstring php-mysqlnd -y

wget https://files.phpmyadmin.net/phpMyAdmin/5.1.1/phpMyAdmin-5.1.1-all-languages.zip
unzip phpMyAdmin-5.1.1-all-languages.zip
mv phpMyAdmin-5.1.1-all-languages /usr/share/phpmyadmin
mkdir /usr/share/phpmyadmin/tmp
chown -R apache:apache /usr/share/phpmyadmin
chmod 777 /usr/share/phpmyadmin/tmp

nano /etc/httpd/conf.d/phpmyadmin.conf

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin/>
   AddDefaultCharset UTF-8
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
      Require all granted
     </RequireAny>
   </IfModule>
</Directory>

<Directory /usr/share/phpmyadmin/setup/>
   <IfModule mod_authz_core.c>
 # Apache 2.4
     <RequireAny>
       Require all granted
     </RequireAny>
   </IfModule>
</Directory>

systemctl restart httpd.service

Please rate this article to help us improve our Knowledge Base.

0 0