Public Repository

Last pushed: 4 months ago
Short Description
apache2 php5.6
Full Description

Webserver container is created to develop php projects on localhost. using this container and mariadb or mysql-server container, we can create xampp stack in docker environment.

How to use this container for local development. Assuming that mysql container is running and stores data on local disk.

docker run -d --name webserver -p 80:80 -v /usr/local/www:/var/www vjadeja/webserver

You can check container named webserver is running by this command
docker ps

Now goto /usr/local/www directory and create one directory named "html" and inside this directory create one file index.php
in index.php file just write <?php echo phpinfo();

This is webroot of your local development.

Open your favourite browser and type localhost. You will see php info.

This container has these php modules are installed:
pdo_mysql
pdo
mysql
mysqli
gd
mcrypt
mbstring
soap
xsl
intl
zip

Docker Pull Command
Owner
vjadeja

Comments (0)