-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[New] How to Install and Configure FastCGI and PHP-FPM #3164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[New] How to Install and Configure FastCGI and PHP-FPM #3164
Conversation
- How to Install and Configure FastCGI and PHP-FPM on Ubuntu 18.04
- How to Install and Configure FastCGI and PHP-FPM on Debian 10
- How to Install and Configure FastCGI and PHP-FPM on CentOS 8
Deploy preview for nostalgic-ptolemy-b01ab8 ready! Built with commit 79fe419 https://deploy-preview-3164--nostalgic-ptolemy-b01ab8.netlify.com |
Deploy preview for nostalgic-ptolemy-b01ab8 ready! Built with commit 018937b https://deploy-preview-3164--nostalgic-ptolemy-b01ab8.netlify.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rsyracuse There are a number of small copy edit fixes here, let me know if you have any questions
|
||
## Install mod_fcgid and PHP-FPM | ||
|
||
In this section, you will install the mod_fcgid and PHP-FPM modules on your CentOS 8 Linode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like in this line mod_fcgid
and PHP-FPM
should be in backticks, as it exists elsewhere in the guide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, upon further thought, there may be cases where these two packages might not be in backticks. Maybe when discussing the package they aren't in backticks, but when talking about the command they are? Use best judgement and make sure whatever the rational it's consistent throughout the guide.
|
||
## Install mod_fcgid and PHP-FPM | ||
|
||
In this section, you will install the mod_fcgid and PHP-FPM modules on your Debian 10 Linode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As before, looks like mod_fcgid
and PHP-FPM
should be in backticks
|
||
## Install mod_fcgid and PHP-FPM | ||
|
||
In this section, you will install the mod_fcgid and PHP-FPM modules on your Ubuntu 18.04 Linode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As before, mod_fcgid
and PHP-FPM
in backticks.
docs/web-servers/apache/how-to-install-and-configure-fastcgi-and-php-fpm-on-centos-8/index.md
Show resolved
Hide resolved
docs/web-servers/apache/how-to-install-and-configure-fastcgi-and-php-fpm-on-debian-10/index.md
Show resolved
Hide resolved
|
||
sudo apache2ctl configtest | ||
|
||
1. If you received _Syntax OK_ for steps 8 and 10, restart the Apache service: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check step numbers, this is step 9.
|
||
sudo apache2ctl configtest | ||
|
||
1. If you received _Syntax OK_ for steps 8 and 10, restart the Apache service: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check step numbers, this is step 9.
|
||
`mod_fcgid` is an [Apache module](https://httpd.apache.org/mod_fcgid/) that uses the [FastCGI](https://en.wikipedia.org/wiki/FastCGI) protocol to provide an interface between Apache and Common Gateway Interface (CGI) programs. CGI helps a web server handle dynamic content generation and processing for scripting languages like PHP. This dynamic functionality is commonly used when running content management systems like WordPress on a LAMP stack. | ||
|
||
This guide will show you how to install `mod_fcgid` and `PHP-FPM` on CentOS 8. It will also provide a basic configuration that uses socket based connections, instead of TCP. These steps will enable you to run PHP through `mod_fcgid`. Running PHP through `mod_fcgid` helps to reduce the amount of system resources used by forcing the web server to act as a proxy and only pass files ending with the *php* file extension to PHP-FPM. Additionally, using PHP-FPM allows each virtual host to be configured to run PHP code as individual users. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a period before .php file extension
|
||
`mod_fcgid` is an [Apache module](https://httpd.apache.org/mod_fcgid/) that uses the [FastCGI](https://en.wikipedia.org/wiki/FastCGI) protocol to provide an interface between Apache and Common Gateway Interface (CGI) programs. CGI helps a web server handle dynamic content generation and processing for scripting languages like PHP. This dynamic functionality is commonly used when running content management systems like WordPress on a LAMP stack. | ||
|
||
This guide will show you how to install `mod_fcgid` and `PHP-FPM` on Debian 10. It will also provide a basic configuration that uses socket based connections, instead of TCP. These steps will enable you to run PHP through `mod_fcgid`. Running PHP through `mod_fcgid` helps to reduce the amount of system resources used by forcing the web server to act as a proxy and only pass files ending with the *php* file extension to PHP-FPM. Additionally, using PHP-FPM allows each virtual host to be configured to run PHP code as individual users. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a period before .php file extension
|
||
`mod_fcgid` is an [Apache module](https://httpd.apache.org/mod_fcgid/) that uses the [FastCGI](https://en.wikipedia.org/wiki/FastCGI) protocol to provide an interface between Apache and Common Gateway Interface (CGI) programs. CGI helps a web server handle dynamic content generation and processing for scripting languages like PHP. This dynamic functionality is commonly used when running content management systems like WordPress on a LAMP stack. | ||
|
||
This guide will show you how to install `mod_fcgid` and `PHP-FPM` on Ubuntu 18.04. It will also provide a basic configuration that uses socket based connections, instead of TCP. These steps will enable you to run PHP through `mod_fcgid`. Running PHP through `mod_fcgid` helps to reduce the amount of system resources used by forcing the web server to act as a proxy and only pass files ending with the *php* file extension to PHP-FPM. Additionally, using PHP-FPM allows each virtual host to be configured to run PHP code as individual users. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a period before .php file extension