apt update
apt install apache2
ufw enable
ufw allow apache
apt install openssh-server
ufw allow ssh
apt install php php-zip php-json php-mbstring php-mysql
wget https://files.phpmyadmin.net/phpMyAdmin/5.2.0/phpMyAdmin-5.2.0-all-languages.zip
unzip phpMyAdmin-5.2.0-all-languages.zip
mv phpMyAdmin-5.2.0-all-languages /usr/share/phpmyadmin
mkdir /usr/share/phpmyadmin/tmp
chown -R www-data:www-data /usr/share/phpmyadmin
chmod 777 /usr/share/phpmyadmin/tmp
nano /etc/apache2/conf-available/phpmyadmin.conf
isinya :
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin/>
AddDefaultCharset UTF-8
<IfModule mod_authz_core.c>
<RequireAny>
Require all granted
</RequireAny>
</IfModule>
</Directory>
<Directory /usr/share/phpmyadmin/setup/>
<IfModule mod_authz_core.c>
<RequireAny>
Require all granted
</RequireAny>
</IfModule>
</Directory>
=====================
sudo a2enconf phpmyadmin
sudo systemctl restart apache2
http://your-server-ip-domain/phpmyadmin
password mysql ???
apt install mysql-server
sudo mysql -u root
mysql> flush privileges;
mysql> USE mysql
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'pengentausaja';
opsi "dangerous"
mysql> ALTER USER 'root'@'%' IDENTIFIED BY 'pengentausaja';
atau buat user lain :
mysql>CREATE USER 'azila'@'%' IDENTIFIED BY 'pengentausaja@@@@@';
mysql>grant all privileges on *.* to 'azila'@'%' with grant option;
install wordpress
cd /var/www/html
wget https://wordpress.org/latest.zip
unzip latest.zip
cd wordpress
mv * ../
copykan ke /html semuanya
browser :
ketik alamat web (instalasi wordpress)
alamatweb/phpmyadmin
buat database
selesai.
user dimas
password: dimasuinjakarta@
No comments:
Post a Comment