You are on page 1of 2

LAMP (LINUX APACHE MARIADB PHP)

CENTOS 8

dnf update
dnf upgrade
dnf install nano wget unzip
dnf install openssh-server
nano /etc/ssh/sshd_config
Port 103
PermitRootlogin yes
systemctl restart sshd
setenforce 0

===================================================================================
=====================
dnf install httpd
httpd -v
nano /etc/httpd/conf/httpd.conf
Ganti menjadi
Listen 80 Listen 8103
#ServerName www.example.com:80 ServerName
192.168.100.103:8103

<Directory /> <Directory />


AllowOverride none AllowOverride All
Require all denied Require all
granted
</Directory> </Directory>

<Directory "/var/www"> <Directory "/var/www">


AllowOverride None AllowOverride All
# Allow open access: # Allow open access:
Require all granted Require all
granted
</Directory> </Directory>

<Directory "/var/www/html"> <Directory "/var/www/html">


Options Indexes FollowSymLinks Options Indexes
FollowSymLinks
AllowOverride None AllowOverride All
Require all granted Require all
granted
</Directory> </Directory>

<Directory "/var/www/cgi-bin"> <Directory "/var/www/cgi-


bin">
AllowOverride None AllowOverride All
Options None Options None
Require all granted Require all
granted
</Directory> </Directory>

systemctl start httpd


systemctl enable httpd
check browser
http://192.168.100.103:8103 or http://rb.smkblokagung.sch.id:8103/

===================================================================================
===============================================================
dnf install mariadb-server
mysql --version
systemctl start mariadb
system enable mariadb
mysql_secure_installation
Enter current password for root (enter for none): ENTER
Set root password? [Y/n] y
New password: Admin123
Re-enter new password : Admin123
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y

mysql -u root -p
Enter password: Admin123
MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY
'Admin123' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT

===================================================================================
==============================================================

dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm


dnf module install php:remi-7.3
dnf install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysql
php-ldap php-zip php-fileinfo php-memcache php-memcached
systemctl restart httpd
php -v

===================================================================================
==============================================================
cd /var/www/html
wget "https://github.com/kmvan/x-prober/raw/master/dist/prober.php"
wget "https://github.com/vrana/adminer/releases/download/v4.7.7/adminer-4.7.7-
en.php"
mv adminer-4.7.7-en.php a.php
chmod -R 777 prober.php
chmod -R 777 a.php
systemctl restart httpd
check browser
http://192.168.100.103/prober.php or
http://rb.smkblokagung.sch.id:8103/prober.php
http://192.168.100.103/a.php or
http://rb.smkblokagung.sch.id:8103/a.php

You might also like