[DO NOT MERGE] PHP - DocumentRoot logic (optional php/ directory)