Welcome! Log In Create A New Profile

Advanced

FreeBSD port for fpm 0.6.3 and php 5.2.10

Posted by steven.hartland 
steven.hartland
FreeBSD port for fpm 0.6.3 and php 5.2.10
September 17, 2009 07:02PM
For those running FreeBSD I've created a port which combines php
5.2.10 and fpm 0.6.3

How to use:-
1. Download: http://gameservers.multiplay.co.uk/dropzone/freebsd-ports/php-5.2.10-fpm-0.6.3.tar.bz2
2. Extract in /usr/ports/lang
3. cd /usr/ports/lang/php5-fpm
4. make install

Notes:-
* MASTER_SITE is currently set to a temporary hosting location which
includes a php-fpm-0.6.3 archive created directly from a snapshot
launchpad on September 11 @ 19:25
* The port includes a patch to relax the sanity check in php-fpm's
configure to include "default" as well as "cgi" of PHP_SAPI

Feedback welcome :)
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 17, 2009 08:02PM
we really need to get a page up on the wiki for the new FPM

On Thu, Sep 17, 2009 at 4:01 PM, steven.hartland
<steven.hartland@multiplay.co.uk> wrote:
>
> For those running FreeBSD I've created a port which combines php
> 5.2.10 and fpm 0.6.3
>
> How to use:-
> 1. Download: http://gameservers.multiplay.co.uk/dropzone/freebsd-ports/php-5.2.10-fpm-0.6.3.tar.bz2
> 2. Extract in /usr/ports/lang
> 3. cd /usr/ports/lang/php5-fpm
> 4. make install
>
> Notes:-
> * MASTER_SITE is currently set to a temporary hosting location which
> includes a php-fpm-0.6.3 archive created directly from a snapshot
> launchpad on September 11 @ 19:25
> * The port includes a patch to relax the sanity check in php-fpm's
> configure to include "default" as well as "cgi" of PHP_SAPI
>
> Feedback welcome :)
>
>
Juan Fco. Giordana
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 18, 2009 05:04PM
Michael Shadle wrote:
> we really need to get a page up on the wiki for the new FPM

That would be great. I'm totally lost on how to get this working.
steven.hartland
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 18, 2009 07:20PM
On how to make the port work? Did you have an problem with my
instructions? If so what step and what was the error?

On Sep 18, 9:40 pm, "Juan Fco. Giordana" <juangiord...@gmail.com>
wrote:
> Michael Shadle wrote:
> > we really need to get a page up on the wiki for the new FPM
>
> That would be great. I'm totally lost on how to get this working.
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 18, 2009 11:33PM
steven.hartland Wrote:
-------------------------------------------------------
> On how to make the port work? Did you have an
> problem with my
> instructions? If so what step and what was the
> error?

It seems to build cleanly on a FreeBSD 7.2 box but the install generates an error.

[code]
neptune# make install
===> Installing for php5-fpm-5.2.10
===> php5-fpm-5.2.10 depends on executable: pkg-config - found
===> php5-fpm-5.2.10 depends on shared library: xml2.5 - found
===> Generating temporary packing list
===> Checking if lang/php5-fpm already installed
"Makefile", line 559: warning: duplicate script for target "main/internal_functions.lo" ignored
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PHP CGI binary: /usr/local/bin/
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/man/man1/
page: phpize.1
page: php-config.1
cp: /usr/local/etc/php-fpm.conf: No such file or directory
*** Error code 1

Stop in /usr/ports/lang/php5-fpm.
*** Error code 1

Stop in /usr/ports/lang/php5-fpm.
neptune# php -v
PHP 5.2.10 with Suhosin-Patch 0.9.7 (cli) (built: Sep 18 2009 23:26:36)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
[/code]



>
> On Sep 18, 9:40 pm, "Juan Fco. Giordana"
> wrote:
> > Michael Shadle wrote:
> > > we really need to get a page up on the wiki
> for the new FPM
> >
> > That would be great. I'm totally lost on how to
> get this working.

--
Jim Ohlstein
dreamcat four
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 04:54AM
add "--with-fpm-conf=/etc/php-fpm.conf" to the ./configure arguments
I guess that's something to go in the port file?

On Sat, Sep 19, 2009 at 4:33 AM, Jim Ohlstein <nginx-forum@nginx.us> wrote:
> cp: /usr/local/etc/php-fpm.conf: No such file or directory
> *** Error code 1

