Install LAMP Stack on Rocky Linux 9 {Step by Step}
dnf -y update
dnf -y install httpd
systemctl start httpd
systemctl stop firewalld
dnf install mariadb-server mariadb -y
systemctl start mariadb
mariadb-secure-installation
dnf module enable php:8.1
dnf install php php-cli php-gd php-curl php-zip php-mbstring php-mysqlnd -y
systemctl restart httpd
vi /var/www/html/info.php
<?php phpinfo(); ?>
How to Install and use phpMyAdmin on Rocky Linux
dnf -y install wget
wget -P /tmp https://www.phpmyadmin.net/downl ... test-english.tar.gz
cd /tmp
tar -xvfz phpMyAdmin-latest-english.tar.gz
mv phpMyAdmin-5.2.1-english /usr/share/phpmyadmin
cd /usr/share/phpmyadmin/
cp config.sample.inc.php config.inc.php
openssl rand -base64 32
BAz+oQ8QA4zI8OIoH2SeJftLKEEunAUjd1eXyLoF3oA=
vi /usr/share/phpmyadmin/config.inc.php
$cfg['blowfish_secret'] = 'BAz+oQ8QA4zI8OIoH2SeJftLKEEunAUjd1eXyLoF3oA='; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ $cfg['TempDir'] = '/tmp';
mkdir /usr/share/phpmyadmin/tmp chown -R apache:apache /usr/share/phpmyadmin chmod 777 /usr/share/phpmyadmin/tmp
vi /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>
chcon -Rv --type=httpd_sys_content_t /usr/share/phpmyadmin/*
systemctl restart httpd
http://your-server-ip-address/phpmyadmin
ngrok config add-authtoken ........
ngrok http 80
Linux
cd
wget https://bin.equinox.io/c/bNyj1mQ ... ble-linux-amd64.tgz
tar xvfz ngrok-v3-stable-linux-amd64.tgz
./ngrok config add-authtoken ......
vi /var/www/html/index.html
i -> insert mode
Linux 123456789
:wq
./ngrok http 80
|