Solved! :)
What happened:
As suggested by mistwang, at first I made sure to use php5 in all places where it is requested (external app). I thus, finally, discovered an error in my application which clearly was missing a function used to call a mysql database (mysql_connect). At this point...