How to undo "sudo rm -rf /etc/apache2/other/+php-osx.conf" After I did this:

sudo unlink /usr/local/php5
sudo rm -rf /usr/local/php5-*


To remove the supplemental configuration file that was installed with the updated PHP software, you may be able to remove the config file at /etc/apache2/other/+php-osx.conf:

sudo rm -rf /etc/apache2/other/+php-osx.conf


Then restart Apache:

sudo apachectl restart


php stopped running even when I see the version of php -- using

php -v
PHP 5.5.6 (cli) (built: Nov 14 2013 14:08:56) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
    with Xdebug v2.2.2, Copyright (c) 2002-2013, by Derick Rethans


Can anybody tell me why that is?
You can't undo what you did, unless you can recover the files from a Time Machine backup. PHP probably stopped running because you removed files it needs.