docker image from scratch wordpress using php 8.1-fpm , mysql_connect error.

SOLVER : I JUST HAVE TO ADD MYSQLI EXTENSION and enable it in the Dockerfile , also rebuild the docker container.


I have a docker compose file and some directories that i’m using when im doing laravel apps.

I want use the same docker files for wordpress , because i have already php 8.1 and other stuff , but i came across with this error :

**Fatal error**: Uncaught Error: Call to undefined function mysql\_connect() in

I have , like i said , php:8.1-fpm image , and the latest ( downloaded zip file ) of wordpress, i am missing something , maybe i need rebuild that container with some lib that is not installed , also i have a dockerfile in it that setup and install all the things that i need for my laravel apps.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer