clarkwinkelmann If you can't update the webroot path in Apache or Nginx, these are the official instructions to remove the public folder https://flarum.org/docs/install.html#customizing-paths I'm a bit confused with the instructions you shared prasetyaid , surely you don't need to update the nginx config AND htaccess ? Those are for two different softwares. prasetyaid are you on Apache or Nginx ?
prasetyaid clarkwinkelmann the 'public' folder has been deleted and I use Apache Cpanel. The results of the error log are: [13-Nov-2019 14:58:05 UTC] PHP Warning: require(.../vendor/autoload.php): failed to open stream: No such file or directory in /home/domain/public_html/subdirectory/index.php on line 26 [13-Nov-2019 14:58:05 UTC] PHP Fatal error: require(): Failed opening required '.../vendor/autoload.php' (include_path='.:/opt/alt/php73/usr/share/pear') in /home/domain/public_html/subdirectory/index.php on line 26
clarkwinkelmann prasetyaid what is your current folder structure ? Is vendor folder at the same level as index.php ? You might need to fix the path to the vendor folder in index.php. The instructions on what to change is described in the "Customizing paths" part of the install instructions.
prasetyaid Index.php Line 26 require '.../vendor/autoload.php'; ( $server = new Flarum\Http\Server( Flarum\Foundation\Site::fromPaths([ 'base' => DIR, 'public' => DIR, 'storage' => DIR.'/../storage', ]) ); $server->listen();
prasetyaid clarkwinkelmann Vendor folder is at the same level as the index.php file. I have tried https://flarum.org/docs/install.html#customizing-paths
clarkwinkelmann prasetyaid then the correct paths probably look something like this (copied from the docs) require 'vendor/autoload.php'; 'base' => __DIR__, 'public' => __DIR__, 'storage' => __DIR__.'/storage',
prasetyaid clarkwinkelmann i should delete this $server = new Flarum\Http\Server( Flarum\Foundation\Site::fromPaths([ ?
clarkwinkelmann prasetyaid no, just update the paths. I copied the text from the docs where it's two different code blocks, but it got merged into a single one here 🙉 see https://flarum.org/docs/install.html#customizing-paths for the original.
clarkwinkelmann prasetyaid still the same error in the logs ? That error clearly meant the path to vendor was wrong. It should at least show the new path is wrong ?
prasetyaid clarkwinkelmann [13-Nov-2019 15:23:09 UTC] PHP Warning: require(/vendor/autoload.php): failed to open stream: No such file or directory in /home/domain/public_html/sub/index.php on line 26 [13-Nov-2019 15:23:09 UTC] PHP Fatal error: require(): Failed opening required '/vendor/autoload.php' (include_path='.:/opt/alt/php73/usr/share/pear') in /home/domaim/public_html/sub/index.php on line 26 🙁
prasetyaid HAAAAAA ... I FEEL CRAAAZZZYYY. STATEMENTS THE MISTAKE IS JUST BECAUSE THE SIGN SLASH / ON False require '/vendor/autoload.php'; Right require 'vendor/autoload.php'; Problem Solved. Thank you 😀