Search code examples
mysqlamazon-web-servicesamazon-ec2phpmyadminlamp

How do I update phpMyAdmin on EC2 LAMP Server?


I have a LAMP server on an EC2 instance. I downloaded phpMyAdmin using Amazon's guide here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html.

On the phpMyAdmin page it says that: "A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is 4.6.5.2, released on 2016-12-05." and I need to update it and also MySQL to use new features they put on the updates.

I'm accessing the EC2 instance from the terminal in my Mac laptop. I've tried a lot of things but I couldn't manage it. I've tried

sudo yum install -y phpMyAdmin
sudo yum install

I tried to manually download the latest version from phpmyadmin.net and change the files in the folder but I couldn't access the phpmyadmin folder in the first place.

Any help would be appreciated, Thanks


Solution

  • You're using the version of phpMyAdmin maintained by your distribution (presumably Fedora, CentOS, or Red Hat); this means that basically you're not responsible for (or able to) upgrade the software that's under control of the package manager (aside from running the updates occasionally). If you wish to use a different version, you're certainly able to remove the package manager version then install it manually. I don't use EPEL, but I believe the highest version currently distributed is 4.4.15.9 (reference, which I think is because of the older versions of PHP and/or MySQL which are currently shipped. So you might not be able to upgrade due to your MySQL or PHP versions, but YMMV.

    Basically, if you're using the package managed version, the whole point is so you don't have to worry about manual updates.

    You can disable the notification by adding the directive $cfg['VersionCheck'] = false; to your config.inc.php (which may be in /etc/ or /etc/phpmyadmin, but I'm just guessing about how your distribution may handle it.).