You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I must be doing something wrong -- I am trying to use an OLS docker image as a local Mac M1 dev environment for a PHP 8.2 / 8.3 web app, but no matter how I build it, I end up with only PHP 7.4.
My understanding was that this should give me a PHP 8.3 container?
FROM ghcr.io/ndigitals/openlitespeed:lsphp83
My plan was to run this Dockerfile and mount my application source dir like so:
docker run -it -p 8080:80 -v ./app:/var/www/vhosts/localhost/html mydevcontainer
This does start and it points to my code on localhost:8080, but it gives me a vhost with PHP 7.4, so my app throws errors.
If I instead map the ports to the Example vhost:
docker run -it -p 8080:8088 mydevcontainer
Now, if I open localhost:8080 I get the OLS Congratulations page, but if I click on the PHP link, once again I get a phpinfo screen for PHP 7.4.
I have tried editing the httpd_config.conf files and copying them in from the Dockerfile. The path property seemed promising:
Hmm, that tag should be giving you a PHP 8.3 image...I know that I am currently running a PHP 8.1 image.
I'll have to do some testing to confirm. The images are built using the OLS binary packages and then PHP from source so they should be running the correct version of PHP.
@JensRoland OK, I have confirmed that the image essentially has both PHP 7.4 and PHP 8.3, basically this is due to the fact that PHP 7.4 is installed by default. The default OLS configuration is hardwired for PHP 7.4 and isn't getting updated to PHP 8.3. See below for a temporary fix.
If you login to the OLD web admin console and go to the "Server Configuration"->"External App" screen.
Then edit the "LiteSpeed SAPI App" configuration.
You can Edit the "Command" line to use lsphp83/bin/lsphp and then the default will be PHP 8.3.
I must be doing something wrong -- I am trying to use an OLS docker image as a local Mac M1 dev environment for a PHP 8.2 / 8.3 web app, but no matter how I build it, I end up with only PHP 7.4.
My understanding was that this should give me a PHP 8.3 container?
FROM ghcr.io/ndigitals/openlitespeed:lsphp83
My plan was to run this Dockerfile and mount my application source dir like so:
This does start and it points to my code on
localhost:8080
, but it gives me a vhost with PHP 7.4, so my app throws errors.If I instead map the ports to the Example vhost:
Now, if I open
localhost:8080
I get the OLS Congratulations page, but if I click on the PHP link, once again I get a phpinfo screen for PHP 7.4.I have tried editing the
httpd_config.conf
files and copying them in from the Dockerfile. Thepath
property seemed promising:but changing it to
lsphp83/bin/lsphp
doesn't seem to make any difference.It seems to me I'm simply misunderstanding something simple here?
The text was updated successfully, but these errors were encountered: