Public Repository

Last pushed: a year ago
Short Description
LAMP Stack for Development (Ubuntu 16.04 with Apache, PHP7, mysql)
Full Description

Ubuntu: 16.04
Apache: 2.4.18
MySql: Ver 14.14 Distrib 5.7.12
PHP: 7.0.8

Run the PROJECT as below (Note the PROJECT & associated content PATH)

sudo docker run --name lamp7 -it -p 80:80 -v ~/PROJECTS/ptp:/var/www/html -v ~/PROJECTS/assetsDirectory:/var/www/assetsDirectory -v /home/Data/mysql:/var/lib/mysql sudheeshms1/lamp7 bin/bash

Start the Services

service apache2 restart && service mysql restart

Additional Information:

1) mysqld start => Start the mysql Daemon (in case if the mysql service doesn't start initially. This saved me..!)
2) mysql_secure_installation => Initialises mysql users & DB if not setup earlier
3) PHP Error Display is turned ON. Disable it, if using for production.
4) Try the following if you are not able to change the PHP upload limit:
4.1) Create the file - uploads.ini with the following contents:
file_uploads = On
memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 600
4.2) Link the file while running container: -v ~/Documents/uploads.ini:/etc/php/7.0/apache2/php.ini

Docker Pull Command
Owner
sudheeshms1

Comments (0)