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

Add support for PHP 7.4 #13

Merged
merged 4 commits into from Jun 18, 2020
Merged

Conversation

owenvoke
Copy link
Contributor

@owenvoke owenvoke commented Mar 16, 2019

This updates Larasail to use PHP 7.4 as the default version of PHP. It also adds an additional argument (php73) for installing PHP 7.3.

@wimurk
Copy link

wimurk commented Mar 27, 2019

+1

@butaminas
Copy link

Doesn't work for me. Still installs PHP 7.2.

@wimurk
Copy link

wimurk commented Sep 10, 2019

@pxgamer set it as default. 7.4 is already on the way.

@owenvoke
Copy link
Contributor Author

@butaminas, are you installing from my fork (and branch)? Or the main repository? 🤔

This PR hasn't been merged so the official Larasail won't use PHP 7.3 yet.

@butaminas
Copy link

@butaminas, are you installing from my fork (and branch)? Or the main repository? 🤔

This PR hasn't been merged so the official Larasail won't use PHP 7.3 yet.

It's weird, because I've installed it from your branch. I've seen few times it was doing something with php 7.3 but most of the time it was installing and configuring 7.2. After the installation I did php -v and it was 7.2.

I have now upgraded to php 7.3 manually.

I was using Ubuntu 16.04.

@owenvoke
Copy link
Contributor Author

owenvoke commented Sep 10, 2019

I've tested on a clean droplet (Ubuntu 18.04) and it installed PHP 7.3 as expected. 🤔

curl -sL https://github.com/pxgamer/larasail/archive/feature/php-7.3.tar.gz | tar xz && source larasail-feature-php-7.3/install

Console output preview

However, this project seems kind of dead at the moment. 🤔

@butaminas
Copy link

@pxgamer strange. Could it be the 16.04? Or perhaps I messed it up somehow.

Yeah, the project seems to be dead, though it is still an awesome tool. Thanks for trying to keep it alive.

@wimurk
Copy link

wimurk commented Oct 11, 2019

It looks dead indeed. Maybe someone can fork the project and keep it maintained?

Copy link
Collaborator

@bobbyiliev bobbyiliev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHP 7.3 is not yet available in the default Ubuntu 18.04 repository.

In order for this to work you need to add a stage to install the software-properties-common package and add the ppa:ondrej/php repository:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y php7.3-cli

@owenvoke
Copy link
Contributor Author

@bobbyiliev, if we're going to add this, would it be better to just change this to use PHP 7.4 by default, and add php73 as an argument? And I'll add the APT repository 👍

@bobbyiliev
Copy link
Collaborator

@owenvoke Yes that is a good point, I think that PHP 7.4 sounds good, this would also close the #23 issue.

@owenvoke owenvoke changed the title Add support for PHP 7.3 Add support for PHP 7.4 Jun 18, 2020
@owenvoke
Copy link
Contributor Author

@bobbyiliev, I've updated this to use PHP 7.4 by default with a php73 argument available.

Looking at

larasail/.larasail/setup

Lines 72 to 75 in ed5a239

sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get -y update
sudo apt-get -y upgrade
, it appears to already setup the ondrej/php repository so I don't think any changes need to be applied on that front?

@bobbyiliev bobbyiliev merged commit 5ec2e25 into thedevdojo:master Jun 18, 2020
@owenvoke owenvoke deleted the feature/php-7.3 branch June 18, 2020 13:09
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

Successfully merging this pull request may close these issues.

None yet

4 participants