Welcome! Log In Create A New Profile

Advanced

php 5.3.3 init.d file

Posted by dcampano 
php 5.3.3 init.d file
August 29, 2010 10:32PM
Hey everyone,

I'm having some problems with the init.d script on a fresh CentOS 5 install.
It seems like it is having a problem creating the PID file. I have not
made any modifications to the init.d script, just copied it exactly after
the compile/make from sapi/fpm/init.d.php-fpm. Running the php-fpm command
by itself runs fine. Any one have any thoughts or similar problems?

Davy
Brandon Amaro
Re: php 5.3.3 init.d file
August 29, 2010 10:46PM
Have you tried the php-fpm from Remi's repo? I have no problem with the
init.d script that comes with it. Here's the instructions on how to
configure yum to include rpms from Remi's repo:
http://blog.famillecollet.com/pages/Config-en


On 08/29/2010 07:31 PM, Davy Campano wrote:
> Hey everyone,
>
> I'm having some problems with the init.d script on a fresh CentOS 5
> install. It seems like it is having a problem creating the PID file.
> I have not made any modifications to the init.d script, just copied
> it exactly after the compile/make from sapi/fpm/init.d.php-fpm.
> Running the php-fpm command by itself runs fine. Any one have any
> thoughts or similar problems?
>
> Davy


--
omega13a
Owner and Founder of UFT
http://www.fedtrek.com
Re: php 5.3.3 init.d file
August 29, 2010 11:24PM
Thanks for the tip, I was able to get it working by taking the script from
Remi's rpm and modifying it. I guess maybe the init.d script that comes
with source doesn't work on centos. Can anyone confirm this?

On Sun, Aug 29, 2010 at 10:45 PM, Brandon Amaro <omega13a@fedtrek.com>wrote:

> Have you tried the php-fpm from Remi's repo? I have no problem with the
> init.d script that comes with it. Here's the instructions on how to
> configure yum to include rpms from Remi's repo:
> http://blog.famillecollet.com/pages/Config-en
>
>
>
> On 08/29/2010 07:31 PM, Davy Campano wrote:
>
>> Hey everyone,
>>
>> I'm having some problems with the init.d script on a fresh CentOS 5
>> install. It seems like it is having a problem creating the PID file. I
>> have not made any modifications to the init.d script, just copied it exactly
>> after the compile/make from sapi/fpm/init.d.php-fpm. Running the php-fpm
>> command by itself runs fine. Any one have any thoughts or similar problems?
>>
>> Davy
>>
>
>
> --
> omega13a
> Owner and Founder of UFT
> http://www.fedtrek.com
>
>
Mathew Davies
Re: php 5.3.3 init.d file
August 29, 2010 11:34PM
The init.d script shipped with the source is not guaranteed to work
everywhere. It is the job of your distributions package maintainer to write
a script.

Kind Regards,
-Mathew Davies.


On 30 August 2010 04:22, Davy Campano <dcampano@gmail.com> wrote:

> Thanks for the tip, I was able to get it working by taking the script from
> Remi's rpm and modifying it. I guess maybe the init.d script that comes
> with source doesn't work on centos. Can anyone confirm this?
>
> On Sun, Aug 29, 2010 at 10:45 PM, Brandon Amaro <omega13a@fedtrek.com>wrote:
>
>> Have you tried the php-fpm from Remi's repo? I have no problem with the
>> init.d script that comes with it. Here's the instructions on how to
>> configure yum to include rpms from Remi's repo:
>> http://blog.famillecollet.com/pages/Config-en
>>
>>
>>
>> On 08/29/2010 07:31 PM, Davy Campano wrote:
>>
>>> Hey everyone,
>>>
>>> I'm having some problems with the init.d script on a fresh CentOS 5
>>> install. It seems like it is having a problem creating the PID file. I
>>> have not made any modifications to the init.d script, just copied it exactly
>>> after the compile/make from sapi/fpm/init.d.php-fpm. Running the php-fpm
>>> command by itself runs fine. Any one have any thoughts or similar problems?
>>>
>>> Davy
>>>
>>
>>
>> --
>> omega13a
>> Owner and Founder of UFT
>> http://www.fedtrek.com
>>
>>
>
Jérôme Loyet
Re: php 5.3.3 init.d file
August 30, 2010 02:58AM
start: /path/to/php-fpm
stop: kill `cat /path/to/php-fpm.pid`

it stays the best and universal way to stop/start daemon. Keep in mind
that in some OS there is no init.d system.

2010/8/30 Davy Campano <dcampano@gmail.com>:
> Thanks for the tip, I was able to get it working by taking the script from
> Remi's rpm and modifying it.  I guess maybe the init.d script that comes
> with source doesn't work on centos.  Can anyone confirm this?
> On Sun, Aug 29, 2010 at 10:45 PM, Brandon Amaro <omega13a@fedtrek.com>
> wrote:
>>
>> Have you tried the php-fpm from Remi's repo? I have no problem with the
>> init.d script that comes with it. Here's the instructions on how to
>> configure yum to include rpms from Remi's repo:
>> http://blog.famillecollet.com/pages/Config-en
>>
>>
>> On 08/29/2010 07:31 PM, Davy Campano wrote:
>>>
>>> Hey everyone,
>>>
>>> I'm having some problems with the init.d script on a fresh CentOS 5
>>> install.  It seems like it is having a problem creating the PID file.  I
>>> have not made any modifications to the init.d script, just copied it exactly
>>> after the compile/make from sapi/fpm/init.d.php-fpm.  Running the php-fpm
>>> command by itself runs fine.  Any one have any thoughts or similar problems?
>>>
>>> Davy
>>
>>
>> --
>> omega13a
>> Owner and Founder of UFT
>> http://www.fedtrek.com
>>
>
>
Dennis J.
Re: php 5.3.3 init.d file
August 30, 2010 05:56AM
The best universal way to do something usually isn't the best way to do
this on a particular system. E.g. many systems have special features for
their init systems like additional logging or the early creation of sockets
in the new systemd init replacement that's introduced in Fedora right now.

