I think I have killed my LAMP server!
The server is CentOS 6.6 and has Apache 2.2 and PHP 5.4 installed. I didn't originally install anything - it was provisioned this way by my hosting provider.
Everything has been working fine on the server until I tried to install phpMyAdmin. I executed the following commands:
sudo rpm -ivh epel-release* sudo yum install phpmyadmin
Then I restarted Apache but when I tried to browse to my PHP application (which had been working fine) I got a 500 Internal Server Error. I checked the Apache error log, and saw the following:
[Thu Nov 06 22:37:35 2014] [notice] Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations [Thu Nov 06 22:37:38 2014] [error] [client 18.104.22.168] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mcrypt.so' - libmcrypt.so.4: cannot open shared object file: No such file or directory in Unknown on line 0 [Thu Nov 06 22:37:38 2014] [error] [client 22.214.171.124] Premature end of script headers: index.php
I have checked /etc/php.d/mcrypt.ini and it has the following:
; Enable mcrypt extension module extension=mcrypt.so
I thought it might have been some kind of version conflict in that the installed version of PHP was 5.4, but phpMyAdmin was expecting 5.3.
#php -v PHP 5.4.28 (cli) (built: May 7 2014 13:54:44) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
I have since uninstalled phpMyAdmin and tried re-installing PHP, but I think I have completely buggered my server!
This is (ahem) a production environment and now nothing seems to be working.
Would appreciate any support/advice.