Skip to content

Installation phpmyadmin on SLES 11

1.)first you can download source code
2.) Untar the source code in your webserver’s document root
3.) create softlink to directory
selim:/srv/www/htdocs # ls -l
total 20
drwxr-xr-x 2 root root 4096 May 21 15:19 gif
drwxr-xr-x 2 root root 4096 Jul 28 18:07 hosts
-rw-r–r– 1 root root 130 Jun 1 11:27 index.html
-rw-r–r– 1 root root 2356 Feb 23 2009 info2html.css
drwxr-xr-x 11 root root 4096 Aug 3 22:10 phpMyAdmin-3.3.5-english
lrwxrwxrwx 1 root root 25 Aug 3 21:46 phpmyadmin -> phpMyAdmin-3.3.5-english/
selim:/srv/www/htdocs #

Instead of manually editing config.inc.php, you can use the Setup
Script. First you must manually create a folder config in the
phpMyAdmin directory. This is a security measure. On a Linux/Unix
system you can use the following commands:
4.)
cd phpMyAdmin
mkdir config # create directory for saving
chmod o+rw config # give it world writable permissions

And to edit an existing configuration, copy it over first:

cp config.inc.php config/ # copy current configuration for editing
chmod o+w config/config.inc.php # give it world writable permissions

Next, open setup/ in your browser.

Once the file has been saved, it must be moved out of the config/
directory and the permissions must be reset, again as a security
measure:

mv config/config.inc.php . # move file to current directory
chmod o-rw config.inc.php # remove world read and write permissions
rm -rf config # remove not needed directory
###
selim:/srv/www/htdocs/phpmyadmin # mkdir config
selim:/srv/www/htdocs/phpmyadmin # chmod o+rw config
selim:/srv/www/htdocs/phpmyadmin # cp config.inc.php config/
selim:/srv/www/htdocs/phpmyadmin # chmod o+w config/config.inc.php
selim:/srv/www/htdocs/phpmyadmin # yast
selim:/srv/www/htdocs/phpmyadmin # mv config/config.inc.php .
selim:/srv/www/htdocs/phpmyadmin # chmod o-rw config.inc.php
selim:/srv/www/htdocs/phpmyadmin # rm -rf config
###

Now the file is ready to be used. You can choose to review or edit the
file with your favorite editor, if you prefer to set some advanced
options which the setup script does not provide.

PS: If you cannot open directory on your Browser Please check the Configuration file
/etc/apache2/default-server.conf
### Modified by Selim
#Options None
Options Indexes FollowSymLinks (you have to on )
#after any configuration please restart the Apache

#END