Open Terminal and run this command:

sudo cp /etc/php.ini.default /etc/php.ini
sudo apachectl restart
Zach Zach (249)
3 minutes

As someone who uses OS X dashboard widgets often, I was dismayed to find out that Apple has hidden it by default. Thankfully, it's easy to reenable the dashboard in El Capitan. Here's how to do it.