Loading...

Category: Real Time Concepts

Apache 2.2 + PHP-FPM

Installing the FPM You’ll need to be running PHP 5.3 or above. The IUS repository offers these packages for RHEL and CentOS. PHP 5.3 and 5.4 have reached end of [ … ]

PHP-FPM Troubleshooting

PHP-FPM Process Managers Introduction When looking into issues or configuration of php-fpm, its best to first understand the 3 process managers the php-fpm can use. A lot of the time [ … ]

SSL template for Nginx

 Basic Virtual Host Configuration server { listen 80; server_name example.com www.example.com; root /var/www/vhosts/example.com; access_log /var/log/nginx/example.com-access.log main; error_log /var/log/nginx/example.com-error.log warn; index index.php index.html index.htm; } Notes To make a VirtualHost the [ … ]

phpMyAdmin on Nginx

When creating a new server for a client that wants to run Nginx, you’ll need to adapt the virtual host configuration to properly serve requests. After modification the server block [ … ]

PHP-FPM and APC with nginx

Overview As Nginx does not have an equivalent to Apache’s mod_php, we need to use PHP-FPM to handle PHP interpretation. Nginx is then configured to proxy requests matching *.php to [ … ]

Nginx

Installation RHEL/CentOS # vim /etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key [nginx-mainline] name=nginx mainline repo baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/ gpgcheck=1 enabled=0 gpgkey=https://nginx.org/keys/nginx_signing.key Now you can install the service and configure it [ … ]

Nginx Setup with PHP-FPM

Introduction PHP-FPM Pools PHP-FPM’s architecture involves a parent process, running as root, that spins up “pools” of child processes. To illustrate, here is ps output with 2 pools: # ps [ … ]

Nginx Setup with PHP-FPM (Archived)

Nginx and PHP-FPM Prerequisites Installation of Nginx Installation of PHP-FPM Basic configuration of Nginx Basic configuration of PHP-FPM Basic configuration in Nginx Using upstream to define our PHP-FPM socket Within [ … ]