Thursday, November 25, 2010

Installing phpMyAdmin on Solaris 10

cd /usr/local/apache/htdocs
/usr/local/bin/tar -xvzf ../../packages/phpMyAdmin-3.2.5-all-languages.tar.gz
mv phpMyAdmin-3.2.5-all-languages phpmyadmin

cd /usr/local/apache/htdocs/phpMyAdmin

For new
mkdir config # create directory for saving
chmod o+rw config # give it world writable permissions
To edit current
cp config.inc.php config/ # copy current configuration for editing
chmod o+w config/config.inc.php # give it world writable permissions

http://akash/phpmyadmin/setup

To revert back permission to secure

mv config/config.inc.php . # move file to current directory
chmod o-rw config.inc.php # remove world read and write permissions

If using phpMyAdmin create a file called .htaccess in the phpMyAdmin install directory and add these lines:
This makes it so that phpMyAdmin can only be accessed from the localhost.

vi .htaccess
IndexIgnore *
order deny,allow
deny from all
allow from 127.0.0.1

To access
http://akash/phpmyadmin

No comments:

Post a Comment