Original von anda_skoa
Maybe you can copy the users .ICEauthority file to the home directory of teh apache user (creating one if necessary)
I'll try this one, thanks.
Also check that you have set the DISPLAY variable correctly.
What does the DISPLAY has to do with it? I thought that's just for X applications with GUI and not for command lines.
Edit: maybe this offers another solution: http://developer.kde.org/documentation/library/kdeqt/kde3arch/xmlrpc.html
Problem is that this nice tool is not in the distribution package and unmaintained since kde 3.2, so it's not really an option...