Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork185
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. |
BetaWas this translation helpful?Give feedback.
All reactions
There should be a service forphp@7.4 when you runbrew services.
If it is not there try reinstallingphp@7.4
brew reinstall shivammathur/php/php@7.4
Then switch tophp@7.4 service.
brew services stop phpbrew services start php@7.4
Replies: 4 comments 4 replies
-
Please try the following
|
BetaWas this translation helpful?Give feedback.
All reactions
❤️ 2
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Amazing! EDIT: Added an additional note about this not working for trying to install php7.4. |
BetaWas this translation helpful?Give feedback.
All reactions
-
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. |
BetaWas this translation helpful?Give feedback.
All reactions
-
There should be a service for brew reinstall shivammathur/php/php@7.4 Then switch to brew services stop phpbrew services start php@7.4 |
BetaWas this translation helpful?Give feedback.
All reactions
-
Ok yeah, I was not stopping the default process and starting the new one. The README does not mention this step and it is critical in making it work properly. I understand this may seem like an obvious step in the process but for people like me who do not use these types of things it would be very helpful to have this last step included. Thank you for your help. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I will update the README |
BetaWas this translation helpful?Give feedback.
All reactions
-
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 |
BetaWas this translation helpful?Give feedback.
All reactions
-
This might help |
BetaWas this translation helpful?Give feedback.