YunoHost-Apps / my_webapp_ynh

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

Change PHP version under 7.1 #92

Closed Dr-Wily closed 1 year ago

Dr-Wily commented 1 year ago

Hello, How can I change PHP version under 7.1 ? I want to use PHP5. How to use PHP5 in my webapp ?

Thanks

tituspijean commented 1 year ago

Hello,

PHP7.1 has been deprecated almost three years ago, and PHP5 almost four years ago. We will most likely not support installing them on your server, sorry. The page I linked has guides for your to upgrade your code up to PHP8.

What do you think, @YunoHost-Apps/apps-group, though?

yalh76 commented 1 year ago

using a PHP5 only app seems a very bad idea on a public server ...

Dr-Wily commented 1 year ago

I have some websites (not publicy exposed) who work only with old versions of PHP. I can't upgrade the because I'am not the dev of these app. This is statistics app and (PHPmyVisit) and the developer won't develop a tools to migrate database to piwik and /or to matomo.

I don't want to lost 14 years of stats just because it's impossible to keep this app working. At this time I must keep a Debian 5 server just for this app.

Docker is a solution but it don't work well with yunohost and my last solution is mywebapp but again no php5... it's hopeless...

ericgaspar commented 1 year ago

You can fork mywebapp_ynh and add PHP5 to the manifeste.json

https://github.com/YunoHost-Apps/my_webapp_ynh/blob/ec83a54c90aaad5ea80c8558939fdd0f3b080b5d/manifest.json#L67