Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Ubuntu 16

cat << 'EOL' >phpmyadmin.sh
sudo apt-get update
sudo apt-get install -y phpmyadmin php-mbstring php-gettext
sudo phpenmod mcrypt
sudo phpenmod mbstring
sudo systemctl restart apache2
EOL
chmod +x phpmyadmin.sh
./phpmyadmin.sh

CentOS 7

https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-apache-on-a-centos-7-server

yum install -y epel-release httpd php
yum install -y phpmyadmin 

nano /etc/httpd/conf.d/phpMyAdmin.conf

     <RequireAny>
       #Require ip 127.0.0.1
       #Require ip ::1
       Require all granted
     </RequireAny>
 
WIP Dont USE this line
sed -i "s/localhost/$HOSTNAME/g" /etc/phpMyAdmin/config.inc.php

Enable PWDless Login on CentOS 7

/etc/phpMyAdmin/config.inc.php

$cfg['Servers'][$i]['AllowNoPassword']              // Allow logins without a password. Do not change the FALSE
                                     = TRUE;       // default unless you're running a passwordless MySQL server

CentOS 5

http://stackoverflow.com/questions/5013118/cannot-start-session-without-errors-in-phpmyadmin

https://www.khattam.info/howto-install-phpmyadmin-in-centos-5-2010-09-25.html

yum install -y epel-release httpd php
yum install -y phpmyadmin 

sed -i 's/Allow from 127.0.0.1/Allow from All/g' /etc/httpd/conf.d/phpMyAdmin.conf
sed -i 's/Allow from ::1//g' /etc/httpd/conf.d/phpMyAdmin.conf
chown apache:apache /var/lib/php/session
chmod 777 /var/lib/php/session
service httpd restart

CentOS 6

 

Read the above link re: Session w/o Errors, need to clear browser!! Seriously, clear your browser and try again!

Can't get PWDLess Root on CentOS 6 to work.

yum install -y epel-release httpd php
yum install -y phpmyadmin 

nano /etc/httpd/conf.d/phpMyAdmin.conf

     <RequireAny>
       #Require ip 127.0.0.1
       #Require ip ::1
       Require all granted
     </RequireAny>
 
sed -i 's/Allow from 127.0.0.1/Allow from All/g' /etc/httpd/conf.d/phpMyAdmin.conf
sed -i 's/Allow from ::1//g' /etc/httpd/conf.d/phpMyAdmin.conf
chown apache:apache /var/lib/php/session
chmod 777 /var/lib/php/session
service httpd restart


 

  • No labels

1 Comment