Skip to content

Commit a2a9194

Browse files
committed
last touches to LEMP Centos 7 guide
1 parent 1a68ff7 commit a2a9194

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/websites/lemp/lemp-server-on-centos-7-with-fastcgi.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
author:
33
name: Linode
44
email: rarlan@linode.com
5-
description: 'Install "LEMP," an application stack using nginx, MariaDB, and PHP with fastcgi for CentOS 7'
5+
description: 'Install "LEMP," an application stack using Nginx, MariaDB, and PHP with fastcgi for CentOS 7'
66
keywords: 'nginx,lemp,php,fastcgi,linux,web applications, CentOS'
77
license: '[CC BY-ND 3.0](http://creativecommons.org/licenses/by-nd/3.0/us/)'
8-
alias: ['lemp-guides/centos-7']
9-
modified: Sunday, November 9th, 2014
8+
alias: ['websites/lemp-guides/centos-7']
9+
modified: Thursday, December 11, 2014
1010
modified_by:
1111
name: Ryan Arlan
1212
published:
13-
title: LEMP server on CentOS7 with FastCGI
13+
title: LEMP server on CentOS 7 with FastCGI
1414
external_resources:
15-
- '[Basic nginx Configuration](/docs/websites/nginx/basic-nginx-configuration/)'
15+
- '[Basic Nginx Configuration](/docs/websites/nginx/basic-nginx-configuration/)'
1616
- '[Nginx Documentation](http://nginx.org/en/docs/)'
1717
- '[MariaDB Knowledgebase](https://mariadb.com/kb/en/)'
1818
- '[MariaDB and MySQL compatibility](https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-compatibility/)'
1919
---
2020

21-
This document describes how to install a Linux, nginx (pronounced engine-x), MariaDB and PHP server, also called LEMP stack, on CentOS 7 with php-fastcgi. It includes configuring php-fastcgi as a service in systemd for easier administration.
21+
This document describes how to install a Linux, Nginx (pronounced engine-x), MariaDB and PHP server, also called LEMP stack, on CentOS 7 with php-fastcgi. It includes configuring php-fastcgi as a service in systemd for easier administration.
2222

2323
Make sure that before starting this guide you have read through and completed our [Getting Started](/docs/getting-started/) guide.
2424

@@ -39,21 +39,21 @@ Make sure your system is up to date using yum:
3939

4040
This ensures that all software is up to date and running at the latest version.
4141

42-
## Install nginx from the EPEL
42+
## Install Nginx from the EPEL
4343

44-
The quickest and easiest way to install nginx is from the Extra Packages for Enterprise Linux (EPEL) repository. You can install this using rpm:
44+
The quickest and easiest way to install Nginx is from the Extra Packages for Enterprise Linux (EPEL) repository. You can install this using rpm:
4545

4646
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
4747
yum update
4848
yum install nginx
4949

50-
This installs the EPEL repository, pulls the metadata from the new repository, and then installs nginx.
50+
This installs the EPEL repository, pulls the metadata from the new repository, and then installs Nginx.
5151

52-
## Configuring nginx
52+
## Configuring Nginx
5353

54-
### Starting nginx with systemd
54+
### Starting Nginx with systemd
5555

56-
After installing nginx it needs to be enabled and started in systemd. You can do this with the systemctl command:
56+
After installing Nginx it needs to be enabled and started in systemd. You can do this with the systemctl command:
5757

5858
systemctl enable nginx.service
5959
systemctl start nginx.service
@@ -62,9 +62,9 @@ You can then check the status to make sure it is running at any time:
6262

6363
systemctl status nginx.service
6464

65-
### Configure nginx Virtual Hosts
65+
### Configure Nginx Virtual Hosts
6666

67-
Once nginx is installed, you need to configure your 'server' directives to specify your server blocks. Each server block needs to have a server and location directive. You can do this multiple ways, either through different server block files or all in the `/etc/nginx/nginx.conf` file. In this example, we will use the multiple file approach. By default, nginx uses the `/etc/nginx/conf.d directory`, and will include any files ending in `.conf`:
67+
Once Nginx is installed, you need to configure your 'server' directives to specify your server blocks. Each server block needs to have a server and location directive. You can do this multiple ways, either through different server block files or all in the `/etc/nginx/nginx.conf` file. In this example, we will use the multiple file approach. By default, Nginx uses the `/etc/nginx/conf.d directory`, and will include any files ending in `.conf`:
6868

6969
{: .file-excerpt }
7070
/etc/nginx/conf.d/example.com.conf
@@ -93,7 +93,7 @@ Once you have configured your virtual hosts, you'll need to restart nginx for yo
9393
Deploy PHP with FastCGI
9494
-----------------------
9595

96-
If you are using PHP code with your application, you will need to implement "PHP-FastCGI" in order to allow nginx to properly handle and parse PHP code. You can install this via YUM from the EPEL repository that was previously installed:
96+
If you are using PHP code with your application, you will need to implement "PHP-FastCGI" in order to allow Nginx to properly handle and parse PHP code. You can install this via YUM from the EPEL repository that was previously installed:
9797

9898
yum install php-cli php spawn-fcgi
9999

0 commit comments

Comments
 (0)