Different php versions in Docker installation

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
ddrakop
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Jun 06, 2017 5:19 am

Different php versions in Docker installation

Post by ddrakop » Tue Oct 03, 2023 11:37 am

Hello community,

I have made a docker installation of Joomla 3.10.11. The installation is functioning in general terms with the exception of YJSG Framework which is not supported anymore by php versions above 7.4

I have downgraded the php version to 7.4.33 from PHP Version 8.0.29, however while I get v.7.4.33 within Ubuntu 22 CLI, the Joomla administration is still pointing 8.0.29.

Please advise on how I could change apache2 pointing to 7.4.33, given the docker environment.

Thank you !

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24986
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: Different php versions in Docker installation

Post by pe7er » Tue Oct 03, 2023 11:50 am

The CLI has its own PHP. So your CLI and your Apache web server can have different PHP versions.

Do you use docker compose?
If so, did you bring your docker container down using "docker compose down".
And then rebuild your docker using "docker compose up --build" ?
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com


Post Reply

Return to “Installation Joomla! 3.x”