Welcome! Log In Create A New Profile

Advanced

Re: Noob looking for PHP help

Momchil Ivanov
April 20, 2009 05:45AM
На Sunday 19 April 2009 18:22:43 AMP Admin написа:
> So is the following what would change?
>
> The default is:
> PHP SAPI module: cgi
> PHP CGI binary: /usr/local/bin/
> FPM config: /usr/local/etc/php-fpm.conf
> init.d script: /usr/local/sbin/php-fpm
> PHP CLI binary: /usr/local/bin/
> PHP CLI man page: /usr/local/man/man1/
> build environment: /usr/local/lib/php/build/
> header files: /usr/local/include/php/
> helper programs: /usr/local/bin/
> PHP /usr/local/lib/php/
> PHP.INI /usr/local/lib/php.ini
>
> If we add --prefix=/usr/local/lib/php-fpm-5.2.9 the new installation will
> look like: PHP SAPI module: cgi
> PHP CGI binary: /usr/local/bin/
> FPM config: /usr/local/etc/php-fpm.conf
> init.d script: /usr/local/sbin/php-fpm
> PHP CLI binary: /usr/local/bin/
> PHP CLI man page: /usr/local/man/man1/
> build environment: /usr/local/lib/php-fpm-5.2.9/build/
> header files: /usr/local/include/php/
> helper programs: /usr/local/bin/
> PHP /usr/local/lib/php-fpm-5.2.9/
> PHP.INI /usr/local/lib/php.ini
>
>
> -----Original Message-----
> From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of
> Edho P Arief Sent: Sunday, April 19, 2009 10:46 AM
> To: nginx@sysoev.ru
> Subject: Re: Noob looking for PHP help
>
> On Sun, Apr 19, 2009 at 10:00 PM, AMP Admin <admin@ampprod.com> wrote:
> > I don't really know what --prefix=/usr/local/php-fpm-5.2.9 accomplishes.
> >
> > Will that move the default locating of php.ini or anything?
>
> it'll allow you to remove and update php-fpm with ease. The location
> is relative to prefix, iirc

You can execute "./configure --help" to see what options are available and
what they do. There is a section concerning paths where different parts of
the program are installed:

Directory and file names:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[same as prefix]
--bindir=DIR user executables in DIR [EPREFIX/bin]
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data in DIR
[PREFIX/share]
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data in DIR
[PREFIX/com]
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
--includedir=DIR C header files in DIR [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
--infodir=DIR info documentation in DIR [PREFIX/info]
--mandir=DIR man documentation in DIR [PREFIX/man]
--srcdir=DIR find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM
run sed PROGRAM on installed program names

If you are using --prefix=/foo, all the files that your software installs will
be installed under /foo, which in most cases gives you the following
structure /foo/bin /foo/etc /foo/lib .............., so your php.ini will go
in /foo/lib/ if you don't change that with some of the options above. You can
also see the defaults (prefix=/usr/local for the example above). You must
also consider that these defaults might change with new versions, so you must
check what is changed in every new version or be on the safe side specifying
the options yourself and have it allways installed where and as you wish.

This is common for all software that comes with some kind of "configure"
script.

Momchil
Subject Author Posted

Noob looking for PHP help

AMP Admin April 18, 2009 09:57AM

Re: Noob looking for PHP help

Nuno Magalhães April 18, 2009 11:00AM

Re: Noob looking for PHP help

edogawaconan April 18, 2009 11:34AM

RE: Noob looking for PHP help

AMP Admin April 18, 2009 11:26AM

Re: Noob looking for PHP help

Fernando Perez April 18, 2009 10:56AM

Re: Noob looking for PHP help

Jim Ohlstein April 18, 2009 11:35AM

RE: Noob looking for PHP help

AMP Admin April 18, 2009 12:08PM

RE: Noob looking for PHP help

Cliff Wells April 18, 2009 12:33PM

RE: Noob looking for PHP help

AMP Admin April 18, 2009 01:13PM

Re: Noob looking for PHP help

Jim Ohlstein April 18, 2009 12:39PM

RE: Noob looking for PHP help

AMP Admin April 18, 2009 01:02PM

Re: Noob looking for PHP help

Momchil Ivanov April 18, 2009 07:20PM

Re: Noob looking for PHP help

Jim Ohlstein April 18, 2009 08:19PM

Re: Noob looking for PHP help

Momchil Ivanov April 19, 2009 08:29AM

Re: Noob looking for PHP help

Jim Ohlstein April 19, 2009 10:00AM

RE: Noob looking for PHP help

AMP Admin April 19, 2009 11:00AM

Re: Noob looking for PHP help

edogawaconan April 19, 2009 11:46AM

RE: Noob looking for PHP help

AMP Admin April 19, 2009 12:22PM

Re: Noob looking for PHP help

edogawaconan April 19, 2009 10:40PM

Re: Noob looking for PHP help

Momchil Ivanov April 20, 2009 05:45AM

RE: Noob looking for PHP help

AMP Admin April 20, 2009 08:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 95
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready