Warning, no pid file found - php-fpm54 ?

saosangmo

Verified User
Joined
Oct 3, 2012
Messages
125
Location
Hanoi
Errors when build apache 2.4.x and php 5

hi,
I rebuilt my apache to remove some module with these steps:
change option.conf with values:
Code:
php1_release=5.4
php2_release=no
php1_mode=mod_php
php2_mode=php-fpm
and then run:

Code:
./build update
./build apache
./build php n
./build rewrite_confs

I got the error message:

cp: cannot remove `/etc/httpd/conf/extra/httpd-vhosts.conf': Operation not permitted
cp: cannot remove `/etc/httpd/conf/extra/httpd-alias.conf': Operation not permitted
Can't remove /etc/httpd/conf/extra/httpd-alias.conf: Operation not permitted, skipping file.
Gracefully shutting down php-fpm54: warning, no pid file found - php-fpm54 is not running ?

Please help, thanks
 
Last edited:
The question is not related to the subject of the thread. I think you are not logged in as a root user. Please check:
Code:
whoami
 
Hi smtalk,
Sorry, I have edited the first subject's post, I cant edit the subject of thread.
I logged with root user.
whoami result is root.
 
Last edited:
Please check the following then:
Code:
lsattr [COLOR=#333333]/etc/httpd/conf | grep extra
[/COLOR]lsattr [COLOR=#333333]/etc/httpd/conf/extra/[/COLOR]
 
These are result:
Code:
[root@csrv01 ~]# lsattr /etc/httpd/conf | grep extra
-------------e- /etc/httpd/conf/extra
[root@csrv01 ~]# lsattr /etc/httpd/conf/extra/
-------------e- /etc/httpd/conf/extra/httpd-deflate.conf
-------------e- /etc/httpd/conf/extra/httpd-includes.conf
-------------e- /etc/httpd/conf/extra/httpd-fcgid.conf
----i--------e- /etc/httpd/conf/extra/httpd-vhosts.conf
-------------e- /etc/httpd/conf/extra/proxy-html.conf
-------------e- /etc/httpd/conf/extra/directadmin-vhosts.conf.back
-------------e- /etc/httpd/conf/extra/httpd-mpm.conf
-------------e- /etc/httpd/conf/extra/httpd-multilang-errordoc.conf
-------------e- /etc/httpd/conf/extra/httpd-mpm.conf_2.0
-------------e- /etc/httpd/conf/extra/httpd-languages.conf
-------------e- /etc/httpd/conf/extra/httpd-manual.conf
lsattr: Operation not supported While reading flags on /etc/httpd/conf/extra/httpd-directories.conf
-------------e- /etc/httpd/conf/extra/httpd-dav.conf
-------------e- /etc/httpd/conf/extra/httpd-directories-new.conf
-------------e- /etc/httpd/conf/extra/httpd-hostname.conf
----i--------e- /etc/httpd/conf/extra/httpd-alias.conf
-------------e- /etc/httpd/conf/extra/httpd-info.conf
-------------e- /etc/httpd/conf/extra/httpd-php-handlers.conf
-------------e- /etc/httpd/conf/extra/httpd-userdir.conf
-------------e- /etc/httpd/conf/extra/httpd-ssl.conf
-------------e- /etc/httpd/conf/extra/httpd-autoindex.conf
-------------e- /etc/httpd/conf/extra/httpd-phpmodules.conf
-------------e- /etc/httpd/conf/extra/httpd-suphp.conf
-------------e- /etc/httpd/conf/extra/httpd-phpaddmodules.conf
-------------e- /etc/httpd/conf/extra/httpd-directories-old.conf
-------------e- /etc/httpd/conf/extra/directadmin-vhosts.conf
-------------e- /etc/httpd/conf/extra/httpd-default.conf
 
You have set:
Code:
chattr +i /etc/httpd/conf/extra/httpd-vhosts.conf
chattr +i /etc/httpd/conf/extra/httpd-alias.conf

It's not done by DA or the CustomBuild script. If you set an "i" flag, it's a normal behavior of these files to be not overwriteable and you should just ignore the errors. If you've changed your mind and would like CustomBuild to manage the files again:
Code:
chattr -i /etc/httpd/conf/extra/httpd-vhosts.conf
chattr -i /etc/httpd/conf/extra/httpd-alias.conf
 
thank smtalk,
And how about message:
"Gracefully shutting down php-fpm54: warning, no pid file found - php-fpm54 is not running ?"
I think there is one file calls it?
 
thank smtalk,
And how about message:
"Gracefully shutting down php-fpm54: warning, no pid file found - php-fpm54 is not running ?"
I think there is one file calls it?
It can be ignored, CustomBuild just tries to shut the php-fpm54 down, because you have it in /etc/init.d, however in the options.conf it is not chosen.
 
Back
Top