Skip to Content
CentOS System Administration Essentials
book

CentOS System Administration Essentials

by Andrew Mallett
November 2014
Beginner
174 pages
3h 50m
English
Packt Publishing
Content preview from CentOS System Administration Essentials

Installing PHP

Now that we have the web server up and running, we can add the PHP processor that we need to be able to add PHP elements to our page and subsequently create dynamic web content. Nginx uses the PHP FastCGI Process Manager, which is again available from the EPEL repository. We have that set up already from the Nginx install and the earlier install of 389-ds. To install PHP and the PHP-FPM, we can use yum:

# yum install php-fpm

Once installed, we need to edit the FPM so that it uses the correct accounts for Nginx. To do this, we can edit /etc/php-fpm.d/www.conf. We will need to edit the user and group lines from apache to nginx:

user = nginx
group = nginx

We also need to make sure that the Nginx web server knows to forward PHP files ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

CentOS 8 Essentials

CentOS 8 Essentials

Neil Smyth
Mastering CentOS 7 Linux Server

Mastering CentOS 7 Linux Server

Mohamed Alibi, BHASKARJYOTI ROY

Publisher Resources

ISBN: 9781783985920