You are on page 1of 2

apt install nano wget unzip

apt install openssh-server


nano /etc/ssh/sshd_config
Port 103
PermitRootlogin yes
systemctlsshd restart

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

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

mysql -v
service apache2 restart
srvice mariadb restart
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

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

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

wget "https://github.com/kmvan/x-prober/raw/master/dist/prober.php"
chmod -R 777 prober.php
chmod -R 777 a.php
systemctl restart httpd
check browser
http://192.168.100.103/prober.php

# wget "http://www.adminer.org/latest.php" -O /var/www/html/adminer.php


# chown -R www-data:www-data /var/www/html/adminer.php
# chmod 777 /var/www/html/adminer.php
# mysql
MariaDB [(none)]> SET PASSWORD FOR 'root'@'localhost' = PASSWORD("Admin123");
MariaDB [(none)]> GRANT ALL ON *.* TO 'root'@'localhost' IDENTIFIED BY 'Admin123'
WITH GRANT OPTION;
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit;
# systemctl restart mariadb

You might also like