Now we have already install apache,mysql and also PHP in our box.. so what next? I myself feel hard to manage my database using CLI :P and the solutions is using PhpMyAdmin
lets begin..
as root
#cd /usr/ports/databases/phpmy
admin
#make config
#make install clean
Once done the compiling session it will install to /usr/local/www/PhpMyAdmin
next we have to configure the config.inc.php to make phpmyadmin can talk with mysql
#cd /usr/local/www/phpmyadmin
#cp config.sample.inc.php config.inc.php
Now we will edit the file
#ee config.inc.php
/* set your secret password */
$cfg['blowfish_secret'] = 'password';
/* uncomment the following line and put your mysql login */
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = 'password';
Save!
Then we have to configure httpd.conf to treat phpmyadmin as one of the aliases
#ee /usr/local/etc/apache22/httpd.conf
add the following line
Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"
Options none
AllowOverride Limit
Order Deny,Allow
Allow from all
Save!
Restart apache and try browse using your browser http://[ip]/phpmyadmin/
If prompt with login then you are done!
lets begin..
as root
#cd /usr/ports/databases/phpmy
admin
#make config
#make install clean
Once done the compiling session it will install to /usr/local/www/PhpMyAdmin
next we have to configure the config.inc.php to make phpmyadmin can talk with mysql
#cd /usr/local/www/phpmyadmin
#cp config.sample.inc.php config.inc.php
Now we will edit the file
#ee config.inc.php
/* set your secret password */
$cfg['blowfish_secret'] = 'password';
/* uncomment the following line and put your mysql login */
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = 'password';
Save!
Then we have to configure httpd.conf to treat phpmyadmin as one of the aliases
#ee /usr/local/etc/apache22/httpd.conf
add the following line
Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"
Options none
AllowOverride Limit
Order Deny,Allow
Allow from all
Save!
Restart apache and try browse using your browser http://[ip]/phpmyadmin/
If prompt with login then you are done!
Comments