So basically I made a php file that is called with two arguments (order total and order number) and it spits out a png with an EPC QR Code (so people just scan it and their banking app fills in all the details).
This file works in an empty virtual host, but it won't work when I put it anywhere in a wordpress directory/virtual host.
Is there some setting somewhere that is keeping non-wordpress php files from executing?