diff --git a/README.md b/README.md index dac4bf4..6400fae 100644 --- a/README.md +++ b/README.md @@ -437,7 +437,7 @@ Installasi prestashop, wordpress, nextcloud dan phpmyadmin ============== -### Prestashop +### 1. Prestashop #### Step 1: Tambahkan database dan user untuk prestashop ``` # mysql -u root -p @@ -497,7 +497,7 @@ Selamat prestashop berhasil diinstall -### Wordpress +### 2.Wordpress #### Step 1: Tambahkan database dan user untuk wordpress ``` # mysql -u root -p @@ -589,7 +589,7 @@ Selamat wordpress berhasil diinstall -### nextcloud +### 3. nextcloud #### Step 1: Tambahkan database dan user untuk nextcloud ``` # mysql -u root -p @@ -633,3 +633,73 @@ Selamat nextcloud berhasil diinstall +### 4.phpmyadmin +#### Step 1: Install phpmyadmin +``` +# yum -y install phpmyadmin +``` +Link phpmyadmin +``` +ln -s /usr/share/phpMyAdmin +``` +#### Step 2: Konfigurasi virtualhost dan serverblock untuk phpmyadmin +*** 1.Konfigurasi virtualhost*** +``` +# vim /etc/httpd/conf.d/phpmyadmin.conf +``` +``` + + ServerName console-sql.task.my.id + ServerAdmin admin@task.my.id + DocumentRoot /var/www/html/phpmyadmin + ErrorLog /var/www/html/phpmyadmin/error.log + CustomLog /var/www/html/phpmyadmin/requests.log combined + + SetHandler "proxy:fcgi://127.0.0.1:9071" + + + + DirectoryIndex index.php index.html index.htm + + AllowOverride all + Order allow,deny + Allow from all + + +``` +*** 2.Konfigurasi server block*** +``` +# vim /etc/nginx/conf.d/ +``` +``` +server { + listen 80; + server_name console-sql.task.my.id; + + location / { + proxy_set_header Host $host; + proxy_set_header Accept-Encoding ""; + proxy_pass http://console-sql.task.my.id:8080; + } +} +``` +Kemudian coba akses console-sql.task.my.id + + + +Selamat phpmyadmin sudah terinstall + +*** 3. Buat user untuk phpmyadmin*** +``` +# mysql -u root -p +``` +``` +CREATE USER 'admin'@'%' IDENTIFIED BY 'password_here'; +GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION; +FLUSH PRIVILEGES; +EXIT; +``` + +Selanjunya coba login dengan user yang sudah di buat + +