Originally, I followed these step-by-step guides to set up apache, php, mysql, etc and and get my localhost working:
- http://brianflove.com/2013/10/23/os-x-mavericks-and-apache/
- http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-9-mavericks-development-server/
Then, I accidentally replaced my php.ini file and got the error stated above in the question. Actually, at first I got the mcrypt
missing error.
So, after fixing all of these, I had few things left to do in the php.ini file:
Declared mcrypt like this:
extension=mcrypt.so
Uncommented the extension_dir line and added:
extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20100525/"
I commented out the line:
extension=php_pdo_mysql.dll
Done a
sudo apachectl restart
Finally, everything works as is expected.