>> On Sep 18, 9:40 pm, "Juan Fco. Giordana"
>> wrote:
>> > Michael Shadle wrote:
>> > > we really need to get a page up on the wiki
>> for the new FPM
>> >
>> > That would be great. I'm totally lost on how to
>> get this working.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?3,7565,7770#msg-7770
>
>
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 05:54AM
isn't typical location for freebsd "third party" etc directory
/usr/local/etc ? it does make sense...


On Sat, Sep 19, 2009 at 1:51 AM, dreamcat four <dreamcat4@gmail.com> wrote:
>
> add "--with-fpm-conf=/etc/php-fpm.conf" to the ./configure arguments
> I guess that's something to go in the port file?
>
> On Sat, Sep 19, 2009 at 4:33 AM, Jim Ohlstein <nginx-forum@nginx.us> wrote:
>> cp: /usr/local/etc/php-fpm.conf: No such file or directory
>> *** Error code 1
>
>>> On Sep 18, 9:40 pm, "Juan Fco. Giordana"
>>> wrote:
>>> > Michael Shadle wrote:
>>> > > we really need to get a page up on the wiki
>>> for the new FPM
>>> >
>>> > That would be great. I'm totally lost on how to
>>> get this working.
>>
>> Posted at Nginx Forum: http://forum.nginx.org/read.php?3,7565,7770#msg-7770
>>
>>
>
dreamcat four
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 05:58AM
So then why doesn't /usr/local/etc/ path yet exist on the target system?
I guess i can't help you guys much more here. Check through the port file.

On Sat, Sep 19, 2009 at 10:41 AM, Michael Shadle <mike503@gmail.com> wrote:
>
> isn't typical location for freebsd "third party" etc directory
> /usr/local/etc ? it does make sense...
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 06:00AM
something is probably hardcoded for /etc/php-fpm.conf or the port
needs to force the --with-fpm-conf like you said

On Sat, Sep 19, 2009 at 2:56 AM, dreamcat four <dreamcat4@gmail.com> wrote:
>
> So then why doesn't /usr/local/etc/ path yet exist on the target system?
> I guess i can't help you guys much more here. Check through the port file.
>
> On Sat, Sep 19, 2009 at 10:41 AM, Michael Shadle <mike503@gmail.com> wrote:
>>
>> isn't typical location for freebsd "third party" etc directory
>> /usr/local/etc ? it does make sense...
>
steven.hartland
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 08:40AM
New version of the port uploaded, which fixes the install issue. I had
silly already installed stuff manually on my test box so didn't notice
the php-fpm install script didn't install the config file.

This is now handled by the port, checking for existing ones to avoid
overwriting customisations.

Notes:-
1. Seems --with-fpm-bin doesn't work correctly so the port currently
installs to /usr/local/bin instead of the preferred /usr/local/sbin
2. This port now conflicts the php5-5*
dreamcat four
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 09:00AM
On Sat, Sep 19, 2009 at 1:39 PM, steven.hartland
<steven.hartland@multiplay.co.uk> wrote:
> Notes:-
> 1. Seems --with-fpm-bin doesn't work correctly so the port currently
> installs to /usr/local/bin instead of the preferred /usr/local/sbin

This is a known issue in 0.6.3 whereby the configure --help
information will show a default bin path of /bin/php-fpm (but the
default bin path is actually /usr/local/bin). That's been fixed in
0.6.5. But there aught to be no reason why you can't just overide it
and
configure --with-fpm-path="/usr/local/sbin/php-fpm"

dreamcat4
dreamcat4@gmail.com
Jim Ohlstein
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 09:20AM
steven.hartland wrote:
> New version of the port uploaded, which fixes the install issue. I had
> silly already installed stuff manually on my test box so didn't notice
> the php-fpm install script didn't install the config file.

I had fixed that already in the Makefile, and had made a patch but you
beat me to it. It was late last night...

>
> This is now handled by the port, checking for existing ones to avoid
> overwriting customisations.
>
> Notes:-
> 1. Seems --with-fpm-bin doesn't work correctly so the port currently
> installs to /usr/local/bin instead of the preferred /usr/local/sbin

I noticed that too. Did you correct that error in "make deinstall"? It
was looking for the binary in /usr/local/sbin. I corrected that by
editing line 5 of "pkg-plist". I assume that's the correct method.

> 2. This port now conflicts the php5-5*
>

Are there any other changes that would cause me to need to reinstall now
that I have done the above?

Thanks for your work,

Jim
Jim Ohlstein
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 09:44AM
Skip my previous question. I checked it out. There is still one slight
"bug" and that's in the installed /usr/local/etc/rc.d/php-fpm file. It
still looks for the binary in /usr/local/sbin.

The fix is obvious but I thought I should let you know so you can update
the port.

Jim

