Sign inSign up

sudheeshms1/lamp7

By sudheeshms1

Updated about 10 years ago

LAMP Stack for Development (Ubuntu 16.04 with Apache, PHP7, mysql)

Image
0

247

sudheeshms1/lamp7 repository overview

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

Tag summary

Content type

Image

Digest

Size

200 MB

Last updated

about 10 years ago

docker pull sudheeshms1/lamp7