M HYPE SPLASH
// general

MacOS Mojave - remove PHP installation from php-osx.liip.ch

By Andrew Adams

I followed this tutorial and installed the php 7.3 version on MacOSX Mojave, running

curl -s | bash -s 7.3

But 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-205217

remove 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?

2

What are the steps I should follow to remove every trace of it?

Uninstall

Change in /etc/apache2/httpd.conf

LoadModule php5_module /usr/local/php5/libphp5.so

to

LoadModule php5_module libexec/apache2/libphp5.so

Also delete the file +php-osx.conf and +entropy-php.conf in /etc/apache2/other and optionally remove /usr/local/php5-*

Source PHP for OS X / macOS as binary package

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy