MacOS Mojave - remove PHP installation from php-osx.liip.ch
I followed this tutorial and installed the php 7.3 version on MacOSX Mojave, running
curl -s | bash -s 7.3But now I changed my mind and I want remove it and return to a clean status; what are the steps I should follow to remove every trace of it? Thank you!
(Sorry it is a repost from Stackoverflow)
2 Answers
Based on the answer by DavidPostill, and what I have found on Time Machine,this would be my course of action
/etc/apache2/httpd.conf is the same, so I'll keep it untouched
/etc/apache2/other/+php-osx.conf > remove
usr/local/php5
usr/local/php5-7.3.8-20190811-205217remove them
.profile on my user's folder: remove the line export PATH=/usr/local/php5/bin:$PATH
usr/local/packager > I think it can be removed
What do you think?
2What are the steps I should follow to remove every trace of it?
Uninstall
Change in
/etc/apache2/httpd.confLoadModule php5_module /usr/local/php5/libphp5.soto
LoadModule php5_module libexec/apache2/libphp5.soAlso delete the file
+php-osx.confand+entropy-php.confin/etc/apache2/otherand optionally remove/usr/local/php5-*
Source PHP for OS X / macOS as binary package
2