Hello World!
Introduction to the Problem
I have a Dreamhost (DH) shared server account. By default DH provides the following directory structure:
/home/username/domain.tld
Where I have access to /home/username and ./domain.tld is the public directory.
Steps Taken to Install
I installed flarum using composer:
/usr/bin/php ./composer-stable.phar create-project flarum/flarum ./fforum
I moved the contents of ./fforum/public into ./domain.tld ... something like:
mv /home/username/fforum/public/*.* /home/username/domain.tld/
I edited:
- ./domain.tld/index.php
- ./fforum/config.php
- ./fforum/flarum
- ./site.php
Specifically:
./domain.tld/index.php
$site = require '../fforum/site.php';
./fforum/config.php
When I made some changes so the public site allowed me to view index.php and add my mysql and admin information, this was automatically created.
However, after I submitted this, and the file was created, the site said something was wrong and had a link to my domain. I clicked the link and the site refreshed but then said, "Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error." I followed that via google for a bit. Found this article, which did not help me too much. Keep reading to see what allowed me to see my site.
./fforum/flarum
Modified the $site variable to:
$site = require '../flarum-forum/site.php';
./site.php
This is what allowed me to see my site:
Modified the PHP environmental variable from:
'public' => __DIR__.'/public',
to:
'public' => $_SERVER["DOCUMENT_ROOT"],
Current Situation
Now I can see the site, in it's default theme, and I can create users, which then receive the confirmation emails, and so forth, but the graphics are not loading. There are placeholders in my browser, but no images.
What can I do to have images appear?
Edit 1: It is most likely a CSS issue. I am guessing the site is not finding the Font Awesome file(s)/link(s).
Edit 2: My assets directory only has an empty subdirectory named avatars.