Especially on a production system you should usually work with the system
not against it.

Regards,
Dennis

On 08/30/2010 08:56 AM, Jérôme Loyet wrote:
> start: /path/to/php-fpm
> stop: kill `cat /path/to/php-fpm.pid`
>
> it stays the best and universal way to stop/start daemon. Keep in mind
> that in some OS there is no init.d system.
>
> 2010/8/30 Davy Campano<dcampano@gmail.com>:
>> Thanks for the tip, I was able to get it working by taking the script from
>> Remi's rpm and modifying it. I guess maybe the init.d script that comes
>> with source doesn't work on centos. Can anyone confirm this?
>> On Sun, Aug 29, 2010 at 10:45 PM, Brandon Amaro<omega13a@fedtrek.com>
>> wrote:
>>> Have you tried the php-fpm from Remi's repo? I have no problem with the
>>> init.d script that comes with it. Here's the instructions on how to
>>> configure yum to include rpms from Remi's repo:
>>> http://blog.famillecollet.com/pages/Config-en
>>>
>>>
>>> On 08/29/2010 07:31 PM, Davy Campano wrote:
>>>> Hey everyone,
>>>>
>>>> I'm having some problems with the init.d script on a fresh CentOS 5
>>>> install. It seems like it is having a problem creating the PID file. I
>>>> have not made any modifications to the init.d script, just copied it exactly
>>>> after the compile/make from sapi/fpm/init.d.php-fpm. Running the php-fpm
>>>> command by itself runs fine. Any one have any thoughts or similar problems?
>>>>
>>>> Davy
>>>
>>> --
>>> omega13a
>>> Owner and Founder of UFT
>>> http://www.fedtrek.com
>>>
>>
Jérôme Loyet
Re: php 5.3.3 init.d file
August 30, 2010 06:04AM
2010/8/30 Dennis J. <djacobfeuerborn@gmail.com>:
>  The best universal way to do something usually isn't the best way to do
> this on a particular system. E.g. many systems have special features for
> their init systems like additional logging or the early creation of sockets
> in the new systemd init replacement that's introduced in Fedora right now..
>
> Especially on a production system you should usually work with the system
> not against it.

what I meant was that as every system has specifics, so it's the
mainteneror or users job to make/use its own startup script.

>
> Regards,
>  Dennis
>
> On 08/30/2010 08:56 AM, Jérôme Loyet wrote:
>>
>> start: /path/to/php-fpm
>> stop: kill `cat /path/to/php-fpm.pid`
>>
>> it stays the best and universal way to stop/start daemon. Keep in mind
>> that in some OS there is no init.d system.
>>
>> 2010/8/30 Davy Campano<dcampano@gmail.com>:
>>>
>>> Thanks for the tip, I was able to get it working by taking the script
>>> from
>>> Remi's rpm and modifying it.  I guess maybe the init.d script that comes
>>> with source doesn't work on centos.  Can anyone confirm this?
>>> On Sun, Aug 29, 2010 at 10:45 PM, Brandon Amaro<omega13a@fedtrek.com>
>>> wrote:
>>>>
>>>> Have you tried the php-fpm from Remi's repo? I have no problem with the
>>>> init.d script that comes with it. Here's the instructions on how to
>>>> configure yum to include rpms from Remi's repo:
>>>> http://blog.famillecollet.com/pages/Config-en
>>>>
>>>>
>>>> On 08/29/2010 07:31 PM, Davy Campano wrote:
>>>>>
>>>>> Hey everyone,
>>>>>
>>>>> I'm having some problems with the init.d script on a fresh CentOS 5
>>>>> install.  It seems like it is having a problem creating the PID file.
>>>>>  I
>>>>> have not made any modifications to the init.d script, just copied it
>>>>> exactly
>>>>> after the compile/make from sapi/fpm/init.d.php-fpm.  Running the
>>>>> php-fpm
>>>>> command by itself runs fine.  Any one have any thoughts or similar
>>>>> problems?
>>>>>
>>>>> Davy
>>>>
>>>> --
>>>> omega13a
>>>> Owner and Founder of UFT
>>>> http://www.fedtrek.com
>>>>
>>>
>
>
Brian Tafoya
Re: php 5.3.3 init.d file
September 04, 2010 12:28AM
I was just going to say the same thing. I have several CentOS 5.5
servers running the packages from REMI with no issues what so ever.

Brian Tafoya
President/Senior Engineer
Prema Solutions
www.premasolutions.com



On Sun, Aug 29, 2010 at 7:45 PM, Brandon Amaro <omega13a@fedtrek.com> wrote:
> Have you tried the php-fpm from Remi's repo? I have no problem with the
> init.d script that comes with it. Here's the instructions on how to
> configure yum to include rpms from Remi's repo:
> http://blog.famillecollet.com/pages/Config-en
>
>
> On 08/29/2010 07:31 PM, Davy Campano wrote:
>>
>> Hey everyone,
>>
>> I'm having some problems with the init.d script on a fresh CentOS 5
>> install.  It seems like it is having a problem creating the PID file.  I
>> have not made any modifications to the init.d script, just copied it exactly
>> after the compile/make from sapi/fpm/init.d.php-fpm.  Running the php-fpm
>> command by itself runs fine.  Any one have any thoughts or similar problems?
>>
>> Davy
>
>
> --
> omega13a
> Owner and Founder of UFT
> http://www.fedtrek.com
>
>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 189
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready