Click to See Complete Forum and Search --> : Software Patches
nolofinwe
03-18-2002, 02:23 AM
OK, this is driving me nuts. I want to upgrade PHP from 4.0.6 to 4.1.1. I downloaded the patch, gunzipped it. Now what. I can't find any information on what to do with the patch. I suppose this is one of those annoying things that you are just supposed to know.
Thanks in advance,
Ron
sarah31
03-18-2002, 05:26 AM
so it now exists in it's own directory correct?
Next you can look in that directory to see if there are installation instructions. Commonly, the procedure is, from a terminal
cd /path/to/file
./configure
make
then usually su to to superuser (root) and:
make install
Choozo
03-18-2002, 11:03 AM
The patch file will be uncompressed to a single file with *.patch suffix. This file is then read by the 'patch' command (man patch) and the source tree is updated. (Make sure the patch-file is placed outside the root directory of the PHP source tree.)
It may be easier to just download the complete 4.1.2 source, and compile that one using the same options you used last time (found in php-4.0.6/config.nice file).
Cheers :)
Strike
03-19-2002, 02:30 AM
Actually, normally the patch is in the root directory of the source. From there you do something like:
patch --dry-run name-of-patch
to test the patch, and remove the "--dry-run" to actually apply it.