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'm trying to get some old sites working that use deprecated mysql_connect(). Is there an environment var I can use in my stack to enable the legacy 5.6 mysql as the example below?
PHP 5.6 was the last version to support the original mysql_connect() function.
If your WordPress site is very old (pre-v3.9), it must have the mysql extension, not just mysqli.
@electricmessiah cc @jhmckimm
While I don't recommend installing PHP extensions at container startup, if you need to, please refer to this discussion on installing an extension via a startup script. #261
Activity
electricmessiah commentedon Apr 26, 2026
Solved with this, but is there an easier/cleaner way?
jhmckimm commentedon May 6, 2026
Create your own Dockerfile that is based on the shinsenter image you wish to use, and simply run
RUN phpaddmod mysql, i.e:shinsenter commentedon May 18, 2026
@electricmessiah cc @jhmckimm
While I don't recommend installing PHP extensions at container startup, if you need to, please refer to this discussion on installing an extension via a startup script.
#261