Build a LAMP environment with Vagrant (Linux + Apache + MySQL + PHP)

Premise

・ When I want to develop it by myself, I create a gonyo gonyo environment with basic Vagrant. (Since it has become a rut, I wonder if I will do something like Docker from now on ...) ・ It is a memorandum at that time, for myself. For those who want to make it quickly.

Vagrant ・ In an appropriate directory

vagrant init centos/7
#Comment out the following in vi Vagrantfile
config.vm.network "private_network", ip: "192.168.33.10"
vagrant up
vagrant ssh
# sshd_If you want to do config or SELinux, do it

Apache

#Apache installation
sudo yum install httpd
#Apache startup and confirmation
service httpd start
service httpd status

PHP5.4

#PHP installation, modules as needed
sudo yum install --enablerepo=remi,remi-php56 php php-mbstring php-mcrypt php-mysql php-pdo php-xml php-mysql

MySQL

#MySQL installation
sudo yum -y install http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
sudo yum -y install mysql-community-server

Check if it is included

# Apache
httpd -v
# PHP
php -v
# MySQL
mysql -v

Check with browser

http://192.168.33.10/
Check with the browser with the IP set like this, OK if you can transition to the Apache screen or PHP screen

Recommended Posts

Build a LAMP environment with Vagrant (Linux + Apache + MySQL + PHP)
[Linux] Build a jenkins environment with Docker
[Linux] Build a Docker environment with Amazon Linux 2
Build a Django environment with Vagrant in 5 minutes
Build a LAMP environment [CentOS 7]
Install LAMP on Amazon Linux 2 and build a WordPress environment.
Build Azure Pipelies with Azure DevOps in a Linux self-hosted environment
Source compile Apache2.4 + PHP7.4 with Raspberry Pi and build a web server --3. Use MySQL
Build Mysql + Python environment with docker
How to build a python2.7 series development environment with Vagrant
How to build a LAMP environment using Vagrant and VirtulBox Note
Easily build a development environment with Laragon
Build a Tensorflow environment with Raspberry Pi [2020]
Build a Fast API environment with docker-compose
Build a python virtual environment with pyenv
Build a modern Python environment with Neovim
Build NGINX + NGINX Unit + MySQL environment with Docker
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Easy construction]
Summary of how to build a LAMP + Wordpress environment with Sakura VPS
Steps to build a Django environment with Win10 WSL Ubuntu18.04 + Anaconda + Apache2
Build a LAMP environment on your local Docker
Build a LAMP environment in a very short time
Build a C language development environment with a container
Build a WardPress environment on AWS with pulumi
Build a Django environment on Raspberry Pi (MySQL)
Build a python environment with ansible on centos6
[Python] Build a Django development environment with Docker
Create a python3 build environment with Sublime Text3
[Memo] Build a virtual environment with Pyenv + anaconda
Build a virtual environment with pyenv and venv
Build a Django development environment with Doker Toolbox
Build a Python environment with OSX El capitan
Quickly build a Python Django environment with IntelliJ
Build a mruby development environment for ESP32 (Linux)
Build a Python machine learning environment with a container
Build a python execution environment with VS Code
Source compile Apache2.4 + PHP7.4 with Raspberry Pi and build a Web server --2 PHP introduction
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Trial and error]
Source compile Apache2.4 + PHP7.4 with Raspberry Pi and build a Web server ―― 1. Apache introduction
Source compile Apache2.4 (httpd 2.4.43) + PHP7.4 on Linux and build a Web server ―― 1. Apache introduction
Source compile Apache2.4 (httpd 2.4.43) + PHP7.4 on Linux and build a Web server --2 PHP introduction
Build a python virtual environment with virtualenv and virtualenvwrapper
Build a python environment for each directory with pyenv-virtualenv
Create a python development environment with vagrant + ansible + fabric
Build a machine learning application development environment with Python
Build a python virtual environment with virtualenv and virtualenvwrapper
Build a development environment with Poetry Django Docker Pycharm
How to build a Python environment on amazon linux 2
Build a Django environment for Win10 (with virtual space)
[Linux] Create a self-signed certificate with Docker and apache
Build a numerical calculation environment with pyenv and miniconda3
Build a data analysis environment with Kedro + MLflow + Github Actions
Build a Django development environment with Docker! (Docker-compose / Django / postgreSQL / nginx)
Build a machine learning scikit-learn environment with VirtualBox and Ubuntu
[Memo] Build a development environment for Django + Nuxt.js with Docker
First LAMP environment construction (Linux)
(Now) Build a GPU Deep Learning environment with GeForce GTX 960
[Django] Build a Django container (Docker) development environment quickly with PyCharm
Build a comfortable development environment with VSCode x Remote Development x Pipenv
Build a machine learning environment
Build Docker environment (Linux 8) and start Apache HTTP Server container