Tag Archives: php-fpm

Step by step install Engine X (nginx) and php-fpm in FreeBSD

Nginx already in my list for almost 3 month but I don’t have time for play around with it. As usual freebsd ports is my preferable method to install software in FreeBSD :-)

I’m lucky to get php-fpm ports from php-fpm site that work for php-5.2.3RC. After change it a bit for php 5.2.6 I can test it together with nginx stable from ports too.

Here’s my steps for install nginx with php-fpm using FreeBSD ports :

1. Install nginx

alamster# cd /usr/ports/www/nginx
alamster# make install

I choose :

HTTP_MODULE
HTTP_REWRITE_MODULE
HTTP_SSL_MODULE
HTTP_STATUS_MODULE

2. Install php

alamster# cd /usr/ports/lang/php5
alamster# make install

I choose :

CLI
CGI
SUHOSIN
IPV6
FASTCGI
PATHINFO

Continue reading