Welcome! Log In Create A New Profile

Advanced

Re: Noob looking for PHP help

Momchil Ivanov
April 19, 2009 08:29AM
На Sunday 19 April 2009 02:19:03 Jim Ohlstein написа:
> Momchil Ivanov Wrote:
> -------------------------------------------------------
>
> > На Saturday 18 April 2009 19:02:19 AMP Admin
> >
> > написа:
> > > To apply the patch run:
> > >
> > > #cat patch.php-fpm | patch -d php-5.2.9 -p1
> >
> > you don't really need cat here:
^^^
> >
> > patch -d php-5.2.9 -p1 < patch.php-fpm
>
> I believe the result is the same.
>
> Correct me if I am wrong.

yes it is the same, but that is not the point, see above :)

> > You should also use
> > --prefix=/usr/local/php-fpm-5.2.9 or something
> > else, just
> > to have it in a separate directory, otherwise you
> > mess up your system
>
> I specifically stated the OS for which these instructions were meant
> (CentOS 5.2 - 32 bit). Following them to the letter, php and php-cgi will
> be installed in /usr/local/bin/ and php-fpm in /usr/local/sbin/.
> php-fpm.conf will be in /usr/local/etc/. php.ini will need to be in
> /usr/local/lib/.
>
> In a stock CentOS php is in /usr/bin/ and php.ini in /etc/. I have done it
> this way now in dozens of servers and it has not "messed up" any systems. I
> use different options in 64 bit CenOS but they amount to the same basic
> thing.

The advantage of having php in a separate directory is that you can delete it
before installing a new version. Instaling everything from source
in /usr/local or /usr or wherever leaves you no chance for deinstallation,
because you don't know what files were installed and where. When you are
going to upgrade your php installation, the new one will overwrite some files
(tha files that it installs) but some files from the old installation might
be left (executables, libs, headers, etc....). At this point your system is
already messed up and might later need a new installation! Therefore on most
systems there are facilities called package/port managers that help you
safely install and deinstall stuff without leaving any remains. Remains might
later break other applications that you want to install. It's a general
practice for maintaining your system clean. Moreover on different systems
stuffs goes in different places and in new app versions default paths might
change, therefore if you want to have a maintainable system you must always
specify a prefix directory when installing from source.

It seems that you need to inform yourself better:
* CentOS is not an OS, it is a GNU/Linux distribution, which is explicitly
stated on [1]: "CentOS is an Enterprise-class Linux Distribution derived from
sources freely provided to the public by a prominent North American
Enterprise Linux vendor."
* there is no stock php, but php that you might install via a package,
moreover it is common practice from GNU/Linux distros to put apps in /usr and
confs in /etc


But at the end, you ca do with your systems what you want :) it's the freedom
that Unix-like systems give you!

1: http://www.centos.org/


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: 149
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