Friday, February 29, 2008

FAMP Web server

FAMP ? apa maksudnya ? Jika di linux kita mengenal istilah LAMP yang maksudnya Linux Apache Mysql Php, maka FAMP di atas maksudnya .. anda pasti tahu :)… hehe

( apache 2.2, mysql 5.0 server dan php 4.4 )

## Apache ##

cd /usr/ports/www/apache22
[root@proxy3 /usr/ports/www/apache22]# make config ( tentukan library yang akan di include-kan)
[root@proxy3 /usr/ports/www/apache22]# make install clean

DocumentRoot :
[root@proxy3 /usr/local/www/apache22/data]# default dari apache

tambahkan pada /etc/rc.conf :
apache22_enable="YES"

juga pada /boot/loader.conf
accf_http_load="YES"

Apache sh script service start :
[root@proxy3 /usr/local/etc/rc.d]# apache22 <= ( execute otomatis dari apache22_enable="YES" )

Apache execute binary secara manual :
/usr/local/sbin/httpd [-k start|restart|graceful|graceful-stop|stop]

## Mysql ##

cd /usr/ports/databases/mysql50-server

root@proxy3 /usr/ports/databases/mysql50-server]# make install clean
# cp /usr/local/share/mysql/my-medium.cnf /etc/my.cnf

Mysql sh script service start
[root@proxy3 /usr/local/etc/rc.d]# mysql-server ( execute otomatis dari mysql_enable="YES" )

Create password root mysql
# mysqladmin –u root password ‘urrootpassword’
#[root@proxy3 /]# mysql -u root –p

Enter password: urrootpassword

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.0.45 FreeBSD port: mysql-server-5.0.45_1

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

Mysql>

## PHP ##

cd /usr/ports/lang/php4
[root@proxy3 /usr/ports/lang/php4]# make config ( gunakan SUHOSIN patch (Enable Suhosin protection system ))
[root@proxy3 /usr/ports/lang/php4]# make install clean
[root@proxy3 /usr/local/www/apache22/data]# default dari apache

Tambahkan pada httpd.conf :

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

# cp /usr/local/etc/php.ini-dist /usr/local/etc/apache22/php.ini
# create php test file ( test.php )

phpinfo();

Letakkan test.php di DocumentRoot



[get this widget]

6 komentar:

JoJosho said...

See Here

Kalar said...

This comment has been removed because it linked to malicious content. Learn more.

Fenridal said...

See here or here

Kalar said...

SECURITY CENTER: See Please Here

Akinol said...

See Please Here

OLED said...

Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the OLED, I hope you enjoy. The address is http://oled-brasil.blogspot.com. A hug.