Brighter LAMP: phpmyadmin installation

Install mcrypy for phpmyadmin dependencies:


# apt-get install php5-mcrypt


Now you need to restart apache for the changes to take effect


# /etc/init.d/apache2 restart


Now, on to the installation:

# apt-get install phpmyadmin


Choose Apache2 when you're prompted



Answer yes to Configure database for phpmyadmin with dbconfig-common?



after that,


Configure phpmyadmin


su – httpd

cd domains/

cd ~domains/debian.portnumber53.local/html

(Create the directory if it doesn't exist)

$ ln -s /usr/share/phpmyadmin .phpMyAdmin




nano /etc/phpmyadmin/

$cfg[‘blowfish_secret’] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */




# nano /etc/php5/conf.d/suhosin.ini

Edit the following, keeping in mind that suhosin values may cause issues with some operations

suhosin.request.max_vars 2048
suhosin.request.max_value_length 1000000
suhosin.request.max_array_index_length 256
suhosin.request.max_totalname_length 8192 2048 256 8192 1000000
suhosin.sql.bailout_on_error Off
suhosin.log.file 0
suhosin.log.phpscript 0
suhosin.log.phpscript.is_safe Off
suhosin.log.sapi 0
suhosin.log.script 0
suhosin.log.use-x-forwarded-for Off



Disable the warning


# nano /etc/phpmyadmin/

$cfg[‘SuhosinDisableWarning’] = true;


Tagged , , . Bookmark the permalink.

Leave a Reply