Working on a rather big php project, and I had an annoying problem when moving from wamp til lamp. That I finally solved, was really because I did not read my own source and the error message correctly.
I also realised that LAMP is more strict than WAMP, which is good though..