Welcome! Log In Create A New Profile

Advanced

install on freebsd

Posted by ethaniel 
ethaniel
install on freebsd
October 25, 2009 10:02AM
Hello,

How do I install the latest version of php-fpm on freebsd without
breaking ports?
I heavily rely on the port-tree for php extentions, so simply
downloading php sources and doing the standard installation won't
work.

Can you post detailed instructions on how to do this properly?
ethaniel
Re: install on freebsd
November 06, 2009 06:14AM
Guys, come on. Don't be so ignorant. This issue is really important.
Juan Fco. Giordana
Re: install on freebsd
November 06, 2009 06:22AM
ethaniel wrote:
> Guys, come on. Don't be so ignorant. This issue is really important.

Who's the ignorant?
Re: install on freebsd
November 06, 2009 07:04AM
Allright,

I believe Ethanial is complaining because the official instructions
don't mention any freebsd port. So its rather missing from the
official documentation. Which suggests something like an approved list
of rpm, deb, portfile, for the various OS distributions.

We could also explain that the php-conf-dir setting is needed to point
to the system directory where the extensions' .ini configuration files
are located. (I know its '/etc/php5/conf.d' in debian/ubuntu)

configure --with-config-file-scan-dir=/etc/php5/conf.d/

So there should be something similar installed by the official php
port, maybe in /usr/local/etc/ on freebsd. It might help people like
Ethanial to see a note about this in the official documentation.

We shall be adding this our README:

## Php Configure flags

--with-fpm Build the fpm SAPI (and not php-cgi)
--with-config-file-path=[PATH] Where to look for php.ini
--with-config-file-scan-dir[=PATH] Search path for extension .ini files

There are also many other php build flags. Please consult the official
php documentation.
We will publish recommended portfile / deb at a later date (when we
have good enough).

dreamcat4
dreamcat4@gmail.com
Re: install on freebsd
November 06, 2009 08:06AM
On Fri, Nov 6, 2009 at 7:02 PM, dreamcat four <dreamcat4@gmail.com> wrote:
>
> Allright,
>
> I believe Ethanial is complaining because the official instructions
> don't mention any freebsd port. So its rather missing from the
> official documentation. Which suggests something like an approved list
> of rpm, deb, portfile, for the various OS distributions.
>
> We could also explain that the php-conf-dir setting is needed to point
> to the system directory where the extensions' .ini configuration files
> are located. (I know its '/etc/php5/conf.d' in debian/ubuntu)
>
> configure --with-config-file-scan-dir=/etc/php5/conf.d/
>
> So there should be something similar installed by the official php
> port, maybe in /usr/local/etc/ on freebsd. It might help people like
> Ethanial to see a note about this in the official documentation.
>
> We shall be adding this our README:
>
> ## Php Configure flags
>
>        --with-fpm                                      Build the fpm SAPI (and not php-cgi)
>        --with-config-file-path=[PATH]                  Where to look for php.ini
>        --with-config-file-scan-dir[=PATH]              Search path for extension .ini files
>
> There are also many other php build flags. Please consult the official
> php documentation.
> We will publish recommended portfile / deb at a later date (when we
> have good enough).
>
> dreamcat4
> dreamcat4@gmail.com
>

or just make another installation at /opt/php-fpm for now.

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
jamengual
Re: install on freebsd
November 06, 2009 01:18PM
the installation on freebsd is really easy using 5.2.11 and without
breaking ports :

download the fpm port :

http://php-fpm.org/downloads/freebsd-port/

This port has not been keeping up to date, that is the only thing...

If you want to use php 5.3 then you will need to patch manually the
work directory on your bsd and recompile or add the patch to the files
directory to applay it when you run make.

or you can use my script to buid fpm and php.

http://pastebin.com/fd47bed0

On Nov 6, 5:04 am, Edho P Arief <edhopr...@gmail.com> wrote:
> On Fri, Nov 6, 2009 at 7:02 PM, dreamcat four <dreamc...@gmail.com> wrote:
>
> > Allright,
>
> > I believe Ethanial is complaining because the official instructions
> > don't mention any freebsd port. So its rather missing from the
> > official documentation. Which suggests something like an approved list
> > of rpm, deb, portfile, for the various OS distributions.
>
> > We could also explain that the php-conf-dir setting is needed to point
> > to the system directory where the extensions' .ini configuration files
> > are located. (I know its '/etc/php5/conf.d' in debian/ubuntu)
>
> > configure --with-config-file-scan-dir=/etc/php5/conf.d/
>
> > So there should be something similar installed by the official php
> > port, maybe in /usr/local/etc/ on freebsd. It might help people like
> > Ethanial to see a note about this in the official documentation.
>
> > We shall be adding this our README:
>
> > ## Php Configure flags
>
> >        --with-fpm                                      Build the fpm SAPI (and not php-cgi)
> >        --with-config-file-path=[PATH]                  Where to look for php.ini
> >        --with-config-file-scan-dir[=PATH]              Search path for extension .ini files
>
> > There are also many other php build flags. Please consult the official
> > php documentation.
> > We will publish recommended portfile / deb at a later date (when we
> > have good enough).
>
> > dreamcat4
> > dreamc...@gmail.com
>
> or just make another installation at /opt/php-fpm for now.
>
> --
> O< ascii ribbon campaign - stop html mail -www.asciiribbon.org
jamengual
Re: install on freebsd
November 06, 2009 01:32PM
there is up to date port here too :

