Skip to content

Royhtml/php-server

Repository files navigation

Awan Server Hosting Offline (Tanpa Node.js)

Logo


πŸ“¦ Awan Server GUI 3.0

Klik Video Tutorials Penggunaan 3.0

πŸ“¦ Panduan Lengkap Pemasangan Patch & Penggunaan php server V2.exe Tanpa XAMPP

tutorial pemasangan

Klik Video Tutorials Pemasangan

Patch install

1. Apache Running Patch :

paste apache 1

C:\Users\User\Desktop\Server Awan\apache\bin\httpd.exe

paste apache 2

C:\Users\User\Desktop\Server Awan\apache\conf\httpd.conf

2. MySQL Running Patch :

paste Mysql

C:\Users\User\Desktop\Server Awan\mysql\bin\mysqld.exe

3. PHP MY ADMIN

paste My php Admin

C:\Users\User\Desktop\Server Awan\php\php.exe


πŸ“‘ Daftar Isi

  1. Pendahuluan
  2. Penjelasan php server V2.exe
  3. Persiapan Sebelum Instalasi
  4. Langkah-langkah Pemasangan Patch
  5. Penggunaan MySQL dan phpMyAdmin Tanpa XAMPP
  6. Pengujian Server
  7. Troubleshooting
  8. FAQ
  9. Lampiran Gambar & Struktur Folder

🧾 Pendahuluan

Panduan ini menjelaskan cara memasang patch aplikasi dan menjalankan server lokal PHP menggunakan php server V2.exe tanpa XAMPP. Anda juga akan belajar menjalankan MySQL dan phpMyAdmin dari folder lokal.


βš™οΈ Penjelasan php server V2.exe

php server V2.exe adalah server PHP portabel untuk Windows. Tidak perlu menginstal PHP, Apache, atau XAMPP.

βœ… Kelebihan:

  • Portable: Bisa dijalankan langsung dari folder atau flashdisk.
  • Simple: Klik 2x langsung jalan.
  • Ringan: Tidak banyak konsumsi resource.
  • Multiversi: Bisa diganti versi PHP-nya sesuai kebutuhan.

πŸ“¦ Persiapan Sebelum Instalasi

πŸ—‚ File yang dibutuhkan:

  • php server V2.exe
  • Folder aplikasi web (berisi index.php)
  • File Patch (.zip, .rar, atau folder)
  • MySQL portabel (mysqld.exe)
  • phpMyAdmin (ekstrak dalam folder htdocs/phpmyadmin)

πŸ’» Spesifikasi sistem:

  • Windows 7 ke atas (32/64 bit)
  • Tidak ada konflik port 8080 atau 3306

πŸ› οΈ Langkah-langkah Pemasangan Patch

1. Ekstrak File Patch

Ekstrak patch ke dalam folder aplikasi:

Klik kanan β†’ Extract Here

Ilustrasi:

πŸ“ AplikasiWeb/
β”œβ”€β”€ index.php
β”œβ”€β”€ config.php
β”œβ”€β”€ ...
πŸ“ Patch/

2. Salin & Timpa File Lama

Jika muncul peringatan, pilih Replace All / Timpa File.

3. Jalankan php server V2.exe

Klik dua kali file php server V2.exe, akan muncul jendela command prompt:

PHP Development Server started at http://localhost:8080

4. Akses Lewat Browser

Buka http://localhost:8080 β†’ aplikasi akan muncul.


πŸ’Ύ Penggunaan MySQL dan phpMyAdmin Tanpa XAMPP

1. Jalankan MySQL Portabel

Gunakan file patch dari Anda:

C:\Users\User\Desktop\Server Awan\mysql\bin\mysqld.exe

Langkah:

  • Klik dua kali mysqld.exe
  • MySQL akan aktif di localhost:3306

2. Konfigurasi config.inc.php phpMyAdmin

Di folder phpmyadmin, buka config.inc.php, ubah:

$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['port'] = '3306';

