Hello
I can help you to find the directory access issue that you are experiencing, I have extensive experience with both PHP and Apache, as well as all of its modules and have completed many projects with issues similar to yours, over many years.
If you would like to send through a detailed description of what exactly the issue is, along with a copy of the PHP script, your Apache configuration or htaccess files, as well as what version of Apache and Server (OS) you are running, we can confirm and complete the project for you.
I can also clean up and optimise the Apache code where required to ensure your site runs at optimal speed.
Thank you
Darren