steven.hartland wrote:
> New version of the port uploaded, which fixes the install issue. I had
> silly already installed stuff manually on my test box so didn't notice
> the php-fpm install script didn't install the config file.
>
> This is now handled by the port, checking for existing ones to avoid
> overwriting customisations.
>
> Notes:-
> 1. Seems --with-fpm-bin doesn't work correctly so the port currently
> installs to /usr/local/bin instead of the preferred /usr/local/sbin
> 2. This port now conflicts the php5-5*
>
steven.hartland
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 09:46AM
--with-fpm-path doesn't seem to exist in 0.6.3 and using it or --with-
fpm-bin=/usr/local/sbin/php-fpm still installed to /usr/local/bin/php-
fpm here

On Sep 19, 1:58 pm, dreamcat four <dreamc...@gmail.com> wrote:
> This is a known issue in 0.6.3 whereby the configure --help
> information will show a default bin path of /bin/php-fpm (but the
> default bin path is actually /usr/local/bin). That's been fixed in
> 0.6.5. But there aught to be no reason why you can't just overide it
> and
> configure --with-fpm-path="/usr/local/sbin/php-fpm"
steven.hartland
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 09:48AM
On Sep 19, 2:17 pm, Jim Ohlstein <jim.ohlst...@gmail.com> wrote:

> I noticed that too. Did you correct that error in "make deinstall"? It
> was looking for the binary in /usr/local/sbin. I corrected that by
> editing line 5 of "pkg-plist". I assume that's the correct method.

Yep fixed that, but also just noticed another issue with the rc
script, had forgotten to backout the sbin change, so now at revision
2.

>  > 2. This port now conflicts the php5-5*
>  >
>
> Are there any other changes that would cause me to need to reinstall now
> that I have done the above?

Nope all semantic fixes so if you have a working version no need to
upgrade.
steven.hartland
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 09:52AM
Hehe, yep already fixed :)

On Sep 19, 2:43 pm, Jim Ohlstein <jim.ohlst...@gmail.com> wrote:
> Skip my previous question. I checked it out. There is still one slight
> "bug" and that's in the installed /usr/local/etc/rc.d/php-fpm file. It
> still looks for the binary in /usr/local/sbin.
>
> The fix is obvious but I thought I should let you know so you can update
> the port.
Jim Ohlstein
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 10:00AM
I'm trying to help but you're too fast. :) We seem to be crossing emails.

I have a box that's soon to go into fairly heavy production use with this (switching from a Linux box) so I really appreciate the port.

Thank you all!

Jim

Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: "steven.hartland" <steven.hartland@multiplay.co.uk>

Date: Sat, 19 Sep 2009 06:50:22
To: highload-php-en<highload-php-en@googlegroups.com>
Subject: Re: FreeBSD port for fpm 0.6.3 and php 5.2.10



Hehe, yep already fixed :)

On Sep 19, 2:43 pm, Jim Ohlstein <jim.ohlst...@gmail.com> wrote:
> Skip my previous question. I checked it out. There is still one slight
> "bug" and that's in the installed /usr/local/etc/rc.d/php-fpm file. It
> still looks for the binary in /usr/local/sbin.
>
> The fix is obvious but I thought I should let you know so you can update
> the port.
dreamcat four
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 10:26AM
On Sat, Sep 19, 2009 at 2:44 PM, steven.hartland
<steven.hartland@multiplay.co.uk> wrote:
>
> --with-fpm-path doesn't seem to exist in 0.6.3 and using it or --with-
> fpm-bin=/usr/local/sbin/php-fpm still installed to /usr/local/bin/php-
> fpm here

Sorry - yes i meant to say --with-fpm-bin. And according to jim you
did specify that. The bin path is filled into the rc.d script. Hmm I
guess you're saying is that the 'make install' command copies the
php-fpm to /usr/local/bin/ and not /usr/local/sbin/
dreamcat four
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 10:32AM
On Sat, Sep 19, 2009 at 3:24 PM, dreamcat four <dreamcat4@gmail.com> wrote:
> guess you're saying is that the 'make install' command copies the
> php-fpm to /usr/local/bin/ and not /usr/local/sbin/

I'll eventually get round to fixing this. Just some other issues to do
on CentOS first.
steven.hartland
Re: FreeBSD port for fpm 0.6.3 and php 5.2.10
September 19, 2009 10:44AM
On Sep 19, 3:24 pm, dreamcat four <dreamc...@gmail.com> wrote:

> Hmm I guess you're saying is that the 'make install' command copies
> the php-fpm to /usr/local/bin/ and not /usr/local/sbin/

Yep thats the puppy, no biggy I'll update when its fixed :)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 150
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready