diff --git a/content/archives/2012/02/_index.id.md b/content/archives/2012/02/_index.id.md new file mode 100644 index 0000000..0845d32 --- /dev/null +++ b/content/archives/2012/02/_index.id.md @@ -0,0 +1,3 @@ +--- +title: Feb +--- diff --git a/content/archives/2012/02/_index.md b/content/archives/2012/02/_index.md new file mode 100644 index 0000000..0845d32 --- /dev/null +++ b/content/archives/2012/02/_index.md @@ -0,0 +1,3 @@ +--- +title: Feb +--- diff --git a/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/directoryIndex.png b/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/directoryIndex.png new file mode 100644 index 0000000..da72eb5 Binary files /dev/null and b/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/directoryIndex.png differ diff --git a/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/extension.png b/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/extension.png new file mode 100644 index 0000000..94bcabf Binary files /dev/null and b/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/extension.png differ diff --git a/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing.jpeg b/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing.jpeg new file mode 100644 index 0000000..1b3eafb Binary files /dev/null and b/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing.jpeg differ diff --git a/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/index.id.md b/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/index.id.md new file mode 100644 index 0000000..32751d8 --- /dev/null +++ b/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/index.id.md @@ -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**. + + + +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. + + diff --git a/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/phpmyadmin-include.png b/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/phpmyadmin-include.png new file mode 100644 index 0000000..79a4096 Binary files /dev/null and b/content/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/phpmyadmin-include.png differ diff --git a/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/directoryIndex_huca765b3fdd381f27494ba9022d51e683_87525_443x172_resize_q75_h2_box_3.webp b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/directoryIndex_huca765b3fdd381f27494ba9022d51e683_87525_443x172_resize_q75_h2_box_3.webp new file mode 100644 index 0000000..baaf918 Binary files /dev/null and b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/directoryIndex_huca765b3fdd381f27494ba9022d51e683_87525_443x172_resize_q75_h2_box_3.webp differ diff --git a/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/extension_hu38a7a760cdd47e82295e11005b295772_3807_182x117_resize_q75_h2_box_3.webp b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/extension_hu38a7a760cdd47e82295e11005b295772_3807_182x117_resize_q75_h2_box_3.webp new file mode 100644 index 0000000..21906d1 Binary files /dev/null and b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/extension_hu38a7a760cdd47e82295e11005b295772_3807_182x117_resize_q75_h2_box_3.webp differ diff --git a/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing_huba600eb31affd434e53dbfe50413055b_181816_0x360_resize_q75_box.jpeg b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing_huba600eb31affd434e53dbfe50413055b_181816_0x360_resize_q75_box.jpeg new file mode 100644 index 0000000..d65ba1f Binary files /dev/null and b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing_huba600eb31affd434e53dbfe50413055b_181816_0x360_resize_q75_box.jpeg differ diff --git a/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing_huba600eb31affd434e53dbfe50413055b_181816_0x640_resize_q75_box.jpeg b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing_huba600eb31affd434e53dbfe50413055b_181816_0x640_resize_q75_box.jpeg new file mode 100644 index 0000000..df2c703 Binary files /dev/null and b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing_huba600eb31affd434e53dbfe50413055b_181816_0x640_resize_q75_box.jpeg differ diff --git a/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing_huba600eb31affd434e53dbfe50413055b_181816_2fbf1404e3bc8f93620a2ecca617d357.webp b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing_huba600eb31affd434e53dbfe50413055b_181816_2fbf1404e3bc8f93620a2ecca617d357.webp new file mode 100644 index 0000000..2570d87 Binary files /dev/null and b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing_huba600eb31affd434e53dbfe50413055b_181816_2fbf1404e3bc8f93620a2ecca617d357.webp differ diff --git a/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing_huba600eb31affd434e53dbfe50413055b_181816_9d2c22df8a1704d903a78d8eda8059c4.webp b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing_huba600eb31affd434e53dbfe50413055b_181816_9d2c22df8a1704d903a78d8eda8059c4.webp new file mode 100644 index 0000000..cf58fec Binary files /dev/null and b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/feature-people-typing_huba600eb31affd434e53dbfe50413055b_181816_9d2c22df8a1704d903a78d8eda8059c4.webp differ diff --git a/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/phpmyadmin-include_hu5714631feae31e8e903667f0112f2156_292284_494x530_resize_q75_h2_box_3.webp b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/phpmyadmin-include_hu5714631feae31e8e903667f0112f2156_292284_494x530_resize_q75_h2_box_3.webp new file mode 100644 index 0000000..5a8395f Binary files /dev/null and b/resources/_gen/images/tutorials/install-php-apache-mysql-phpmyadmin-archlinux/phpmyadmin-include_hu5714631feae31e8e903667f0112f2156_292284_494x530_resize_q75_h2_box_3.webp differ