[LINUX] Build a LAMP environment in a very short time

Java installation

Use Java to run the tool Download from here Unzip Creating environment variables Name: JAVA_HOME Value: Path of the unzipped folder Modify environment variables Name: PATH Value: Add the bin folder in the unzipped folder Installation complete

VirtualBox installation

VirtualBox Download Run the installer Installation complete When using VirtualBox on Windows, enable the virtualization support function (VT-x / AMD-V) from the BIOS. Disable Hyper-V

Install Vagrant

Vagrant Download Run the installer Installation complete

Tool download

Download from here Unzip

File sharing settings with virtual environment

The unzipped tools are as follows

|-- run_sample-master
|   |-- docs
|   |-- fairysupport_run
|   |-- synced_folder
|   `-- vagrant

Install vbguest plugin Double-click vagrant_plugin_vbguest.bat in the vagrant folder Done

Start Vagrant

Double-click vagrant_up.bat in the vagrant folder

Startup complete

LAMP environment construction

Double-click run_quick_lamp.bat in the fairysupport_run folder

Construction completed

File sharing confirmation

If you look in synced_folder \ vm1 in the folder created by unzipping the tool, you can see that the files in the / var / www / html directory in the virtual environment are included.

ssh connection

I will try to connect to the built LAMP environment with PuTTY Launch puttygen a.png Click Conversions → Import key run_sample-master\vagrant\.vagrant\machines\vm1\virtualbox\private_key choose b.png Click Save private key Save as private_key.ppk c.png

Start PuTTY e.png

Click Authentication → Browse Select private_key.ppk created with puttygen earlier f.png

Click session Host name: 127.0.0.1 Port: 2230 Session name: 127.0.0.1: 2230 Enter Click save g.png Click Open to connect h.png Login as vagrant user i.png

PHP installation confirmation

php -v Enter j.png

MySQL installation confirmation

mysql -uroot [email protected] Enter k.png

Apache installation confirmation

http://localhost:8080/index.php Access from a browser Make sure it is displayed correctly

Tools used

LAMP environment construction is complete This time, I built it using a tool called fairysupport run. This tool allows you to run the same shell on multiple servers (you can use it on just one server) The sample of the tool used is a sample that pokes 2 LAMP environments So if you look at the VirtualBox manager you see two vms running This work created two LAMP environments If you only need one locally (1) Modify the vagrant \ Vagrantfile file in the folder created by unzipping the tool   config.vm.define :vm2 do |server|Comment from to end (2) Modify the fairysupport_run \ server.properties.local file in the folder created by unzipping the tool. Comment out the part that starts with server2 If you perform (1) and (2), LAMP will be built only for one server.

Also, if you modify the contents of the fairysupport_run \ server.properties.local file in the folder created by unzipping the tool, you can build the same LAMP environment for any server as this time.

Recommended Posts

Build a LAMP environment in a very short time
Build a LAMP environment [CentOS 7]
Build WordPress on CentOS 8 in LAMP environment
Build a Selenium environment on Amazon Linux 2 in the shortest time
Build a Django environment with Vagrant in 5 minutes
Build a Minecraft plugin development environment in Eclipse
Collaborate in a remote environment
Build a machine learning environment
Build a Python environment offline
Install LAMP on Amazon Linux 2 and build a WordPress environment.
Build Azure Pipelies with Azure DevOps in a Linux self-hosted environment
Build a Python development environment in Eclipse (add HTML editor)
Build a LAMP environment with Vagrant (Linux + Apache + MySQL + PHP)
Build a go environment using Docker
Build a python3 environment on CentOS7
How to build a LAMP environment using Vagrant and VirtulBox Note
Install Django in a pipenv virtual environment
Easily build a development environment with Laragon
Method to build Python environment in Xcode 6
How to build a sphinx translation environment
Build a python environment on MacOS (Catallina)
Build a Tensorflow environment with Raspberry Pi [2020]
I want to build a Python environment
Build a Fast API environment with docker-compose
Write a short property definition in Python
[Linux] Build a jenkins environment with Docker
Build a python virtual environment with pyenv
Build a Python + OpenCV environment on Cloud9
Creating a virtual environment in an Anaconda environment
Install CaboCha in a non-Anaconda environment (Win)
I started Node.js in a virtual environment
Build a modern Python environment with Neovim
Summary of how to build a LAMP + Wordpress environment with Sakura VPS
Use WebDAV in a Portable Docker environment
[Linux] Build a Docker environment with Amazon Linux 2
Flutter in Docker-How to build and use a Flutter development environment inside a Docker container
Build a PYNQ environment on Ultra96 V2 and log in to Jupyter Notebook
Build a C language development environment with a container
Create a Vim + Python test environment in 1 minute
Build a WardPress environment on AWS with pulumi
System switching occurs in a CentOS 7 cluster environment
Ubuntu18.04.05 Creating a python virtual environment in LTS
Use the latest pip in a virtualenv environment
Simply build a Python 3 execution environment on Windows
Build a Django environment on Raspberry Pi (MySQL)
Build a python environment with ansible on centos6
Start Django in a virtual environment with Pipenv
Build a Python environment on Mac (Mountain Lion)
Create a virtual environment with conda in Python
[Python] Build a Django development environment with Docker
Create a python3 build environment with Sublime Text3
A clever way to time processing in Python
Build a Python development environment on your Mac
[Memo] Build a virtual environment with Pyenv + anaconda
Set a fixed IP in the Linux environment
Build a simple Python virtual environment without pyenv
Build a virtual environment with pyenv and venv
Build a Django development environment with Doker Toolbox
Think about building a Python 3 environment in a Mac environment
Work in a virtual environment with Python virtualenv.
Build a Kubernetes environment for development on Ubuntu