App is showing 7.3 and Terminal is showing 8.1 #759
-
I am updating my local php version to 8.1 from 7.3 and I was able to follow the install instructions to get the CLI to correctly show 8.1 when i run php -v. However, my laravel application is still showing 7.3.25 when i use the phpinfo() function. I have reinstalled everything, updated, upgraded, and cleaned up brew, and made sure that nginx has been restarted, but my application still shows 7.3.25 running. I am on an intel macbook pro, running macos Catalina. One weird thing is that previously when i had been using the default Homebrew php versions i was able to run brew services list and see php running in there, but i dont see anything like a php service mentioned in this readme at all. Also when i run the services list now i can see php as not running and displaying an error 19968 which I have never seen before.
Any help would be great. I had seen multiple articles recommending using this php tap instead of the default Homebrew php tap but now its not updating to 8.1 as expected. Let me know if I need to provide any other information. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Please try the following
|
Beta Was this translation helpful? Give feedback.
-
So that solved the problem for the php error and I did see 8.1.2 being used in the app. But now i tried to install and switch to 7.4 and its doing the same thing again where its showing as 7.4 in the terminal after following the instructions, but in the app its still showing 8.1 in the app. Here are the steps i followed to switch to 7.4:
Then after all that i correctly see the terminal showing php 7.4 running but when i check phpinfo() in my app its still showing 8.1.2.
So is there a step I'm missing? I'm following the instructions exactly as stated in the README but its not working as intended. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
-
There should be a service for brew reinstall shivammathur/php/[email protected] Then switch to brew services stop php
brew services start [email protected] |
Beta Was this translation helpful? Give feedback.
-
HI!! php error 19968 migueloduber ~/Library/LaunchAgents/homebrew.mxcl.php.plist [14-Jan-2023 02:58:11] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root |
Beta Was this translation helpful? Give feedback.
There should be a service for
[email protected]
when you runbrew services
.If it is not there try reinstalling
[email protected]
Then switch to
[email protected]
service.