I'm sure that this is a simple mistake. I've not done much PHP/Apache or indeed any hosting in a decade & feel like a newbie all over again.
So, I recently installed flarum with Softlicious & everything was working fine, except that it's been installed to /public which I've now read on here is a security risk. I did a bit of searching on here & followed the customising paths docs, so far, so good.
Problem is that I try & visit my site & get a 403 forbidden error.
Checking the error logs, I'm getting this:
[31-May-2025 17:44:33 UTC] PHP Warning: require(/site.php): Failed to open stream: No such file or directory in /home/soconnec/public_html/index.php on line 10
[31-May-2025 17:44:33 UTC] PHP Warning: require(/site.php): Failed to open stream: No such file or directory in /home/soconnec/public_html/index.php on line 10
[31-May-2025 17:44:33 UTC] PHP Fatal error: Uncaught Error: Failed opening required '/site.php' (include_path='.:/opt/cpanel/ea-php81/root/usr/share/pear') in /home/soconnec/public_html/index.php:10
Stack trace:
#0 {main}
thrown in /home/soconnec/public_html/index.php on line 10
Line 10 is just:
$site = require './site.php';