LAMP environment Deployment Guide

Source: Internet
Author: User
Tags install mongodb

LAMP environment Deployment Guide

1. install apache

1) install httpd:

Yum install httpd

2) Start the httpd service

Service httpd start

2. Install mysql

1) install mysql

Yum install mysql-server

2) Modify mysql encoding to utf8

Vi/etc/my. cnf

Add the following in [mysqld:

Default-character-set = utf8

Init_connect = "set names utf8"

3) Start the mysql Service

Service mysqld start

3. Install php56 and extension


1) install php54 and integrate extensions

Yum install php54w php56w-pear php56w-mcrypt

2) install mysql extension

Yum install php56w-mysql

3) install mongodb Extension

Yum install gcc openssl-devel

Pecl install mongo

Vi/etc/my. ini

Add extension = mongo. so

4) Restart apache

Service httpd restart

4. Configure the Domain Name

1) modified file:/etc/httpd/conf/httpd. conf

2) Modify DocumentRoot:

DocumentRoot "/var/www/project directory"

3) modify Directory:

<Directory "/var/www/iot">


Order allow, deny

Allow from all


You may also like the following LAMP-related content:

Install Xcache and Memcached on the LAMP platform to accelerate website operation

Build a LAMP platform environment in CentOS 7

CentOS 6.5 system installation and configuration LAMP (Apache + PHP5 + MySQL) server environment

Configure the LAMP + phpMyAdmin PHP (5.5.9) development environment in Ubuntu 14.04

Install LAMP in Ubuntu 14.10

LAMP combines NFS to build a small blog site

Install and deploy the LAMP environment under CentOS7

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.