3. Akses phpMyAdmin

Jalankan php server V2.exe di folder utama yang juga berisi phpmyadmin, lalu buka:

http://localhost:8080/phpmyadmin

πŸ§ͺ Pengujian Server

βœ… Pastikan:

  • File index.php ada di root folder.

  • Tidak ada error di command prompt.

  • Jika butuh port lain:

    php server V2.exe 8000

🧯 Troubleshooting

Masalah Solusi
Port 8080 dipakai Jalankan dengan port lain, contoh php server V2.exe 8001
Server tidak tampil Cek file index.php, pastikan ada di root
MySQL tidak konek Pastikan mysqld.exe aktif dan port 3306 tidak konflik
phpMyAdmin error Periksa config.inc.php, username/password database
Antivirus blokir server Tambahkan php server V2.exe ke whitelist

❓ FAQ

Q: Perlu XAMPP? A: Tidak perlu. Semuanya dijalankan langsung via .exe.

Q: Bisa di-flashdisk? A: Ya, semua tool portabel dan bisa dipindah-pindah.

Q: Apa default port-nya? A: php server V2.exe β†’ 8080, mysqld.exe β†’ 3306

Q: Bagaimana menghentikan server? A: Tutup jendela command prompt.


πŸ–ΌοΈ Lampiran Gambar & Struktur Folder

πŸ’» Struktur Folder Ideal

πŸ“ Server Awan/
β”œβ”€β”€ php server V2.exe
β”œβ”€β”€ index.php
β”œβ”€β”€ Patch/
β”œβ”€β”€ phpmyadmin/
β”‚   └── config.inc.php
β”œβ”€β”€ mysql/
β”‚   └── bin/
β”‚       └── mysqld.exe

πŸ“Έ Contoh Tampilan CMD Saat Server Aktif

C:\Server Awan> php server V2.exe
PHP 8.x.x Development Server started at http://localhost:8080

Jika Anda ingin, saya bisa bantu:

  • Menyusun semua file patch ke dalam satu paket .zip
  • Menambahkan file konfigurasi otomatis (start_server.bat)
  • Menyediakan template config.inc.php yang siap pakai

developer

  • Dwi Bakti N Dev

tutorial tanpa xampp V1

  1. kunjungi tags
  2. download file .exe , .ico , and php.rar
  3. open file php server V1.exe
  4. complite file access
  5. exstrak file php.rar
  6. Copy patch C:\Users\User\Downloads\php\php\php.exe
  7. paste file directory php patch
  8. enjoyed run file

video tutorial

tutorials penggunaan

Daftar Isi

  1. Persyaratan Sistem
  2. Pilihan Server PHP
  3. Instalasi XAMPP
  4. Instalasi PHP Built-in Server
  5. Hosting phpMyAdmin
  6. Konfigurasi Database MySQL
  7. Mengakses Server dari Perangkat Lain
  8. Keamanan Dasar
  9. Troubleshooting

Persyaratan Sistem

  • Sistem Operasi: Windows, Linux, atau macOS
  • RAM minimal: 2GB (4GB disarankan)
  • Ruang disk: 500MB (untuk server dasar)

Pilihan Server PHP

1. XAMPP (Solusi All-in-One)

Paket lengkap yang termasuk:

  • Apache (web server)
  • MySQL/MariaDB (database)
  • PHP
  • phpMyAdmin

2. PHP Built-in Web Server

Server bawaan PHP (untuk pengembangan saja):

php -S localhost:8000

Instalasi XAMPP

Untuk Windows:

  1. Download XAMPP dari https://www.apachefriends.org
  2. Jalankan installer dan ikuti petunjuk
  3. Pilih komponen:
    • Apache
    • MySQL
    • PHP
    • phpMyAdmin
  4. Selesaikan instalasi

Untuk Linux (Debian/Ubuntu):

sudo apt update
sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql phpmyadmin

