OpenSuse 10.3 php5-Upgrate 5.2.9 --> 5.3.0


i´d like to Update my php5 5.2.9 (installed with yast) to the version 5.3.0.

I have download the current tar-archive from and have unzip it in my src-folder. Then I have compiled it with the parameter vom “phpinfo();”.

configure '--prefix=/usr' '--datadir=/usr/share/php5' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--with-libdir=lib' '--includedir=/usr/include' '--sysconfdir=/etc/php5/apache2' '--with-config-file-path=/etc/php5/apache2' '--with-config-file-scan-dir=/etc/php5/conf.d' '--enable-libxml' '--enable-session' '--with-mm' '--with-pcre-regex=/usr' '--enable-xml' '--enable-simplexml' '--enable-spl' '--enable-filter' '--disable-debug' '--enable-inline-optimization' '--disable-rpath' '--disable-static' '--enable-shared' '--program-suffix=5' '--with-pic' '--with-gnu-ld' '--with-system-tzdata=/usr/share/zoneinfo' '--with-apxs2=/usr/sbin/apxs2' '--disable-all' '--disable-cli' 

After “make install” the phpinfo() says version 5.2.9 .
what I do wrong? How I can upgrate my php-Version?

Thank you very much! for your help

Did you look into those directories if files where stored there?

Hello hcw,

what folders do you mean?
I have the prefix “/usr” specified when compile. But after rund “make install”, the php5 -v command says Version 5.2.9 is installed.

I do mean directories (not folders). You have a datadir, a mandir, etc in the statement you show. An ls -l on those must show if, and when yes, what is changed recently.

When you gave /usr, is that because that is recommended to do so somewhere?
When all the resulting fiiles went to places where the 5.2.9 version is not located, you have now two versions. 5.2.9 still alive and kicking and 5.3.0 sitting somewhere where nobody notices.

you could do a

find / -name php5

(as root) to find out where the file named php5 is found.

Hello hcw,

thanks for your reply. In all this directories are files from the old version. “make install” hasn´t updates this files.

#find / -name php5

When I would install php 5.3.0 with make, the installer would produce the following:

/usr/src/php-5.3.0 # make install
Installing PHP SAPI module:       apache2handler
/usr/share/apache2/build/ SH_LIBTOOL='/usr/lib/apr-1/build/libtool' /usr/lib/apache2
/usr/lib/apr-1/build/libtool --mode=install cp /usr/lib/apache2/
cp .libs/ /usr/lib/apache2/
cp .libs/libphp5.lai /usr/lib/apache2/
libtool: install: warning: remember to run `libtool --finish /usr/src/php-5.3.0/libs'
chmod 755 /usr/lib/apache2/
activating php5
"php5" already present
Installing build environment:     /usr/lib/php/build/
Installing header files:          /usr/include/php/
Installing helper programs:       /usr/bin/
  program: phpize5
  program: php-config5
Installing man pages:             /usr/share/man/man1/
  page: phpize5.1
  page: php-config5.1

But why the installer don´t update or replace this files?

/usr/bin/php5 -v
PHP 5.2.9 with Suhosin-Patch 0.9.7 (cli) (built: Mar 12 2009 16:29:05)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH

I was posting because it came to my mind that everything might be there, but on a different place (such things happen on different distributions). Not because I ever did this.

The next is also just a suggestion. I see in the listing above:

libtool: install: warning: remember to run `libtool --finish /usr/src/php-5.3.0/libs'

I am not sure if this is to be done by you or not, but you may try it.


I have seen that even. When I run this command, the following output can be show:

# ./libtool --finish /usr/src/php-5.3.0/libs
PATH="$PATH:/sbin" ldconfig -n /usr/src/php-5.3.0/libs
Libraries have been installed in:

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and manual pages.

In this directory (/usr/src/php-5.3.0/libs) I can find the library. This is the same file that will installed, if I start “make install”. This is the only File which installed on “make install”.

But php5.3.0 isn´t installed then.

Please take a look at this, and see the difference:

#find / -name php5


Installing build environment: /usr/lib/php/build/
Installing header files: /usr/include/php/
Installing helper programs: /usr/bin/

I’m not realy into compiling php5, but to me it seems that, if your goal is to replace existing install by a new one, the include files should be in /usr/include/php5. Makes me wonder whether the rest is installed in /usr/lib/php etc etc.

Just a try to help

Just a little reminder:

SUSE Linux Lifetime - openSUSE

[opensuse-announce] Advance notice of discontinuation of openSUSE 10.3](

One might ask, if it makes sense to fiddle around with a distribution reaching EOL in a few weeks (and replacing core components with “hand made”, unsupported ones).

For a productive system, this is IMHO a “double no go”.