Hey,
i think the main problem is that every environment is different and this issue can have that much origins that it is hard to tell specifically what you need to do.
With the knowledge in mind that the main topic of this forum is user support for ownCloud and not PHP i’m not sure if there are that much people able to tell you exactly what to do.
But as PHP is widely used searching a little bit around brings various topics like: