Reputation: 186
At work i want to upgrade our system to PHP7. It is currently at PHP5.6. We have a different folder structure, as we have all our code in the /home/user directory.
I am not a server guy, i only code. But i know some linux basics. I came across phpbrew. Is it safe for me to use? as we have a different folder structure then most have.
I dont want to mess up my development server, so it is important for me that i can switch back to 5.6. The server is running debian 8 and we use apache2.
I also came across this article: https://lornajane.net/posts/2016/php-7-0-and-5-6-on-ubuntu Is this a safe way to do what i want?
Any other suggestions are also welcome!
Thanks in advance!
Upvotes: 0
Views: 52
Reputation: 62008
The process described in that link looks plausible. Possibly other online resources might confirm it. Why not make a quick VM and try it out?
Is your current dev server a VM? You could clone it, then make the changes and run both in parallel. If not, you could shut it down briefly, image it, and then use the image to build a VM or another physical box.
That way you've got any custom server setup copied across reliably with minimal effort, and you can test PHP7 along with that stuff, with no risk to the current environment. That would be my advice.
Upvotes: 1