Struktur direktori dari Apache, PHP, MySQL setelah menginstall AppServ.

Gambar 1 Struktur direktori setelah install AppServ.
Struktur direktori dari Apache Web Server
• apache/bin Program Apache utama.
• apache/conf File konfigurasi Apache.
• apache/error Template Apache Error (Hanya di Apache2.x).
• apache/icons Icon Apache.
• apache/logs Apache Log file.
• apache/modules Apache Modules.
Struktur direktori dari MySQL Database
• mysql/bin File MySQL database eksekusi utama.
• mysql/data Penimpanan MySQL database.
• mysql/share Pesan Error MySQL.
Struktur direktori dari PHP
• php PHP Command line Execution dan DLL Library.
• php/ext PECL PHP Extension untuk PHP (Ada di PHP5).
• php/extension PECL PHP Extension untuk PHP (Ada di PHP 4).
• php/PEAR PEAR Framework Components untuk PHP.
Struktur direktori dari folder www.
• www Directory Root untuk file Web.
• www/cgi-bin CGI file directory.
• www/phpMyAdmin phpMyAdmin program directory.
• www/appserv AppServ file, you can delete it after install.
• www/index.php AppServ index.php file you can delete it after install.
Contoh pemrograman PHP yang berjalan di localhost menggunakan AppServ
Setelah menginstall AppServ dan mengetahui tentang struktur direktori, anda dapat menulis skrip PHP dan simpan data anda di C:/AppServ/www. Jika anda ingin mencoba skrip yang anda buat, buka browser anda, dan tulis di address bar seperti: http://localhost/test.php

Gambar 2 Contoh skrip test.php di localhost.
Copyright © by AppServNetwork All Right Reserved.