1.Install Apache
# cd /usr/ports/www/apache22
# make install clean
2.Install Lang
# cd /usr/ports/lang/php4
# make install clean
# cd /usr/ports/lang/php4-extentions
# make install clean
3.Install Mysql
# cd /usr/ports/databases/mysql51-client/
# make install clean
#/usr/ports/databases/mysql51-server/
# make install clean
4.Edit httpd.conf
Edit apachenya biar suport php,
ee /usr/local/etc/apche22/httpd.conf
rubah:
DirectoryIndex index.html index.html.var index.php //supaya bisa support php
Dan tambahkan seperti ini :
AddType application/x-httpd-php .php //supaya support php
5.Edit ph.ini
#cp /usr/local/etc/php.ini-recommended /usr/local/lib/php.ini
#ee /usr/local/lib/php.ini
doc_root=”/usr/local/www/apache22/data” # loksi directory webnya
6.Menjalankan webservernya
/usr/local/sbin/apachectl start
No comments:
Post a Comment