-
Notifications
You must be signed in to change notification settings - Fork 181
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
Upgrading PHP to 7.1 / 7.2 #333
Comments
+1 If I update with apt-get install, use 7.2 instead of 7.0, restart apache, the mailcatcher doesn't work anymore. |
In our fork we use ppa:ondrej/php for supporting multiple php versions (for now we only need 5.6) and we use ansible to install php and enable required headers; @harkor I guess that problem with 7.2 and mailcatcher is that there is no |
Thanks for your clarification. |
@miya0001 Its not a problem for me to write pre-step where php version could be read from site.yml and box configured according to selected version. What i dont like in that approach is that user first downloads vccw box with already installed php7.0 (https://github.com/vccw-team/vccw-xenial64/blob/master/provision/playbook.yml#L62 ) and then modifies that installation. Also, i really dont see the point in using pre-packed box at all it kills modularity if you want to, for example, change php version. Also its just a hassle to update box when bento/ubuntu-16.04 box is updated, you could simply use ubuntu/xenial64\bionic64 as base and do a provisioning here (only downside i see there is longer up time, by i guess no more than 2 minutes :) ) But its your approach. If its ok for you to change php version while provisioning later on (i.e. setting up php version in site.yml in this repo) i could send you PR and i would be glad to contribute to project. Proposed soluion is following:
Tell me if you agree on proposed solution and ill send you a PR in few days. |
@lzivadinovic @miya0001 @harkor @jgraup Guys, but how do we set what PHP to use in the default.yml ? before we hit vagrant reload --provision? That's the place to set it right? using this doesint work,
it just makes version like this: Another question: |
according to following article: the solution is to execute following command on guest:
and create following file on "Vagrantfile" directory: provision-post.sh
|
You need to change the 'sendmail_path' as follows. |
Hi @amaguri1505 Just wondering if you know about what have happened to the Xdebug after updating the PHP. Because in my case, there is no Xdebug installed and I am having a hard time trying to figure out how to reconfigure the settings for it to work. If you have to know, do you mind sharing with me any helpful resources? Thank you! |
I know this is old but I really need to figure out how to update php version so newer themes will run locally. @litone01 in your post above you say to run that execute that curl command, from my vagrant dir? Sorry a little new to vagrant boxes so I yu could over explain the answer I might be able to get it to work. |
@brianmdesigns Nope it is not my post (I am just quoting the previous reply) :( It has been a long time and I have not been using PHP and wordpress for some time, so I cant really recall the solution I adapted at that time. Maybe you can use google translation and follow this link https://qiita.com/miya0001/items/2499917d7ec3bc905781, which is also from the discussion above. |
Do you want to use PHP versions? |
I just want to know of a way to load the latest php version
…On Tue, Jan 25, 2022, 8:50 PM Takashi Hosoya ***@***.***> wrote:
@brianmdesigns <https://github.com/brianmdesigns>
Do you want to use PHP versions?
—
Reply to this email directly, view it on GitHub
<#333 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO6H5IM6ABM3UUJ7WTRCPLDUX5HPDANCNFSM4FOIXQYA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The current version of VCCW does not seem to be able to upgrade PHP. |
Hmmm ok will that be happening or do we just pick a new box. I like how
VCCW has one config file with all the variables. I use VVV too but I just
enjoy the flow of VCCW a little better. So is there any way to add PHP
variables in the site.yml and maybe update the Ubuntu box?
…On Tue, Jan 25, 2022 at 11:40 PM Takashi Hosoya ***@***.***> wrote:
@brianmdesigns <https://github.com/brianmdesigns>
@litone01 <https://github.com/litone01>
The current version of VCCW does not seem to be able to upgrade PHP.
This is because the version of Ubuntu os is old.
I think we need to upgrade Ubuntu os.
—
Reply to this email directly, view it on GitHub
<#333 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO6H5IL2HROMSSSSGZLRTV3UX53K5ANCNFSM4FOIXQYA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I have tried the following box files.
You can use PHP7.4 if you do the following.
|
I guess I can try but it just seems like VCCW is going to be obsolete then
if the PHP version isnt updated. But I dig how the config file is easy to
use and follow unlike VVV's but I guess I will just have to use VVV and
learn it then. But there's gotta be a way to have the php version in the
config file like VVV has.
…On Thu, Jan 27, 2022 at 10:59 PM Takashi Hosoya ***@***.***> wrote:
@brianmdesigns <https://github.com/brianmdesigns>
I have tried the following box files.
Unfortunately, if we change the box file, we will also need to change the
playbook configuration files.
It will be a very big change and take time.
- https://app.vagrantup.com/generic/boxes/ubuntu1804
- https://app.vagrantup.com/ubuntu/boxes/bionic64
- https://app.vagrantup.com/giusetavera/boxes/wplamp
You can use PHP*7.4* if you do the following.
The following tasks are installed PPA( Personal Package Archive ) at your
own risk.
vagrant up
vagrant ssh
sudo add-apt-repository ppa:jczaplicki/xenial-php74-temp
sudo apt-get update
https://raw.githubusercontent.com/vccw-team/change-php-version/master/run.sh
| bash -s -- 7.4
—
Reply to this email directly, view it on GitHub
<#333 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO6H5INASB4ZQMGIFDBDQULUYIIBNANCNFSM4FOIXQYA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yes, I think so too. Currently it is not scheduled. |
Is there a preferred way to upgrade the environment to php 7.1 or php 7.2?
Currently php 7.0 is bundled with the box. According to http://php.net/supported-versions.php - 7.1 ends active support on Jan 1, 2019 which isn't terribly far away.
Thanks
The text was updated successfully, but these errors were encountered: