<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% master: phpmyadmin.tex
% phpMyAdmin v0.2
% 2011-05-31 (Rx)

\subsection{phpMyAdmin}
%----------------------

\begin{verbatim}
su                                      als root anmelden
cd /srv/www/htdocs                      in das Apache1.3-Verzeichnis wechseln
cd /srv/www2/htdocs                     in das Apache2-Verzeichnis wechseln
tar xvfj /usr/local/src/phpMyAdmin-2.5.7-pl1.tar.bz2
                                        Dateien entpacken
ln -s phpMyAdmin-2.5.7-pl1 phpMyAdmin   Link zu phpMyAdmin anlegen

vi phpMyAdmin/config.inc.php            phpMyAdmin anpassen
 $cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin/';
                                        URL zu Apache1.3
 $cfg['PmaAbsoluteUri'] = 'http://localhost:81/phpMyAdmin/';
                                        URL zu Apache2
 $cfg['Servers'][$i]['user']          = 'root';   // MySQL user
 $cfg['Servers'][$i]['password']      = 'geheim'; // MySQL password

vi phpMyAdmin/.htaccess                 htaccess anlegen
 AuthType Basic
 AuthName "PhpMyAdmin"
 AuthUserFile /srv/www/htdocs/phpMyAdmin/.htpasswd
                                        Apache1.3
 AuthUserFile /srv/www2/htdocs/phpMyAdmin/.htpasswd
                                        Apache2
 AuthGroupFile /dev/null
 &lt;Limit GET POST&gt;
   require valid-user
 &lt;/Limit&gt;

cd /usr/local/apache/current/bin        Verzeichnis wechseln, Apache1.3
cd /usr/local/apache2/current/bin       Verzeichnis wechseln, Apache2
./htpasswd --help                       Hilfe zu htpasswd
./htpasswd -c /srv/www/htdocs/phpMyAdmin/.htpasswd root
                                        Apache1.3
./htpasswd -c /srv/www2/htdocs/phpMyAdmin/.htpasswd root
                                        Apache2

vi /etc/apache/httpd.conf               Apache1.3 anpassen
vi /etc/apache2/httpd.conf              Apache2 anpassen
 &lt;Directory "/srv/www/htdocs"&gt;
   Options Indexes FollowSymLinks MultiViews
   AllowOverride AuthConfig             None -&gt; AuthConfig
   Order allow,deny
   Allow from all
 &lt;/Directory&gt;

/etc/init.d/apache graceful             Einstellungen neu einlesen, Apache1.3
/etc/init.d/apache2 graceful            Einstellungen neu einlesen, Apache2

exit                                    root abmelden
\end{verbatim}

</pre></body></html>