Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description


Out-of-the-box LAMP image (PHP+MySQL)

Running your LAMP docker image

Start your image binding the external ports 80 and 3306 in all interfaces to your container:

docker run -d -v /your/mysql:/var/lib/mysql -v /your/www:/var/www \
-p 80:80 -p 3306:3306 pluma/lamp

Connecting to the bundled MySQL server from within the container

The bundled MySQL server has a root user with no password for local connections.
Simply connect from your PHP code with this user:

$mysql = new mysqli("localhost", "root");
echo "MySQL Server info: ".$mysql->host_info;
Docker Pull Command
Source Repository