linuxserver / docker-nginx

GNU General Public License v3.0
145 stars 44 forks source link

Finding the last version of history with php 7.4 #100

Closed MalikWilliams1greher closed 6 months ago

MalikWilliams1greher commented 6 months ago

Is this a new feature request?

Wanted change

I need to deploy an application using php 7.4 (php8 is not supported in this program). Since linuxserver/nginx has been updated to 8.3 and hundreds of versions, how do I quickly find a historical version that supports 7.4?

Reason for change

I'd like to find the latest old version, please.

Proposed code change

No response

github-actions[bot] commented 6 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

Roxedus commented 6 months ago
  1. Check the changelog for the image.
  2. Assume 7.4 was the last before 8, thus you need a version prior to the rebase 3.14, note the date for the change.
  3. Scroll trough the releases
  4. Scroll and realize this is not quick.
  5. Find something like 1.18.0-r15-ls136
  6. Open the release and browse the files at that tag
  7. Read package_versions.txt and look for version.
  8. Find PHP EOL list and bug app devs that this version shouldn't have been used for years
  9. Do the same for Alpine, and understand this should not be used in production
thespad commented 6 months ago

You'll see that the last changelog entry before the switch to PHP8 was Install nginx version from 3.14.. If you search against the repo you'll see https://github.com/linuxserver/docker-nginx/pull/81 and that "This pull request first appeared in 1.20.2-r1-ls179" and there's your tag (there will be more between that and the PHP8 rebase but honestly at this age of image there's going to be little benefit in being a couple of tags more recent).

As above you absolutely should not be using a long EOL version of PHP in production but there tag is there nonetheless.

MalikWilliams1greher commented 6 months ago

You'll see that the last changelog entry before the switch to PHP8 was Install nginx version from 3.14.. If you search against the repo you'll see #81 and that "This pull request first appeared in 1.20.2-r1-ls179" and there's your tag (there will be more between that and the PHP8 rebase but honestly at this age of image there's going to be little benefit in being a couple of tags more recent).

As above you absolutely should not be using a long EOL version of PHP in production but there tag is there nonetheless.

Is there a LTS version for php 7.4?

Roxedus commented 6 months ago

No, support for php 7.4 died 28 Nov 2022, as noted on the PHP EOL list.