https://www.slackwiki.com/index.php?title=PhpMyAdmin&feed=atom&action=historyPhpMyAdmin - Revision history2024-03-29T14:11:30ZRevision history for this page on the wikiMediaWiki 1.40.0https://www.slackwiki.com/index.php?title=PhpMyAdmin&diff=156&oldid=prevErik: Copy from old2009-06-06T21:21:37Z<p>Copy from old</p>
<p><b>New page</b></p><div>= phpMyAdmin =<br />
<br />
== Install ==<br />
Download ''phpMyAdmin'' from [http://www.phpmyadmin.net phpMyAdmin.net] and put it in ''/usr/src/sourcepkg''.<br />
Extract and add a symbolic link for later use in our config.<br />
<br />
<pre><br />
cd /var/www<br />
tar jxvf /usr/src/source/phpMyAdmin-XXX.tar.bz2<br />
ln -sf phpMyAdmin-XXX phpMyAdmin<br />
</pre><br />
<br />
=== apache1 running under Slackware <12 ===<br />
Make a directory for the config files and create the phpMyAdmin config file for apache.<br />
<br />
<pre><br />
mkdir /etc/apache/conf.d<br />
touch /etc/apache/conf.d/phpMyAdmin.conf<br />
vi /etc/apache/conf.d/phpMyAdmin.conf<br />
</pre><br />
<br />
Add alias to apache (like at apache-2) and add these lines to phpMyAdmin.conf<br />
<br />
<pre><br />
Alias /phpMyAdmin /var/www/phpMyAdmin<br />
<br />
<Location /phpMyAdmin><br />
# Order deny,allow<br />
# Deny from all<br />
# Allow from 127.0.0.1<br />
# Allow from ::1<br />
# Allow from .example.com<br />
</Location><br />
</pre><br />
<br />
and append to the httpd.conf <br />
<br />
<pre><br />
echo 'Include /etc/apache/conf.d/phpMyAdmin.conf' >> /etc/apache/httpd.conf<br />
</pre><br />
<br />
=== httpd (apache2) under Slackware 12 ===<br />
Create the phpMyAdmin config file and edit it.<br />
<br />
<pre><br />
touch /etc/httpd/phpMyAdmin.conf<br />
jed /etc/httpd/phpMyAdmin.conf<br />
</pre><br />
<br />
Add an alias to httpd (since the phpMyAdmin directory isn't in ''var/www/htdocs'') and change the ''Directory'' rules. <br />
<br />
<pre><br />
#<br />
# phpMyAdmin - MySQL Database Administration Tool<br />
#<br />
<br />
Alias /phpMyAdmin /var/www/phpMyAdmin<br />
<br />
<Directory /var/www/phpMyAdmin><br />
# AllowOverride None<br />
# Options None<br />
Order allow,deny<br />
Allow from all<br />
</Directory><br />
</pre><br />
<br />
Edit ''httpd.conf'' to use our new config and append at the end. <br />
<br />
<pre><br />
# Uncomment the following line to enable phpMyAdmin support:<br />
#<br />
Include /etc/httpd/phpMyAdmin.conf<br />
</pre><br />
<br />
== Configuration ==<br />
Restart apache<br />
<pre><br />
/etc/apache/rc.httpd restart<br />
</pre><br />
<br />
Go to your browser and open http://localhost/phpMyAdmin <br />
<br />
If you have set a password for your MySQL root user, you will have an error<br />
<br />
Edit /var/www/phpMyAdmin/config.inc.php:<br />
<br />
Change to something unique: <br />
$cfg['blowfish_secret'] = '';<br />
<br />
Change:<br />
$cfg['Servers'][$i]['auth_type'] = 'config';<br />
To:<br />
$cfg['Servers'][$i]['auth_type'] = 'cookie';<br />
<br />
refresh the browser<br />
<br />
Finished.<br />
<br />
[[Category:Tutorials]]</div>Erik