Forum

CentOS php-fpm

Heiko
6 November 2012, 22:04
I was looking for a CentOS package for 8.6. But there was only a 8.5.2-5 package.
And CentOS had an older cmake and some old or missed packages.

This was my workaround:

yum remove httpd* php* mysql*
yum install gcc gcc-c++ libtool automake autoconf libxml2 libxml2-devel libxslt libxslt-devel libpng-devel curl-devel freetype-devel mesa-libGL-devel mysql-server mysql-devel libvorbis-devel

wget http://www.cmake.org/files/v2.8/cmake-2.8.9.tar.gz
tar -xvzf cmake-2.8.9.tar.gz
cd cmake-2.8.9
./configure
make
make install
cd ..

wget http://www.hiawatha-webserver.org/files/hiawatha-8.6.tar.gz
tar -xzvf hiawatha-8.6.tar.gz
cd hiawatha-8.6
mkdir build
cd build
cmake ..
make install/strip

Ok, better I should use the CMake option -DCONFIG_DIR=<path> .... etc. for path /etc/hiawatha ... (Options: http://www.hiawatha-webserver.org/howto/compilation_and_installation)

Now I would like to use PHP-FPM.

I installed it like this way:
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum --enablerepo=remi install php php-fpm
yum remove httpd*
some more new packages:
yum --enablerepo=remi install php-gd php-mysql php-mbstring php-xml php-mcrypt mysql-server mysql-client

But I can't find a howto for the /etc/php-fpm.d/www.conf and the hiawatha.conf
Has somebody an fine working example-configuration for hiawatha?

Thx

Hiawatha version: 8.6
Operating System: CentOS 6.3 x64
Hugo Leisink
7 November 2012, 08:34
How to configure php-fpm can be found on the internet, just google for it. Or just read the default config files. They are filled with lost of comments. Or use this page (second hit on Google): http://php-fpm.org/wiki/Configuration_File

How to configure Hiawatha can be found in the HOWTO pages at this website. They are in the support section. And guess what, there even is an example configuration file...
Heiko
13 November 2012, 22:05
http://www.hiawatha-webserver.org/howto/cgi_and_fastcgi

This with classic FastCGI is working. But with same virtualserver and Port 9000 not 2005 I always get file not found.
Thats really crazy
k0nsl
15 November 2012, 00:54
Heiko,

What if you connect using unix socket for FPM? Tried that?

-k0nsl
This topic has been closed.