Install phpmyadmin {freebsd}

Posted: August 5, 2010 in Freebsd

How to install phpmyAdmin on freebsd?

1. Install apache & mysql-server

ko cari sendiri lah .. dont play2..!!

mat salleh cakap..

ask my uncle G.. here GGG

https://panaharjuna.wordpress.com/2009/12/10/freebsd-install-apache2-php5-mysql/

2. install phpmyadmin

bsd# cd /usr/ports/databases/phpmyadmin/

bsd# make install clean

3. phpmyadmin and apache

bsd# pico /app/apache22/httpd.conf

{i always make /usr/local/etc/ symlick to /app <– ln -s /usr/local/etc/ /app}

add this

####################################

Alias /phpmyadmin /usr/local/www/phpMyAdmin

<Directory “/usr/local/www/phpMyAdmin”>

Order allow,deny

Allow from all

</Directory>

####################################

4. Config.inc.php

bsd# pico /usr/local/www/phpMyAdmin/config.inc.php

########################################

<?php

/*

* Generated configuration file

* Generated by: phpMyAdmin 3.3.5 setup script by Piotr Przybylski <piotrprz@gmail.com>

* Date: Fri, 06 Aug 2010 01:19:44 +0800

*/

/* Servers configuration */

$i = 0;

/* Server: localhost [1] */

$i++;

$cfg[‘Servers’][$i][‘verbose’] = ”;

$cfg[‘Servers’][$i][‘host’] = ‘localhost’;

$cfg[‘Servers’][$i][‘port’] = ”;

$cfg[‘Servers’][$i][‘socket’] = ”;

$cfg[‘Servers’][$i][‘connect_type’] = ‘tcp’;

$cfg[‘Servers’][$i][‘extension’] = ‘mysqli’;

$cfg[‘Servers’][$i][‘auth_type’] = ‘cookie’;

$cfg[‘Servers’][$i][‘user’] = ”;

$cfg[‘Servers’][$i][‘password’] = ”;

/* End of servers configuration */

$cfg[‘DefaultLang’] = ‘en-utf-8’;

$cfg[‘blowfish_secret’] = ‘bilamanaWindowSe7enjadiFIREwall’;

$cfg[‘ServerDefault’] = 1;

$cfg[‘UploadDir’] = ”;

$cfg[‘SaveDir’] = ”;

?>

########################################

5. Restart apache22 !!!

pandai2 lah ko nak restart!!!

bsd# /app/rc.d/apache22 restart

6. ABIS DAHH!!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s