Setup a LAMP stack development within A MINUTE!
Steve Mak
Posted on September 18, 2021
Before the minute, it assumes you have the knowledge on Git and Docker, and already installed Git and Docker Desktop. If not, please pick from there:
- Git - https://git-scm.com/downloads
- Docker Desktop - https://www.docker.com/get-started
Long story short, let's go!
1) Clone the project from GitHub (ssmak/lamp 👈 Cool! it is my project! 😃)
git clone https://github.com/ssmak/lamp.git
2) Enter the project directory
cd lamp
3) Start the LAMP stack
docker-compose up -d
That's it! Please check with the link http://127.0.0.1. It is the document root and mapped to the project path of ~/container_volume/www/default/html. You can also access with HTTPS, a self-signed certificate has been already generated.
Furthers reading...
MySQL
Connect to MySQL with IP:PORT (127.0.0.1:3306) and the credential (user: root password: root).
PHP
Visit http://127.0.0.1/phpinfo.php and you can see the detail settings. Notes that many common modules have been already installed for you such as MySQLi, MongoDB, Memcached, Redis and GD, etc.
For more details, please visit the project on GitHub
https://github.com/ssmak/lamp
(The cover image of this post is not my work and just from Google search. Please let me know if you are the owner and require me to remove. THX!)
Posted on September 18, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 30, 2024