login: root

Tag Archive: php-fpm

php5-fpm socket permission denied.

After updating the system, one error occured, despite that everything worked before.

The reason of it is that despite the defined user:

The php startup script still created the socket with the owner of root, and nginx was not able to reach it:

The fix is to add the socket owner with these lines:

And that’s it. Site is up and running again.

Centos wordpress php-fpm + nginx + apc

If you tired of having same old apache, and want something more fast and reliable, you can install nginx + php-fpm. Firstly you need to install new repo, to have ability to add those packages. And php-fpm works out of the box (without need to patch PHP) with version PHP 5.3. Official repository does not have this version yet.

%d bloggers like this: