@clarkwinkelmann Hi thanks, i read your posts about install.
I am not an experienced user, I try to learn quickly.
But I understood from the your article that it is not safe to have Flarum installation files in the root directory like this?
1. If i use this command composer create-project flarum/flarum .
The dot at the end will probably cause my files to be extracted to the public root, right?
I don't understand why he writes this method in the manual when you don't recommend it. https://docs.flarum.org/install.html#server-requirements
When I install version 1.0.0. (this is a clean installation) in this version, I get this error
2. For this, composer create-project flarum/flarum
when I use this command without a dot at the end, a Flarum folder is created in the root directory public.
I understood from your article that for security is it better to have the Flarum in the root directory?
If I choose this type, then I will not get to the installation.
myweb.com/public - does not load anything
myweb.com/public/flarum - doesn't load anything either
According to the manual, I understood that in this case it is necessary to make some changes to the files if I want to install from this folder. And move the folder sfrom flarum/public folder to root
How will the page load then? It will be myweb.com or myweb.com/flarum .. shortcut to what address my forum will be displayed
a) Simply move all the files inside the public directory (including .htaccess) into the directory you want to serve Flarum from.
b) Then edit .htaccess and uncomment lines 9-15 in order to protect sensitive resources. For Nginx, uncomment lines 8-11 of .nginx.conf.
c) You will also need to edit the index.php file and change the following line: $site = require './site.php';
d) Finally, edit the site.php and update the paths in the following lines to reflect your new directory structure:
'base' => __DIR__,
'public' => __DIR__,
'storage' => __DIR__.'/storage',
I don't know what I'm doing wrong, anyway, even if I fix it, an error will pop up again. For the beta version, it still worked, I have no idea what it can be if hosting.
How i can delete folders via composer, anytime i cant delete vendor via filezilla nad ftp so i must wait any minutes and then it goes, it would be easier to delete via command line and composer 🙂
Sometimes it would be best to make a good video instead of a thousand words, where everything would be shown. It would be great for all users and especially beginners like me. 🙂
How edit this ?
'base' => __DIR__,
'public' => __DIR__,
'storage' => __DIR__.'/storage',
Just put this lines in site.php ? Or any next changes ?