Instalasi Manual — Windows (XAMPP)
1. Unduh dan Pasang XAMPP
Section titled “1. Unduh dan Pasang XAMPP”- Unduh dari https://www.apachefriends.org/index.html
- Install dengan pilihan default
- Aktifkan Apache dan MySQL melalui XAMPP Control Panel
2. Unduh ILDIS
Section titled “2. Unduh ILDIS”Clone ILDIS ke dalam folder htdocs:
cd C:\xampp\htdocsgit clone https://github.com/bphndigitalservice/ildis.git ildisAtau ekstrak file rilis dari GitHub Releases
3. Setup Proyek
Section titled “3. Setup Proyek”cd C:\xampp\htdocs\ildiscomposer installphp init4. Buat File .env
Section titled “4. Buat File .env”copy .env.example .envEdit file .env dan sesuaikan nilai dengan kredensial MySQL / MariaDB Anda.
5. Migrasi Database
Section titled “5. Migrasi Database”Buat database terlebih dahulu. Buka MySQL command line atau gunakan phpMyAdmin:
mysql -u root -e "CREATE DATABASE ildis_v4;"Lalu jalankan migrasi:
php yii migrate6. Buat Virtual Host
Section titled “6. Buat Virtual Host”Edit file C:\xampp\apache\conf\extra\httpd-vhosts.conf, tambahkan:
<VirtualHost *:80> #ganti dengan domain anda ServerName ildis-demo.bphn.go.id
#ErrorLog /var/log/apache2/advanced.local.error.log #CustomLog /var/log/apache2/advanced.local.access.log combined AddDefaultCharset UTF-8
Options FollowSymLinks DirectoryIndex index.php index.html RewriteEngine on
RewriteRule /\. - [L,F]
DocumentRoot /var/www/ildis/ <Directory /var/www/ildis/> AllowOverride none <IfVersion < 2.4> Order Allow,Deny Allow from all </IfVersion> <IfVersion >= 2.4> Require all granted </IfVersion>
# if a directory or a file exists, use the request directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward the request to index.php RewriteRule ^ index.php [L] </Directory>
# redirect to the URL without a trailing slash (uncomment if necessary) #RewriteRule ^/admin/$ /admin [L,R=301]
Alias /admin /var/www/ildis/backend/ # prevent the directory redirect to the URL with a trailing slash RewriteRule ^/admin$ /admin/ [L,PT] <Directory /var/www/ildis/backend/> AllowOverride none <IfVersion < 2.4> Order Allow,Deny Allow from all </IfVersion> <IfVersion >= 2.4> Require all granted </IfVersion>
# if a directory or a file exists, use the request directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward the request to index.php RewriteRule ^ index.php [L] </Directory></VirtualHost>Edit file hosts:
C:\Windows\System32\drivers\etc\hostsTambahkan baris berikut:
127.0.0.1 ildis-frontend.test ildis-backend.testRestart Apache dari XAMPP Control Panel.
Langkah Selanjutnya
Section titled “Langkah Selanjutnya”Setelah instalasi berhasil, lanjutkan ke halaman berikut untuk konfigurasi awal: