Thursday, July 3, 2008

Installing Apache Web Server di Gutsy

seperti biasa paket2 diambil dari dvd repository
paket yang diinstall : apache2
selese nginstall aku nda tau nyeting2 gmn???:(

* menjalankan service apache :
sudo /usr/sbin/apache2ctl start
* mematikan service apache :
sudo /usr/sbin/apache2ctl stop
* mengganti DocumentRoot
sudo gedit /etc/apache2/sites-enabled/000-default


ServerAdmin webmaster@localhost
#DocumentRoot /var/www/
DocumentRoot /home/zakiya/www ---> ini yang di ganti

Options FollowSymLinks
AllowOverride None


#
--->ini juga
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all


lalu restart apachenya, ketik :
sudo /usr/sbin/apache2ctl restart
* setelah itu install PHP
* setelah semua selese, tes web server apache dengan membuat file cobaPHP.php dan simpan di direktori /home/zakiya/www

#cobaPHP.php
$a = 4;
echo
"
tes php bisa nda???
cetak a=$a
";
?>

 buka jendela browser, ketikan alamat : http://localhost/cobaPHP.php
suksesss!!!!

tapi kok belum bisa konek ke mysql nya ya? :(

semarang, 7 juni 2008 20:30

No comments: