Today is Stephen Hawking’s birthday. He turns 70.
I got PHPMyAdmin installed through YUM after enabling the EPEL (Extra Packages for Enterprise Linux) repository. Once I enabled EPEL, it was a simple
yum install phpMyAdminIt installs to /usr/share/phpMyAdmin, so from there you just create a symbolic link in the web root to that directory, or change the httpd config to serve out that directory for a virtual host. Your choice. It’s just easier to run this and be done:
ln -s /usr/share/phpMyAdmin/ /var/www/html/mysql
So then http://mywebserver/mysql goes to my phpMyAdmin installation. However, if you’ve just set up MySQL, you will need to set the root user password by bringing up mysqld and running the following command as root:
mysqladmin -u root password P@55w0rd
You should, of course, replace ‘P@55w0rd’ with the password of your choice. At that time you can visit your phpMyAdmin installation through the web interface and log in with those credentials. You are encouraged to then create a user for yourself that does not have root privileges and use it instead, but I don’t see that practiced very often.
So there it is – phpMyAdmin installed through YUM.
I had another problem when I tried to get to phpMyAdmin on that server – none of the PHP code was run. It just showed the raw PHP files as if I’d asked for copies of them. PHP was installed, but I had never encountered an installation that wasn’t configured in apache.
Turns out it was a simple inclusion needed in httpd.conf of the PHP configurations. In /etc/httpd/conf.d/ there are some files that end in .conf that need to be included. So at the end of httpd.conf I put a line that says
Include conf.d/*.confI restarted Apache with that configuration and it worked. I can’t say if that’s the best way to do it, but for my test VM that’s fine with me.
