YunoHost-Apps / my_webapp_ynh

Custom Web app with SFTP access
GNU General Public License v3.0
48 stars 39 forks source link

Possibilité de choisir la version de PHP #69

Closed ceeddd closed 2 years ago

ceeddd commented 2 years ago

Bonjour,

Serait-il possible d'envisager la possibilité de choisir la version de PHP lors de l'installation, parmi les versions disponibles sur le système ?

En effet j'aurais souhaité installer deux fois my_webapp, chacun avec une version differente de php en fonction des applications php.

Versions utilisées : Yunohost : 4.2.8.3 my_webapp : 1.0~ynh5

Merci

ericgaspar commented 2 years ago

Here is branch with PHP 7.3, 7.4 and 8.0 to choose from at install... This needs to be tested. sudo yunohost app install https://github.com/YunoHost-Apps/my_webapp_ynh/tree/php-custom

ceeddd commented 2 years ago

Thanks for your answer. It doesn't work for me. I tried, and when i choose 7.4 ou 8.0, i still have php 7.3 used.

ericgaspar commented 2 years ago

Ok, thanks for trying! I made some changes, do you mind testing again?

ceeddd commented 2 years ago

Thanks.I tried again, same result.

ericgaspar commented 2 years ago

mmh. Ok ready for a last try?

ceeddd commented 2 years ago

Sure. I have this time a "502 Bad Gateway" from nginx with .php files. .html files are ok.

tituspijean commented 2 years ago

Now it should work. 😇

ceeddd commented 2 years ago

It works !

cloo commented 2 years ago

It did not work for me.. https://paste.yunohost.org/raw/gicociweta

tituspijean commented 2 years ago

Thank you for your feedback! Indeed, the way PHP version are installed changed in YunoHost 4.3.3 and this PR was not updated accordingly. Hopefully my commits will fix that.