I’m currently running openSuse 12.1 with php 5.3.8 and would like to upgrade to 5.4. How may I do this? I’m used to just installing software packages with yast.
If there is no package you can compile your own php
1. Download php, extract it and cd into the directory
2. ./configure - add options you need and do not forget --with-apxs2. It will compile the module for apache. (You can check the currunt options used to compile php in phpinfo()). You can see the help and options with ./configure --help
3. make - this will compile the php
4. make install - this will install the php
Check more discussion of this question.