sohotcall

Install Apache MySQL PHP di Windows 64-bit

Jan 29th, 2020
234
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CARA INSTALL APACHE, PHP, MYSQL di WINDOWS 10 64-BIT
  2. ====================================================
  3.  
  4. - Ke "https://www.apachehaus.com/cgi-bin/download.plx"
  5. Download "Apache 2.4 VC15"
  6. - Extract ke "C:\gsAMP\Apache24"
  7. sehingga ada "C:\gsAMP\Apache24\bin\httpd.exe"
  8. - Ke "https://windows.php.net/download"
  9. Download "VC15 x64 Thread Safe" Zip file
  10. - Extract ke "C:\gsAMP\php-7.4.1"
  11. sehingga ada "C:\gsAMP\php-7.4.1\php.exe"
  12. - System variables ubah (Environment Variable) "PATH"
  13. Tambahkan "C:\gsAMP\php-7.4.1"
  14. - Edit "C:\gsAMP\Apache24\conf\httpd.conf"
  15. # Ubah hal-hal berikut
  16.  
  17. Define SRVROOT "C:/gsAMP/Apache24"
  18.  
  19. ServerName localhost:80
  20.  
  21. DocumentRoot "C:/gsAMP/htdocs"
  22. <Directory "C:/gsAMP/htdocs">
  23.  
  24. DirectoryIndex index.html index.php
  25.  
  26. # Tambahkan hal berikut
  27.  
  28. LoadModule php7_module "C:/gsAMP/php-7.4.1/php7apache2_4.dll"
  29. AddHandler application/x-httpd-php .php
  30. PHPIniDir "C:/gsAMP/php-7.4.1"
  31.  
  32. - Move folder "C:/gsAMP/Apache24/htdocs ke C:/gsAMP/htdocs"
  33. - Copy "C:\gsAMP\php-7.4.1\php.ini-development" menjadi "C:\gsAMP\php-7.4.1\php.ini"
  34. - Edit "C:\gsAMP\php-7.4.1\php.ini"
  35. ; Ubah hal-hal berikut
  36.  
  37. extension_dir = "C:/gsAMP/php-7.4.1/ext"
  38.  
  39. extension=mysqli
  40.  
  41. date.timezone =Asia/Singapore
  42.  
  43. ; Silakan tambahkan extension lain yang mungkin diperlukan
  44. ; misalkan curl, fileinfo, gd2, sockets, sqlite3
  45.  
  46. - Install dan jalankan Apache
  47. > C:\gsAMP\Apache24\bin\httpd.exe -k install
  48. > C:\gsAMP\Apache24\bin\httpd.exe -k start
  49.  
  50. - Ke "https://downloads.mariadb.org/"
  51. download "MariaDB 10.5.0"
  52. - Extract ke "C:\gsAMP\mariadb-10.5.0"
  53. sehingga ada "C:\gsAMP\mariadb-10.5.0\bin\mysqld.exe"
  54. - Edit "C:\gsAMP\mariadb-10.5.0\my.ini"
  55. agar isinya begini
  56.  
  57. [mysqld]
  58. basedir=C:/gsAMP/mariadb-10.5.0
  59. datadir=C:/gsAMP/data
  60. [client]
  61. plugin-dir=C:/gsAMP/mariadb-10.5.0/lib/plugin
  62.  
  63. - Buat folder "C:\gsAMP\data"
  64. - Install database
  65. > C:\gsAMP\mariadb-10.5.0\bin\mysql_install_db.exe
  66. - Kopi "C:\gsAMP\mariadb-10.5.0\my.ini" ke "C:\gsAMP\mariadb-10.5.0\data\my.ini"
  67. - Pindahkan isi "C:\gsAMP\mariadb-10.5.0\data" ke dalam "C:\gsAMP\data"
  68. - Jalankan MySQL
  69. > C:\gsAMP\mariadb-10.5.0\bin\mysqld.exe --install MySQL64 --defaults-file=C:\gsAMP\mariadb-10.5.0\my.ini
  70. > net start MySQL64
RAW Paste Data