Add File to Apache Server

This isn’t really a FreePBX question but I am trying to add a file to my system that would be accessed through the same port as the UCP but I don’t know enough to make this work.

I created a file in /var/www/html/ucp/assets/ called file.php
but when i try to browse to I get “You don’t have permission to access /assets/file.php on this server.”

I changed the owner and group to asterisk asterisk and when that didn’t work even tried chmod 777 but still no luck. What am I doing wrong, I don’t want to break the UCP in the process.

You’d need to modify the .htaccess file under /var/www/html/ucp/assets but this is a security risk.