FPM initialization failed

zoghal

Verified User
Joined
Jul 30, 2009
Messages
8
Location
iran,hamedan
hi

I am using the following configuration :
Code:
#PHP settings.
#Default version of PHP is always php1_release. Possible values for php1/php2_release: 5.3, 5.4, no. php1/php2_mode: mod_php, ph$
php1_release=5.3
php2_release=5.4
php1_mode=suphp
php2_mode=php-fpm
php_ini=yes
#Possible values - production or development
php_ini_type=production
ioncube=no
zend=yes

webserver=apache

#Possible value: 2.4
apache_ver=2.4
mod_ruid2=yes
secure_htaccess=no
harden-symlinks-patch=yes

After the installation, php-fpm service does not run and displays the following error message:
Code:
[root@server1 custombuild]# service php-fpm54 restart
Gracefully shutting down php-fpm54: /etc/init.d/php-fpm54: line 78: kill: (31186) - No such process
................................... failed. Use force-quit
Starting php-fpm54: [16-Jan-2013 18:40:54] ERROR: [pool user] cannot get uid for user 'user'
[16-Jan-2013 18:40:54] ERROR: FPM initialization failed
please help me
 
You really changed user with a real user name? If yes, then you might need to delete the php-fpm54 config for that user.
 
You really changed user with a real user name? If yes, then you might need to delete the php-fpm54 config for that user.

very very thanks, I got a problem with your help.

Now I have a new problem with mod_rewrite
This is exactly my problem:

HTML:
the Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary.

I found this solution:
http://help.directadmin.com/item.php?id=460

But there is still a problem. Because the situation is a bit different from my script with WordPress.
I am using CakePHP framework. Cake is structured as follows:
http://book.cakephp.org/2.0/en/installation/advanced-installation.html#apache-and-mod-rewrite-and-htaccess

/home/book/domains/book.com/public_html/.httaccess:
HTML:
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>
/home/book/domains/book.com/public_html/app/.httaccess:
HTML:
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$    webroot/    [L]
   RewriteRule    (.*) webroot/$1    [L]
</IfModule>
/home/book/domains/book.com/public_html/app/webroot/.httaccess:
HTML:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

I tried several ways but could not solve the problem.
Please guide me exactly to where I use the following line in the file which httaccess.
Code:
RewriteCond %{REQUEST_URI} !^/fastcgiphp54
 
Put this at the beginning of your .htaccess:
Code:
# Global PHP-FPM rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_URI} ^/fastcgiphp54
  RewriteRule ^ - [L]
</IfModule>
 
Back
Top