Not Solved Use different PHP version inside docker container
#1
Not Solved
I am setting up a new forum installed with docker-compose. I was looking to install a plugin that requires php8+. In Mybb settings, the php version is 7.4 but I am not sure how to get it running with a new version. The system running docker/mybb is updated to php8 but it seems unrelated to the php version MyBB is using. Any suggestions would be appreciated.

Thanks
Reply
#2
Not Solved
https://github.com/mybb/deploy#switching-php-versions

Have you changed the version in the .env file and then restarted the container?
Reply
#3
Not Solved
(2023-08-24, 12:45 PM)Taylor M Wrote: https://github.com/mybb/deploy#switching-php-versions

Have you changed the version in the .env file and then restarted the container?

Thanks for the reply..

I was not using this method, but it seems a lot easier to modify than the way I had set it up so I spun up a new vm and tried using this method. Everything seemed to work well until I tried to start everything and now the start up process hangs up on:

"deploy-php-1      | postfix/postlog: starting the Postfix mail system"

and never continues after that line. Any advice on where to go from here? I really like this software but I just can't seem to get it running right..

First I installed using postgresql only to realize the theme I wanted to use did not work correctly with postgresql so I rebuilt everything using mariadb and rebuilt the whole forum. Now I learn that the plugins I want require >php8 and this version was running php7.4, and with the way I had it set up there seemed to be no easy way to change it. So this method seems to be the best so far to get it going, but I just can't seem to get the startup to finish.

(2023-08-24, 12:45 PM)Taylor M Wrote: https://github.com/mybb/deploy#switching-php-versions

Have you changed the version in the .env file and then restarted the container?

Looks like purging postfix and reinstalling on the host vm fixed the issue. Not sure what was happening but now it works and I've got MyBB setup loaded. Looking forward to getting this up and running now. Thanks again for pointing me in the right direction with the "deploy" repo. I think it will make things a lot easier moving forward.
Reply
#4
Not Solved
Glad you got it working! Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)