FreeBSD Web서비스를 시작해보자.
#cd /usr/ports/databases/mysql56-server
#make install clean;
#echo 'mysql_enable="YES"' >> /etc/rc.conf
#/usr/local/etc/rc.d/mysql-server start
#mysql -uroot
-------------------------------------------------------------------------------------------
use mysql;
update user set password = password('your_password') where user = 'root';
flush privileges;
-------------------------------------------------------------------------------------------
#cd /usr/ports/www/apache24
#make install clean;
#cd /usr/ports/lang/php5-extensions
select options you need (curl, gd, mcrypt, mbstring, etc.)
#make install clean;
#cd /usr/ports/www/mod_php5
#make install clean;
#echo 'apache24_enable="YES"' >> /etc/rc.conf
#/urs/local/etc/rc.d/apache24 start
#vi /usr/local/etc/apache24/httpd.conf
------------------------------------------------------------------------------------------------------
LoadModule php5_module libexec/apache24/libphp5.so
DirectoryIndex Index.html
=>
DirectoryIndex Index.php Index.html
------------------------------------------------------------------------------------------------------
#cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini