1. Install cvsup (/usr/port/net/cvsup)
2. copy /usr/share/examples/cvsup/ports-supfile ke /usr/home/ports-supfile
3. modifikasi /usr/home/ports-supfile (misal:*default host=cvsup.au.FreeBSD.org)
4. cvsup -P m ports-supfile or cvsup ports-supfile
Selasa, 17 Februari 2009
Upgrade FreeBSD Port
Instalasi APACHE,PHP,MYSQL di FreeBSD7
1. Install MySQL:
1. masuk ke direktory mysql50-server port dengan menggunakan command:
cd /usr/ports/databases/mysql50-server |
2. Build port
make BUILD_OPTIMIZED=yes BUILD_STATIC=yes |
3. Install mysql50 database server
make config make install |
4. Buka /etc/rc.conf dengan editor misal ( ee /etc/rc.conf ) and tambahkan configurasi sebagai berikut. ( ini digunakan untuk menjalankan Mysql Database server pertama server dinyalakan )
mysql_enable="YES" |
5. Start mysql server secara manual:
/usr/local/etc/rc.d/mysql-server start |
6. masukanpassword untuk MySQL root user dengan perintah sbb:
/usr/local/bin/mysqladmin -uroot password 'new-password' |
7. Mysql telah selesai terinstal.
2. Install Apache22
1. masuk ke direktory apache22 port dengan perintah sbb:
cd /usr/ports/www/apache22 |
2. masukan perintah sbb:
make config make install |
3. buka file configurasi lagi /etc/rc.conf dan masukan baris script dibawah ini. ( script ini bertujuan untuk menjalankan Apache mulai awal komputer dinyalakan )
apache22_enable="YES" |
3. Install PHP5
1. Masuk ke direktori php5 port dengan menggunakan perintah:
cd /usr/ports/lang/php5 |
2. masukan perintah sbb:
make config make install |
3. masuk ke php5-extentions port directory :
cd /usr/ports/lang/php5-extentions |
4. Instalasi PHP
make config make install |
5. masuk Ke setting untuk php.ini :
cp /usr/local/etc/php.ini-dist /usr/local/etc/php.ini |
6. Edit file konfigurasi untuk Apache di (/usr/local/etc/apache22/httpd.conf) and masukkan beberapa baris kode sbb:
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps |
7. Kemudian cari kode di bawah ini :
DirectoryIndex index.html |
8. ganti dengan kode sbb : >( TAMBAH index.php sebagai default file )
DirectoryIndex index.php index.html |
9. Start Apache script:
/usr/local/etc/rc.d/apache22 start |