From SlackWiki
Revision as of 21:21, 6 June 2009 by Erik (talk | contribs) (Copy from old)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search



Download phpMyAdmin from and put it in /usr/src/sourcepkg. Extract and add a symbolic link for later use in our config.

cd /var/www
tar jxvf /usr/src/source/phpMyAdmin-XXX.tar.bz2
ln -sf phpMyAdmin-XXX phpMyAdmin

apache1 running under Slackware <12

Make a directory for the config files and create the phpMyAdmin config file for apache.

mkdir /etc/apache/conf.d
touch /etc/apache/conf.d/phpMyAdmin.conf
vi /etc/apache/conf.d/phpMyAdmin.conf

Add alias to apache (like at apache-2) and add these lines to phpMyAdmin.conf

Alias /phpMyAdmin /var/www/phpMyAdmin

<Location /phpMyAdmin>
#    Order deny,allow
#    Deny from all
#    Allow from
#    Allow from ::1
#    Allow from

and append to the httpd.conf

echo 'Include /etc/apache/conf.d/phpMyAdmin.conf' >> /etc/apache/httpd.conf

httpd (apache2) under Slackware 12

Create the phpMyAdmin config file and edit it.

touch /etc/httpd/phpMyAdmin.conf
jed /etc/httpd/phpMyAdmin.conf

Add an alias to httpd (since the phpMyAdmin directory isn't in var/www/htdocs) and change the Directory rules.

# phpMyAdmin - MySQL Database Administration Tool

Alias /phpMyAdmin /var/www/phpMyAdmin

<Directory /var/www/phpMyAdmin>
#  AllowOverride None
#  Options None
  Order allow,deny
  Allow from all

Edit httpd.conf to use our new config and append at the end.

# Uncomment the following line to enable phpMyAdmin support:
Include /etc/httpd/phpMyAdmin.conf


Restart apache

/etc/apache/rc.httpd restart

Go to your browser and open http://localhost/phpMyAdmin

If you have set a password for your MySQL root user, you will have an error

Edit /var/www/phpMyAdmin/

Change to something unique:

$cfg['blowfish_secret'] = ;


$cfg['Servers'][$i]['auth_type']     = 'config';


$cfg['Servers'][$i]['auth_type']     = 'cookie';

refresh the browser