Memulai XAMPP:

  1. Buka XAMPP Control Panel
  2. Start modul Apache dan MySQL
  3. Buka browser dan akses http://localhost

Instalasi PHP Built-in Server

Jika Anda hanya ingin server PHP sederhana tanpa Apache:

  1. Pastikan PHP terinstal (cek dengan php -v)
  2. Buat folder project
  3. Masuk ke folder project dan jalankan:
    php -S localhost:8000
  4. Server akan berjalan di http://localhost:8000

Untuk membuatnya bisa diakses dari jaringan lokal:

php -S 0.0.0.0:8000

Hosting phpMyAdmin

Jika menggunakan XAMPP:

phpMyAdmin sudah termasuk dan bisa diakses di http://localhost/phpmyadmin

Jika instalasi manual:

  1. Download phpMyAdmin dari https://www.phpmyadmin.net
  2. Ekstrak ke folder phpmyadmin di root web server
    • Untuk XAMPP: C:\xampp\htdocs\phpmyadmin
    • Untuk Apache di Linux: /var/www/html/phpmyadmin
  3. Buat file konfigurasi:
    cp config.sample.inc.php config.inc.php
  4. Edit config.inc.php dan setel:
    $cfg['blowfish_secret'] = 'randomstring123'; // Buat string acak

Konfigurasi Database MySQL

  1. Akses phpMyAdmin di http://localhost/phpmyadmin
  2. Login dengan:
    • Username: root
    • Password: kosong (default) atau password yang Anda set
  3. Untuk keamanan, buat user baru:
    • Klik "User accounts" > "Add user account"
    • Isi username dan password
    • Berikan privileges yang diperlukan
  4. Buat database baru:
    • Klik "New" di sidebar
    • Beri nama database dan klik "Create"

Mengakses Server dari Perangkat Lain

  1. Cari alamat IP lokal komputer host:
    • Windows: ipconfig di Command Prompt
    • Linux/macOS: ifconfig atau ip a
  2. Pastikan server dijalankan dengan binding ke 0.0.0.0:
    • Untuk PHP built-in server: php -S 0.0.0.0:8000
    • Untuk XAMPP: Edit httpd.conf dan ubah Listen 80 ke Listen 0.0.0.0:80
  3. Di perangkat lain di jaringan yang sama, akses: http://[IP-address]:[port] Contoh: http://192.168.1.100:8000

Keamanan Dasar

  1. Ubah password root MySQL:

    ALTER USER 'root'@'localhost' IDENTIFIED BY 'password-baru-yang-kuat';
  2. Batasi akses phpMyAdmin:

    • Edit file phpmyadmin/.htaccess:
      AuthType Basic
      AuthName "Restricted Access"
      AuthUserFile /path/to/.htpasswd
      Require valid-user
      
    • Buat file password:
      htpasswd -c /path/to/.htpasswd username
  3. Nonaktifkan akses remote jika tidak diperlukan:

    • Edit my.ini atau my.cnf dan tambahkan:
      bind-address = 127.0.0.1
      

Troubleshooting

  1. Port conflict:

    • Error: Apache shutdown unexpectedly
    • Solusi: Cari dan hentikan aplikasi yang menggunakan port 80 atau 443
      netstat -ano | findstr :80
      taskkill /PID [PID] /F
  2. phpMyAdmin tidak bisa akses MySQL:

    • Periksa konfigurasi config.inc.php
    • Pastikan service MySQL berjalan
  3. PHP script tidak dieksekusi:

    • Pastikan file berekstensi .php
    • Untuk built-in server, pastikan direktori yang benar
  4. Akses ditolak dari jaringan lain:

    • Periksa firewall
    • Pastikan server binding ke 0.0.0.0 bukan 127.0.0.1

Dengan panduan ini, Anda dapat membuat server PHP offline lengkap dengan phpMyAdmin tanpa memerlukan Node.js. Server ini cocok untuk pengembangan lokal atau penggunaan dalam jaringan internal.

Packages

No packages published