Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding old content "Instalasi PHP, Apache, MySQL dan PhpMyAdmin di Ar…
…ch Linux"
- Loading branch information
1 parent
d17179b
commit f8a4323
Showing
14 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Feb | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Feb | ||
--- |
Binary file added
BIN
+85.5 KB
content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/directoryIndex.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.72 KB
content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/extension.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+178 KB
...orials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing.jpeg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions
91
content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/index.id.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
--- | ||
title: "Instalasi PHP, Apache, MySQL dan PhpMyAdmin di Arch Linux" | ||
description: "Step-by-step instalasi PHP Apache, MySQL dan PhpMyAdmin di Arch Linux." | ||
# linkTitle: | ||
date: 2012-02-18T05:01:30+07:00 | ||
lastmod: | ||
draft: false | ||
noindex: false | ||
# comments: false | ||
nav_weight: 1000 | ||
# nav_icon: | ||
# vendor: bootstrap | ||
# name: toggles | ||
# color: '#e24d0e' | ||
series: | ||
# - Tutorial | ||
categories: | ||
- SysAdmin | ||
tags: | ||
- Linux | ||
- MySQL | ||
- Apache | ||
- PHP | ||
images: | ||
# menu: | ||
# main: | ||
# weight: 100 | ||
# params: | ||
# icon: | ||
# vendor: bs | ||
# name: book | ||
# color: '#e24d0e' | ||
authors: | ||
- ditatompel | ||
--- | ||
|
||
*Step-by-step* instalasi **PHP**, **Apache**, **MySQL** dan **PhpMyAdmin** di **Arch Linux**. | ||
|
||
<!--more--> | ||
|
||
Kenapa Arch Linux? Karena saya nyaman menggunakan Arch, dan hanya dengan package managernya kita udah dapet kernel dan software-software terbaru dan *up-to-date*. | ||
|
||
{{< youtube zr7TVU7SZUs >}} | ||
|
||
1. Pertama kita pastikan bahwa sistem kita sudah up to date. | ||
```bash | ||
pacman -Syu | ||
``` | ||
2. Jika sudah, kita mulai *install* apa yang kita butuhkan. | ||
```bash | ||
pacman -S php apache php-mcrypt phpmyadmin mysql | ||
``` | ||
3. masuk pada folder `/etc/webapps/phpmyadmin`, kemudian copy konfigurasi **phpmyadmin** ke `/etc/httpd/conf/extra` | ||
```bash | ||
cp /etc/webapps/phpmyadmin/apache.example.conf /etc/httpd/conf/extra/httpd-phpmyadmin.conf | ||
``` | ||
4. Kita *include-kan* konfigurasi tersebut pada `httpd.conf` utama di folder `/etc/httpd/conf` | ||
```apache | ||
# Konfigurasi phpmyadmin | ||
Include conf/extra/httpd-phpmyadmin.conf | ||
``` | ||
![Apache Config PHPMyAdmin](phpmyadmin-include.png#center) | ||
|
||
Kemudian cek `localhost` dan `phpmyadmin` pada browser. | ||
|
||
6. Jika ada pesan *forbidden* pada **phpmyadmin**, kita tambahkan konfigurasi `DirectoryIndex index.html index.php` pada `/etc/httpd/conf/extra/httpd-phpmyadmin.conf` lalu **restart** http server. | ||
|
||
![DirectoryIndex Apache](directoryIndex.png#center) | ||
|
||
7. Jika **PhpMyAdmin** sudah dapat diakses, tetapi masih ada pesan error *"The mysqli extension is missing."* atau *"The mcrypt extension is missing"*; Kita perlu *me-enable* ekstensi tersebut pada `php.ini` dengan menghilangkan tanda titik koma (`;`) di depan ekstensi yang dibutuhkan. | ||
|
||
![PHP Extension](extension.png#center) | ||
|
||
```ini | ||
extension=mcrypt.so | ||
extension=mysqli.so | ||
extension=mysql.so | ||
``` | ||
|
||
kemudian kita coba **restart** http server lagi. | ||
|
||
Untuk informasi, pada Arch Linux, secara default `httpd` berjalan dengan *user* `http` dan *group* `http`. Agar lebih nyaman dan tidak terdapat pesan error pada CMS2 tertentu, kita perlu merubah permission dan owner pada folder `/srv/http` (tempat folder `public_html`) | ||
|
||
```bash | ||
chown -R http:http /srv/http | ||
``` | ||
maka selesai sudah proses installasi Apache, PHP, MySQL, dan PhpMyAdmin. | ||
|
||
Nah sementara basicnya sampe disini dulu. | ||
|
||
|
Binary file added
BIN
+285 KB
.../tutorials/install-php-apache-mysql-phpmyadmin-archlinux/phpmyadmin-include.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.3 KB
.../directoryIndex_huca765b3fdd381f27494ba9022d51e683_87525_443x172_resize_q75_h2_box_3.webp
Binary file not shown.
Binary file added
BIN
+5.48 KB
...hlinux/extension_hu38a7a760cdd47e82295e11005b295772_3807_182x117_resize_q75_h2_box_3.webp
Binary file not shown.
Binary file added
BIN
+20.8 KB
...ople-typing_huba600eb31affd434e53dbfe50413055b_181816_0x360_resize_q75_box.jpeg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.5 KB
...ople-typing_huba600eb31affd434e53dbfe50413055b_181816_0x640_resize_q75_box.jpeg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.7 KB
...le-typing_huba600eb31affd434e53dbfe50413055b_181816_2fbf1404e3bc8f93620a2ecca617d357.webp
Binary file not shown.
Binary file added
BIN
+22.6 KB
...le-typing_huba600eb31affd434e53dbfe50413055b_181816_9d2c22df8a1704d903a78d8eda8059c4.webp
Binary file not shown.
Binary file added
BIN
+29 KB
...yadmin-include_hu5714631feae31e8e903667f0112f2156_292284_494x530_resize_q75_h2_box_3.webp
Binary file not shown.