-
Notifications
You must be signed in to change notification settings - Fork 848
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
Is it possible to change the PHP version that XHGui runs on? #2439
Comments
Thanks for opening your first issue here! Be sure to follow the issue template and include your OS/Vagrant/VVV versions! Don't forget you can get support in the VVV slack at https://varyingvagrantvagrants.org/docs/en-US/slack/
|
Do you know what prevents it from running on 7.3? There's no mechanism for this at the moment |
Looks like XHGUI uses a very old version of the slim framework which doesn't support 7.4 |
Hi Tom, "Do you know what prevents it from running on 7.3?" Do you mean, what's preventing VVV from running as default no 7.3 or XHGUI? Ultimately I'd like VVV nginx to run the XHGUI on 7.3 but I'm not sure how to do that since there's no where to specify which version it uses, or am I missing something? |
You would need to add the PHP 7.3 utility then modify the nginx configs to force the dashboard domain to use 7.3. There are no instructions for how to do this, I recommend against doing this. Or, help finish xhgui's upgrade of the slim library from v2 to v3. This is the preferred solution. It's unclear what the remaining blockers or tasks are on the xhgui end: |
Indeed also xhgui uses the default php version of VVV. Why you want to change the php version for xhgui? there are some reasons? |
@Mte90 xhgui depends on |
I've already added PHP 73 into my core and I've added the following line into my xhgui.conf by SSHing onto the virtual machine. set $upstream php73; I've restarted nginx and and PHP FPM, however when I do phpinfo() from inside xhgui it says it's still running php7.4 Am I missing something? |
well you need a provision in this way the nginx conf file with your changes is applied. |
Exactly that, I thought reprovision would reset my config change. I will try. Thanks. |
|
Because provisioning reset your changes before the file got installed. We always hard reset the utility checkout so that people don't get stuck on ancient versions due to accidental changes. |
Have you contacted the xhgui maintainers yet? If nobody says they have the issue, then upgrading to 7.4 will be considered a lower priority at their end. |
OK, it wasn't that hard to fix this, even though I think it's a temporary thing as I think this fix is going to go away when you provision. So here is what I did: |
I guess that this won't be kept with a provision. |
That's true, but if you want to make it "persistent" you can also do this instead:
What do you think? |
We hard reset that folder on provision so that you always get the latest
version of the repo. The change will be undone on the next provision
|
Yes but what if this change happens to the I tested it myself and it seems that the change survives the provision. |
yes the only solution is a parameter for the xhgui provision that let you to change it. The changes is kept because you broken the git repo so you won't get updates as a |
@Mte90 I would veto such a parameter, we should not fix another projects failing by trying to make it configurable. The moment xhgui fixes their problem the feature becomes useless and misleading. The fix for this needs to happen in the xhgui project. @kmgalanakis @garethredwire neither of you have raised an issue over at xhgui or commented on the issues or PR's. Their maintainer probably thinks this issue only impacts a small number of people and is low priority
That file is tracked by |
What needs to happen:
|
As for the original question if there is a way to configure VVV to use PHP 7.3 for xhgui, no there is not, and we will not be adding one. If xhgui is broken then a flag to change things is not the solution. Fixing it is the solution. |
I agree with you I didn't explained well. My was a way to keep that version with provision but altering the files will always have issues on provision. |
if everyone using xhgui has to make this change, then we should just make this change |
Varying-Vagrant-Vagrants/vvv-utilities#89 tries to run the 7.3 provisioner and force XHGui to use 7.3, it needs testing |
Thanks for your work on this. I can confirm PHP 7.3 is now being loaded for Xhgui. It now hits a new error when examining a profile record. I'll post it here so you can tell me if it's something that I need to fix or that needs updating in the provision (I'm aware that this should probably have it's own bug thread): XHGui\Searcher\PdoSearcher::getForUrl not implemented for PDO You should check the following things: Ensure that Mongo has been started #0 /srv/www/default/xhgui/src/Searcher/PdoSearcher.php(73): XHGui\Exception\NotImplementedException::notImplementedPdo('XHGui\Searcher\...') |
Uhm maybe on the php side the composer stuff is for another php version (I had a similar problem in the past). I didn't tested so much, I will investigate a bit. |
Working on a fix Varying-Vagrant-Vagrants/vvv-utilities#90, it is not just xhgui to run in nginx with php 7.3 but also installed so you need to remove the folder in |
Ok so it is required to remove |
This was always the case, there's nothing that can be done at our end. What's more the UX is misleading, you're not opening an individual profile, you're opening a list of profiles filtered by that URL |
can you explain? This hasn't been an issue in the past when we've changed PHP version |
On my testing I had to remove that folders or the provision don't work at 100%. |
What’s the error though? And is there’s no composer based solution?
|
Unfortunately I tried removing those two folders and provisioning again hit the same error. |
do you have the php73 utility? |
@garethredwire which error? If you are referring to |
@Mte90 the latest tideways utility runs the PHP 7.3 utility provisioner |
@garethredwire click on the |
@Mte90 I just reprovisioned without deleting folders and recorded a page profile and viewed it just fine using the |
Ah, I assumed they were all the same link. Yes it works fine when clicking on the GET or POST. Thanks. |
@garethredwire now that the PR to the utilities has been merged, do you still need to do workarounds to use xhgui? |
Hi Tom,
Everything is working now, thank you.
*Gareth Moss *
Director
+44 20 7403 1444 <+44%2020%207403%201444>
+44 7725 010 220 <+447725010220>
redwiredesign.com <http://www.redwiredesign.com/>
…On Sun, 9 May 2021 at 00:33, Tom J Nowell ***@***.***> wrote:
@garethredwire <https://github.com/garethredwire> now that the PR to the
utilities has been merged, do you still need to do workarounds to use xhgui?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2439 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHSW2352THQ2V27OFOSE6TTMXC4ZANCNFSM4237HBMQ>
.
|
Hi,
XHGui will only run up to PHP 7.3 yet the default for VVV is currently php 7.4
I know how to change the PHP versions for each website, but how can we change the version for XHGui so that it works?
Thanks in advance.
The text was updated successfully, but these errors were encountered: