Advertisement
thesuhu

Apache Install

Jan 21st, 2021
7,658
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # setting httpd.conf ServerRoot, Listen dan DocumentRoot
  2. ServerRoot "c:/Apache24"
  3. Listen 8080
  4. DocumentRoot "c:/Apache24/htdocs"
  5. <Directory "c:/Apache24/htdocs">
  6.  
  7. # install service apache, command
  8. httpd.exe -k install -n "Apache HTTP Server"
  9.  
  10. # jika link dengan PHP, tambahkan konfigurasi di httpd.conf
  11. # penting! pastikan vc apache dan vc php build sama, arsitekturnya juga harus sama 32 atau 64 bit. (jika gagal ... )
  12. AddHandler application/x-httpd-php .php
  13. AddType application/x-httpd-php .php .html
  14. LoadModule php7_module "c:/php/php7apache2_4.dll"
  15. PHPIniDir "c:/php"
  16.  
  17. # penting! pastikan oci8 sesuai 32 atau 64bit php nya
  18. # untuk oracle client menyesuaikan dll oci8 (untuk 11g pakai yang 32 bit oraclient)
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement