Hi.
I am trying to setting up a LAMP server on an Ultra5.
I can not manage to get Php working properly: Apache handles correctly a plain Html website, it shows correctly a Php test page with just phpinfo(), but it does not work with wordpress nor concrete5.
Here is my error_log, accessing wordpress dir causes a segfault, accessing concrete5 dir causes a bus error:

I assumed the problem is with Php, but I am not sure. Ebuild php-5.2.9-r2 is the only available, since the newer have the date("Y") problem.

Actually this machine had worked fine for some years (last updated last August), now some days ago I updated it. I noticed that emerge updated gcc (4.3.3 -> 4.3.4) and glibc (2.8 -> 2.10.1-r1). I did not re-emerged all world, but I did re-emerge all LAMP-related packages. Could this be the problem? It would take forever to do an emerge -e world, so I keep this as last resort.
Any ideas?

Some information about my system:
emerge --info (I tried also rebuilding apache and php without distcc)

Yes, I should have said before: I do not have the wordpress installation I used on the machine (it was a test installation, but it worked), I am installing a new one.
I get error on the very first page of wordpress installation (where I should insert website name, db address and stuff). I am quite sure the db is not even called in that page.
Also, on client side I get a "Connection closed by remote server".