I have apache+php installed on my sl5500 with OZ3.5.2 and don't remember using the compat libs.
But just incase I remembered incorrectly you have to install ozcompat, and after that is installed, then do the following in command line:
> /pathtoinstalled/opt/QtPalmtop/bin/makecompat /home/www/bin/httpd
and you should be ready to go.