Setup a LAMP stack development within A MINUTE!

ssmak

Steve Mak

Posted on September 18, 2021

Setup a LAMP stack development within A MINUTE!

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:

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
Enter fullscreen mode Exit fullscreen mode

2) Enter the project directory

cd lamp
Enter fullscreen mode Exit fullscreen mode

3) Start the LAMP stack

docker-compose up -d
Enter fullscreen mode Exit fullscreen mode

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!)
💖 💪 🙅 🚩
ssmak
Steve Mak

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