Installing PHPMyAdmin on Apache with FReeBSD

I need to install phpmyadmin on the external Apache server running FreeBSD. I downloaded the phpMyAdmin. … tar.gz file to my Windows XP computer. I can upload it to the server, but I don’t know how to get it to self-install once it’s uploaded. What do I type in the telnet screen to unzip it once I upload it? I suppose I should put it in a usr/local/phpmyadmin folder.

Are there any other steps I must do to set it up to work? Note that I expect to use it to create and manage databases from my work computer. Is this the right tool?

Steve H

There are more ways to install phpmyadmin on a FreeBSD server.

You can install it from ports of FreBSD:

cd /usr/ports/databases/phpmyadmin/
make install

Now PhpMyAdmin is installed in /usr/local/www/phpMyAdmin.

Add following line at the bottom of /usr/local/etc/apache2/httpd.conf:

Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"

And restart Apache (/usr/local/etc/rc.d/apache2 restart).

Go to the path /usr/local/www/phpMyAdmin:

cd /usr/local/www/phpMyAdmin

And edit (by mc, ee or vi).

If you want to do it manually (I recomend to use ports), it’s similar, only use your installed path.
And how extract your uploaded file ?

tar xfz phpMyAdmin.tar.gz -C /usr/local/

Now you have directory some phpMyAdmin in /usr/local/

I forgot to say that the URL of your phpmyadmin will be

My version of FreeBSD is 4.7. Looks like I need to upgrade first.


No problem :slight_smile:

Yes, that is quite old FreeBSD :smiley: