If you see this page, Apache configuration is correct.
Now we know the issue is with the PHP script, not Apache.