I have been very impressed with Valet+. It is a fork of of Valet. I decided to automate the install so that it would check for other running web server software such as XAMP, MAMP, Local by Flywheel, and Desktop Server and warn the user so they can remove it. It is an opinionated install so fee free to change it.
NOTE You will want to have backed up both the database and WordPress files before you run this software. I am not responsible for any lost data.
I have included a script valet-plus-list, to use to first check and see if any web server software is running. If it is, run valet-plus-destroy. If valet-plus-destroy comes up clean, you can run valet-plus-install. Please note it just lists if non-valet web server is running, it does not remove all of the software.
You will need to create a bin directory off of you home directory, add the files, and set the permission
cut, paste into terminal, and run
You will now want to copy the code from these gists place it in the corresponding files by using the text editor of your choice.
Note: You may be asked to enter your password twice…