I am having a bit of a time understanding the folder permissions/ownership. I am using the temp directory temporarily while I setup and tweak the forum as I have my main site in the public_html directory (domain root). This is where I currently have the forum. (V1.8.10 & PHP 8.2.28)
/home/mywebsite/public_html/temp/
I am not using the public folder and have moved all its contents to the /temp folder. I have updated the paths in the site.php and updated the htaccess file.
I believe I have all the file and folder permissions correctly setup and the forum seems to be working correctly (mostly). All files and folders are owned by "mywebsite" (not root or nobody).
My issue is that the script seems very touchy with any changes made from with in the admin area. These changes also often crash the script. (which is odd)
When Installing extensions, I often get (not every time though):
"Flarum encountered a boot error. Details have been logged to the Flarum log file." <= Admin page dies and have to login via user area.
"Oops! Something went wrong. Please reload the page and try again." <= User facing error
Here is part of the log:
[2025-07-07 17:12:40] flarum.ERROR: Error: Class "FoF\AntiSpam\Providers\SfsProvider" not found in /home/mywebsite/public_html/temp/vendor/flarum/core/src/Foundation/Application.php:228
Stack trace:
#0 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Foundation/Application.php(181): Flarum\Foundation\Application->resolveProviderClass()
#1 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Extend/ServiceProvider.php(41): Flarum\Foundation\Application->register()
#2 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Extension/Extension.php(141): Flarum\Extend\ServiceProvider->extend()
#3 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Extension/ExtensionManager.php(390): Flarum\Extension\Extension->extend()
#4 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend()
#5 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}()
#6 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Foundation/Application.php(329): call_user_func()
#7 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Foundation/Application.php(270): Flarum\Foundation\Application->fireAppCallbacks()
#8 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Foundation/InstalledSite.php(151): Flarum\Foundation\Application->boot()
#9 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Foundation/InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#10 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Http/Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#11 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Http/Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#12 /home/mywebsite/public_html/temp/index.php(26): Flarum\Http\Server->listen()
#13 {main}
Next Flarum\Extension\Exception\ExtensionBootError: Experienced an error while booting extension: FoF Anti Spam.
Error occurred while applying an extender of type: Flarum\Extend\ServiceProvider. in /home/mywebsite/public_html/temp/vendor/flarum/core/src/Extension/Extension.php:143
Stack trace:
#0 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Extension/ExtensionManager.php(390): Flarum\Extension\Extension->extend()
#1 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Extension/ExtensionServiceProvider.php(31): Flarum\Extension\ExtensionManager->extend()
#2 [internal function]: Flarum\Extension\ExtensionServiceProvider->Flarum\Extension{closure}()
#3 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Foundation/Application.php(329): call_user_func()
#4 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Foundation/Application.php(270): Flarum\Foundation\Application->fireAppCallbacks()
#5 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Foundation/InstalledSite.php(151): Flarum\Foundation\Application->boot()
#6 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Foundation/InstalledSite.php(82): Flarum\Foundation\InstalledSite->bootLaravel()
#7 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Http/Server.php(59): Flarum\Foundation\InstalledSite->bootApp()
#8 /home/mywebsite/public_html/temp/vendor/flarum/core/src/Http/Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#9 /home/mywebsite/public_html/temp/index.php(26): Flarum\Http\Server->listen()
#10 {main}
Also, when clearing the cache from Admin, I often get:
"Could not write to filesystem. Check your filesystem permissions and try again. Or try running from the command line."