r/PHPhelp • u/Gbitd • Jan 02 '26
How to update PHP installed by the php.new script?
https://php.new/ is the installation form even the Laravel documentation recommends. But how do you update when new versions are released? Since it seems to be a manual instalation and not a repository.
I'm in Linux Opensuse btw (The distro packaged version was giving me some headaches with Laravel setup)
1
Upvotes
7
u/ToySoldier92 Jan 02 '26
php.new *IS* the Laravel install (it's Laravel Herd Lite, and advertises for Herd as well). Looking at the installer script, you mostly download binaries, so updating probably means running the installer again.
That said, there are other ways to get PHP running on your device, whichever way is better depends on your preferences and requirements.
2
u/martinbean Jan 02 '26
This is why I use Docker. The version of PHP my project uses is based on the Docker image version I’m using in the project, and also corresponds to production. If I need to update the version of PHP my project is using, I update a single line in my compose.yaml file and re-build the image.
4
u/divdiv23 Jan 02 '26
If you prefer not to use docker, like others here are suggesting, you can run different versions of PHP side by side on one machine by using PHP FPM, which is what I do under Linux and it works great.
0
u/[deleted] Jan 02 '26
[deleted] — view deleted comment