Sign inSign up

misterabdul/alpine-lamp

By misterabdul

•Updated over 5 years ago

Docker with LAMP stack based on Alpine Linux

Image
0

349

misterabdul/alpine-lamp repository overview

⁠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/ -p 80:80 --name lamp misterabdul/alpine-lamp
⁠Run you own image
git clone https://github.com/misterabdul/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 -p 80:80 --name lamp $USER/alpine-lamp

⁠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/misterabdul/alpine-lamp⁠
https://github.com/misterabdul/alpine-lamp⁠

Tag summary

Content type

Image

Digest

Size

82.3 MB

Last updated

over 5 years ago

docker pull misterabdul/alpine-lamp