You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- '[MariaDB and MySQL compatibility](https://mariadb.com/kb/en/mariadb/mariadb-vs-mysql-compatibility/)'
19
19
---
20
20
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.
22
22
23
23
Make sure that before starting this guide you have read through and completed our [Getting Started](/docs/getting-started/) guide.
24
24
@@ -39,21 +39,21 @@ Make sure your system is up to date using yum:
39
39
40
40
This ensures that all software is up to date and running at the latest version.
41
41
42
-
## Install nginx from the EPEL
42
+
## Install Nginx from the EPEL
43
43
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:
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.
51
51
52
-
## Configuring nginx
52
+
## Configuring Nginx
53
53
54
-
### Starting nginx with systemd
54
+
### Starting Nginx with systemd
55
55
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:
57
57
58
58
systemctl enable nginx.service
59
59
systemctl start nginx.service
@@ -62,9 +62,9 @@ You can then check the status to make sure it is running at any time:
62
62
63
63
systemctl status nginx.service
64
64
65
-
### Configure nginx Virtual Hosts
65
+
### Configure Nginx Virtual Hosts
66
66
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`:
68
68
69
69
{: .file-excerpt }
70
70
/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
93
93
Deploy PHP with FastCGI
94
94
-----------------------
95
95
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:
0 commit comments