http://gameservers.multiplay.co.uk/dropzone/freebsd-ports/php-5.2.11-fpm-0.6.tar.bz2

On Nov 6, 10:17 am, jamengual <jose.ameng...@gmail.com> wrote:
> the installation on freebsd is really easy using 5.2.11 and without
> breaking ports :
>
> download the fpm port :
>
> http://php-fpm.org/downloads/freebsd-port/
>
> This port has not been keeping up to date, that is the only thing...
>
> If you want to use php 5.3 then you will need to patch manually the
> work directory on your bsd and recompile or add the patch to the files
> directory to applay it when you run make.
>
> or you can use my script to buid fpm and php.
>
> http://pastebin.com/fd47bed0
>
> On Nov 6, 5:04 am, Edho P Arief <edhopr...@gmail.com> wrote:
>
> > On Fri, Nov 6, 2009 at 7:02 PM, dreamcat four <dreamc...@gmail.com> wrote:
>
> > > Allright,
>
> > > I believe Ethanial is complaining because the official instructions
> > > don't mention any freebsd port. So its rather missing from the
> > > official documentation. Which suggests something like an approved list
> > > of rpm, deb, portfile, for the various OS distributions.
>
> > > We could also explain that the php-conf-dir setting is needed to point
> > > to the system directory where the extensions' .ini configuration files
> > > are located. (I know its '/etc/php5/conf.d' in debian/ubuntu)
>
> > > configure --with-config-file-scan-dir=/etc/php5/conf.d/
>
> > > So there should be something similar installed by the official php
> > > port, maybe in /usr/local/etc/ on freebsd. It might help people like
> > > Ethanial to see a note about this in the official documentation.
>
> > > We shall be adding this our README:
>
> > > ## Php Configure flags
>
> > >        --with-fpm                                      Build the fpm SAPI (and not php-cgi)
> > >        --with-config-file-path=[PATH]                  Where to look for php.ini
> > >        --with-config-file-scan-dir[=PATH]              Search path for extension .ini files
>
> > > There are also many other php build flags. Please consult the official
> > > php documentation.
> > > We will publish recommended portfile / deb at a later date (when we
> > > have good enough).
>
> > > dreamcat4
> > > dreamc...@gmail.com
>
> > or just make another installation at /opt/php-fpm for now.
>
> > --
> > O< ascii ribbon campaign - stop html mail -www.asciiribbon.org
>
>
steven.hartland
Re: install on freebsd
November 06, 2009 06:40PM
Note: My port there will need updating for the new source URL scheme.
Given
permanent / archive URL's are close I'm going to hang off updating
until thats
done. In the mean time if anyone needs to use the port simply manually
download
the source into distfiles or update the source in the Makefile once
you've
expanded the port.
ethaniel
Re: install on freebsd
November 06, 2009 08:50PM
Thanks for the quick reply guys.

What I was actually mentioning is that if I don't install lang/php5
from ports, the extentions won't install either (the ones that go in
ports).
So what I'd love to see is some kind of instructions that would let
php5 install from ports (and so the extentions) and install php-fpm
along the way.
jamengual
Re: install on freebsd
November 07, 2009 02:56AM
Wha do you mean about the extensions ?

you are installing php from php5-fpm port directly and no extension is
getting installed, that is the problem ?

On Nov 6, 5:48 pm, ethaniel <arkadiy.ni...@gmail.com> wrote:
> Thanks for the quick reply guys.
>
> What I was actually mentioning is that if I don't install lang/php5
> from ports, the extentions won't install either (the ones that go in
> ports).
> So what I'd love to see is some kind of instructions that would let
> php5 install from ports (and so the extentions) and install php-fpm
> along the way.
ethaniel
Re: install on freebsd
November 07, 2009 03:42AM
Here is how I install PHP and extentions:

cd /usr/ports/lang/php5 && make install
cd /usr/ports/graphics/php5-gd && make install
cd /usr/ports/devel/php5-json && make install
cd /usr/ports/sysutils/php5-posix && make install

Now, I'd like to find out, how do I install the php-fpm in this case,
while allowing the extentions to install (and keeping port
dependencies alive)?
steven.hartland
Re: install on freebsd
November 07, 2009 08:42AM
instead of installing the php5 port your just install php5-fpm port,
everything else is the same.
ethaniel
Re: install on freebsd
November 07, 2009 02:48PM
Yes, but the php5-fpm port is usually released too late.
What I'm looking for is any instructions how I can achieve the same
goal with the fpm sources?



On Nov 7, 4:40 pm, "steven.hartland" <steven.hartl...@multiplay.co.uk>
wrote:
> instead of installing the php5 port your just install php5-fpm port,
> everything else is the same.
steven.hartland
Re: install on freebsd
November 07, 2009 05:16PM
If you don't want to wait, there's nothing stopping you maintaining
your own port.
ethaniel
Re: install on freebsd
November 10, 2009 09:58AM
dude, you don't understand.

my point is that once you upgrade freebsd (due to security needs or
whatever) and get the new ports, you automatically loose support from
php-fpm.
and I'm trying to fix this buy obtaining instructions on how to build
php-fpm from sources (not ports) on php that comes with ports
(Explained in my previous messages).

I'm sure that port maintainers can explain this pretty easily.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 275
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