Don’t worry — this is a very common situation when installing Flarum manually, especially if you're unfamiliar with directory structure and permissions. Fortunately, it’s easy to fix once you know what to look for.
Problem Summary
- If you see a 404, it’s likely a URL rewrite issue or the Flarum folder isn’t in the correct web root.
- If you see a 403, it’s usually a permissions issue or missing index.php in the expected root folder.
Solution (Tested & Working)
- Log into your CloudPanel Admin
- Create a new website and choose PHP 8.3
- Go to Database → create a new database and take note of:
[LIST] - DB name
- DB user
- DB password
[*]Download the archive:👉
Flarum No-Public-Dir PackageFile: flarum-v1.x-no-public-dir-php8.3.zip
[*]Navigate to your site’s folder:
/home/cloudpanel/htdocs/yourdomain.com/
[*]
Delete everything inside the folder (including index.html)
[*]Upload and extract the Flarum zip file here
[*]⚠️
Important: The extracted files must be directly inside yourdomain.com folder
NOT like this: yourdomain.com/flarum/index.php
But like this: yourdomain.com/index.php
[*]Make sure file permissions are correct:
sudo chown -R clp:clp /home/cloudpanel/htdocs/yourdomain.com
[*]Visit your domain and proceed with the Flarum installation form using your DB credentials.
[/LIST]
Let me know if you need help with setting up extensions or configuring rewrite rules for Nginx afterwards — Flarum can run beautifully once the structure is correct!