How to undo “sudo rm -rf /etc/apache2/other/+php-osx.conf”

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

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 com/tag/version">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?

profilepic.png
manpreet 2 years ago

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.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.