Sorry, Nima.
Can't help you at this time.
We have tried only to install a finished PHP application, not to integrate PHP with dotLRN, nor with openacs.
We haven't any plans to even try to do this for now.
I hope you have luck with your test :)
/Jorge