Closed lyrixx closed 11 years ago
Note: I moved phpswitch. May be this is an issue.
Not related but, can I open an issue to support php-fpm ?
Hi! Thanks or the report :)
Unfortunatelly, this is a known issue introduced by a BC break some times ago : the .phpswitch.yml
format as been modified to be more human readable.
What you will have to do to make everything work again is to delete your ~/.phpswitch.yml
(or any other configuration file in projects directories). Unfortunatelly, this will makr you loose all your PHP preset.
If you want to keep them, you'll have to migrate the manually.
Thanks. But I already deleted this file. Still the same issue. More over, I remove and re-installer phpswitch from scratch
Ok I got the file. But I do not like it :( Your application look at for file in /.phpswitch.yml
Strace log:
stat64("/root/.phpswitch.yml", 0xbf973340) = -1 ENOENT (No such file or directory)
gettimeofday({1371379458, 10031}, NULL) = 0
gettimeofday({1371379458, 10099}, NULL) = 0
gettimeofday({1371379458, 10269}, NULL) = 0
gettimeofday({1371379458, 10406}, NULL) = 0
stat64("/.phpswitch.yml", {st_mode=S_IFREG|0644, st_size=484, ...}) = 0
phpswitch looks for a configuration file from the CWD to the toplevel root, merging found files together. It also looks for a file in the home directory of the current user. This is a known behavior: https://github.com/jubianchi/phpswitch/blob/master/src/jubianchi/PhpSwitch/PhpSwitch.php#L172-L178
Ok thanks.
PS: If you have any suggestion to improve this behavior, I'll be glad to hear it and make phpswitch better :)
Ok. No problem. I tried phpswitch few month ago, but It did not worked well. So I want to give another try ;) But I use a different stack than you (nginx, fpm). If everything work well with CLI, it would be very nice to have a support for php-fpm. BTW, If you want help to , you can ask me ;)
Ho great to hear that you are using a different stack :) It would be great to also support this one.
Unfortunatelly, apache2
support is a bit experimental ATM and I have to work on it to make it stable and usable.
If you have any other issue with phpswitch, please, do not hesitate to fill some issues, I'll be really glad to fix them and as I said, improve the tool.
thanks again :smile:
I wanted to give another try to phpswitch but I got some errors: