2/12/2007

FreeBSD 6,2 with MySQL 5 + Apache 2 + PHP 5 + phpMyAdmin


After some time using FreeBSD, I liked this ruined, robust one and with many brought up to date and steady packages. Here I show as to install and to configure the surrounding celebrity LAMP (or MySQL would be FAMP - FreeBSD + Apache + + PHP) in this operational system.


To bring up to date ports before starting to install the packages:


# portsnap fetch
# portsnap extract
# portsnap update


To have much patience, therefore the process delays, but valley the penalty.


To install package mc or its publisher shell preferred, command below:


# pkg_add - r mc


Data base the MySQL50-server:


# compact disc /usr/ports/databases/mysql50-server
# make install clean
# mysql_install_db
# chown - R mysql: mysql /var/db/mysql


Activating in boot it adds in the /etc/rc.conf archive:



mysql_enable= " YES "


It activates manually:


# mysqld_safe --user=mysql&


OBS: Remembering that we leave the bank with total access without password, later it places a password to have access the data base for its security.


Complete History


0 Comments: