clarkwinkelmann
Thank you very much for replying me.
Actually, I read most of the posts about this public
folder questions, but still don't understand it. I am really eager to use flarum, so I want to figure it out.
Yes, I am a coding beginner, that's why I think it in a literal way.
As I asked for help in another thread,
https://discuss.flarum.org/d/17795-help-with-public-paths/10
https://discuss.flarum.org/d/17795-help-with-public-paths/12
I already updated those 4 paths according to how I arranged my forum.
For
- The base path (I don't understand)
- The public path (I don't understand)
- Composer autoload file path (I understand)
- The storage path (I understand)
I can understand 3 and 4, as/vendor/autoload.php
is always under vendor folder, and storage
folder is always stay under flarum
folder, as showed below.
server
├── public_html
│ └── index.php
└── flarum
├── storage
├── vendor
└── flarum (executable)
The problem is I don't understand 1 and 2, here are main questions get me stuck.
What does base stands for? What should I change 'base' => __DIR__,
to? And should put it in both index.php
and forum
? Does it matter if I put it just at the end of each file?
For public
path, since I already moved all folders and files out of public
folder to /domain.com/public_html
folder, and deleted the empty public
folder, does this code script 'public' => __DIR__,
stil matters, should I changed it to be 'public' => '/home/customer/www/domain.com/public_html',
?
I feel frustrated on this issue, I’ve been spent 2 days trying to solve it, it seems it should not be that difficult, but it made me go banana, I couldn't find a detailed solution on the web, and here on flarum official community, it is my only chance.
Let's take it further, the involved filed need to be changed accordingly might be:
- index.php
- flarum
- .htaccess
- site.php
- config.php
we just discussed index.php
and flarum
Thank you again for guiding me.