Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't seem to be working when switching from the latest version of PHP #15

Open
moorebrett0 opened this issue May 18, 2020 · 15 comments

Comments

@moorebrett0
Copy link

moorebrett0 commented May 18, 2020

Hey there!

When I try and switch from php 7.4.5, nothing seems to happen.

brett~/Sites$ switch-php 7.1
Password:
Valet stopped ✔
PHP switched ✔
Valet started ✔

You are now using PHP 7.4.5

I'd expect PHP 7.1 to be in use after running this.

@eleftrik
Copy link

eleftrik commented Jun 3, 2020

Same here.

❯ php --version
PHP 7.4.6 (cli) (built: May 29 2020 01:44:57) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.6, Copyright (c), by Zend Technologies


❯ switch-php 7.3 -v
 👀  Verifying that Valet is installed...
 🔍  Checking which PHP versions are installed...
 🔀  Switching to php@7.3...
 ==>  Stopping php@7.3...
 ==>  Unlinking php@7.3...
 ==>  Linking php@7.3...
 ==>  Starting php@7.3...
 ✅  PHP switched

You are now using PHP 7.4.6


❯ php --version
PHP 7.4.6 (cli) (built: May 29 2020 01:44:57) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.6, Copyright (c), by Zend Technologies


@jalendport
Copy link
Owner

@eleftrik aha I know exactly what's happening to you - I'll push a fix here in a bit.

@moorebrett0 not sure why yours is doing that... 🤔 Can you try running switch-php in verbose mode and sharing that here? Maybe also give me the output of brew services list while you're at it...

@eleftrik
Copy link

eleftrik commented Jun 9, 2020

@eleftrik aha I know exactly what's happening to you - I'll push a fix here in a bit.

@jalendport Any news about this? Thank you very much

@tolu-paystack
Copy link

Hi @jalendport having this same issue when trying to switch from 7.4.7 to 7.2

> switch-php 7.2 -m 1024M -v
 👀  Verifying that Valet is installed...
 🔍  Checking which PHP versions are installed...
 🔀  Switching to php@7.2...
 ==>  Stopping php@7.2...
 ==>  Unlinking php@7.2...
 ==>  Linking php@7.2...
 ==>  Starting php@7.2...
 ✅  PHP switched

You are now using PHP 7.4.7

@ssssct
Copy link

ssssct commented Jul 1, 2020

Same here

You are now using PHP 7.4.7
$ switch-php 7.2 -v -m 512M
 👀  Verifying that Valet is installed...
 🔍  Checking which PHP versions are installed...
 🛑  Stopping Valet...
 ==>  Stopping nginx...
 ✅  Valet stopped
 🔀  Switching to php@7.2...
 ==>  Stopping php@7.2...
 ==>  Unlinking php@7.2...
 ==>  Linking php@7.2...
 ==>  Starting php@7.2...
 ✅  PHP switched
 ⚙  Starting Valet...
 ==>  Starting nginx...
 ==>  Starting dnsmasq...
 ✅  Valet started
 🎛  Configuring PHP...
 ==>  Setting PHP memory to 512M...
 ==>  Restarting PHP...
 ✅  PHP configured

You are now using PHP 7.4.7

@davideprevosto
Copy link

Unfortunately I have the same issue. Thank for your support.

@imtbl
Copy link

imtbl commented Jul 21, 2020

Having the same issue, is there any news?

@moorebrett0
Copy link
Author

moorebrett0 commented Jul 22, 2020

@jalendport -

Verifying that Valet is installed...
Password:
🔍  Checking which PHP versions are installed...
🛑  Stopping Valet...
==>  Stopping nginx...
✅  Valet stopped
🔀  Switching to php@7.3...
==>  Stopping php@7.3...
==>  Unlinking php@7.3...
==>  Linking php@7.3...
==>  Starting php@7.3...
✅  PHP switched
⚙  Starting Valet...
==>  Starting nginx...
✅  Valet started

and brew services list:

Name      Status  User  Plist
dnsmasq   started root  /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
mysql     started root  /Library/LaunchDaemons/homebrew.mxcl.mysql.plist
mysql@5.7 started root  /Library/LaunchDaemons/homebrew.mxcl.mysql@5.7.plist
nginx     started root  /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php       started root  /Library/LaunchDaemons/homebrew.mxcl.php.plist
php@7.3   started brett /Users/brett/Library/LaunchAgents/homebrew.mxcl.php@7.3.plist

@eleftrik
Copy link

eleftrik commented Sep 1, 2020

@jalendport Just to know... Is this project dead?

@joelpro2
Copy link

joelpro2 commented Mar 4, 2021

Kind of the same as everybody
I use httpd to compile php

switch-php 7.4 -v
 👀  Verifying that Valet is installed...
 🔍  Checking which PHP versions are installed...
 🔀  Switching to php@7.4...
 ==>  Stopping php@7.2...
 ==>  Unlinking php@7.2...
 ==>  Stopping php@7.4...
 ==>  Unlinking php@7.4...
 ==>  Linking php@7.4...
 ==>  Starting php@7.4...
 ✅  PHP switched

You are now using PHP 7.2.34
brew services list
Name    Status  User Plist
httpd   started ...  ...
php     stopped      
php@7.2 stopped      
php@7.4 started ...  ...
redis   started ...  ...

@joelpro2
Copy link

joelpro2 commented Mar 4, 2021

@jalendport Just to know... Is this project dead?

Doesn't seem so, the last issue closed was in 2019
#12 by souhaiebtar was closed on 16 Nov 2019

@Preshy
Copy link

Preshy commented Apr 14, 2021

same issue here

@encodiaweb
Copy link

@jalendport Has this project been discontinued?

@moorebrett0
Copy link
Author

@encodia I believe it has.

@encodiaweb
Copy link

@encodia I believe it has.

Of course it has... Ok, it's open source, nothing is due to anyone, but in such a case I think it's better to mark a project as discontinued / not maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants