0
Problem with php update / homebrew / localhost
Hi there, I try to update my php to 8.0 using homebrew. The update worked fine. The “php -v” shows the version 8.0.14. However when I open my localhost and go to “phpinfo.php” it shows the old version 7.4.22. Obviously my server still uses the old one. How to fix this? How to update the server version. I’m using Mac. Thanks
3 Respuestas
+ 1
Here is the solution I come across online. It's not an easy one, but it works. In the link below is a step-by-step tutorial.
The long story short:
1) Install Apache on your machine
2) Install PHP on your machine (now you are XAMPP independent)
3) change the configuration in http.conf
Here is the link:
https://getgrav.org/blog/macos-monterey-apache-multiple-php-versions
+ 1
Not a mac user, just found this online. Hope it works for you
https://stitcher.io/blog/php-81-upgrade-mac
+ 1
Thanks for your answer @Ipang, but it didn't work for me