The Wayback Machine - https://web.archive.org/web/20201209073404/https://github.com/glats/alpine-lamp
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

Docker with LAMP stack based on Alpine Linux

This docker contain a LAMP stack installed from scratch

Installation

Grab from docker hub

docker run -d -v /path/to/project:/var/www/localhost/htdocs/ -v /path/to/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -p 80:80 -p 3306:3306 --name lamp glats/alpine-lamp

Run you own image

git clone https://github.com/glats/alpine-lamp && cd alpine-lamp/

Build the image

docker build -t $USER/alpine-lamp .

Run it

docker run -d -v /path/to/project:/var/www/localhost/htdocs/ -e MYSQL_ROOT_PASSWORD=password -p 80:80 -p 3306:3306 --name lamp $USER/alpine-lamp

Connect to MariaDB

To use this you need to install mysql/mariadb cli client

mysql -uroot -ppassword -h 127.0.0.1

PhpMyAdmin

If you want to use phpMyAdmin use the branch called: phpmyadmin-feature

Troubleshooting

Forbidden error 403

sudo chmod -Rf 755 /path/to/project

Error activating InnoDB

If you get errors about activating InnoDB and you are on Windows or Mac, you may be encountering this issue with using host-mapped volumes for MariaDB. Work-around is to use a named volume (persistent but not mapped), or add/overwrite mysql config before entry.

Missing libs

Please let me know or create a pull request

Repos

https://hub.docker.com/r/glats/alpine-lamp
https://github.com/glats/alpine-lamp

You can’t perform that action at this time.