Why is the new installation created in the Flarum folder ?
The previous installation unzipped all the files directly into the public folder. Now I have a flarum folder in the public directory.

When I subsequently run the installation - myweb.com/public nothing happens. So I move and unzip the files from the /public/flarum directory to the public directory.
The installation runs but then it prints xx red errors.
I have Composer in the latest version 2, I have PHP 7.4., proc_open and unzip too.
Previous beta installs went to install fine.

This popped up during installation
Something went wrong: Error: Unsupported operand types in file /home/domains/myweb.com/web/public/vendor/symfony/process/Process.php on line 1360 Stack trace: 1. Error->() /home/domains/myweb.com/web/public/vendor/symfony/process/Process.php:1360 2. Symfony\Component\Process\Process->updateStatus() /home/domains/myweb.com/web/public/vendor/symfony/process/Process.php:362 3. Symfony\Component\Process\Process->start() /home/domains/myweb.com/web/public/vendor/symfony/process/Process.php:247 4. Symfony\Component\Process\Process->run() /home/domains/myweb.com/web/public/vendor/symfony/process/Process.php:266 5. Symfony\Component\Process\Process->mustRun() /home/domains/myweb.com/web/public/vendor/illuminate/database/Schema/MySqlSchemaState.php:77 6. Illuminate\Database\Schema\MySqlSchemaState->load() /home/domains/myweb.com/web/public/vendor/flarum/core/src/Database/Migrator.php:293 7. Flarum\Database\Migrator->installFromSchema() /home/domains/myweb.com/web/public/vendor/flarum/core/src/Install/Steps/RunMigrations.php:45 8. Flarum\Install\Steps\RunMigrations->run() /home/domains/myweb.com/web/public/vendor/flarum/core/src/Install/Pipeline.php:78 9. Flarum\Install\Pipeline->runStep() /home/domains/myweb.com/web/public/vendor/flarum/core/src/Install/Pipeline.php:57 10. Flarum\Install\Pipeline->run() /home/domains/myweb.com/web/public/vendor/flarum/core/src/Install/Controller/InstallController.php:87 11. Flarum\Install\Controller\InstallController->handle() /home/domains/myweb.com/web/public/vendor/flarum/core/src/Http/RouteHandlerFactory.php:41 12. Flarum\Http\RouteHandlerFactory->Flarum\Http{closure}() /home/domains/myweb.com/web/public/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php:27 13. Flarum\Http\Middleware\ExecuteRoute->process() /home/domains/myweb.com/web/public/vendor/laminas/laminas-stratigility/src/Next.php:61 14. Laminas\Stratigility\Next->handle() /home/domains/myweb.com/web/public/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php:67 15. Flarum\Http\Middleware\ResolveRoute->process() /home/domains/myweb.com/web/public/vendor/laminas/laminas-stratigility/src/Next.php:61 16. Laminas\Stratigility\Next->handle() /home/domains/myweb.com/web/public/vendor/flarum/core/src/Http/Middleware/StartSession.php:61 17. Flarum\Http\Middleware\StartSession->process() /home/domains/myweb.com/web/public/vendor/laminas/laminas-stratigility/src/Next.php:61 18. Laminas\Stratigility\Next->handle() /home/domains/myweb.com/web/public/vendor/flarum/core/src/Http/Middleware/HandleErrors.php:57 19. Flarum\Http\Middleware\HandleErrors->process() /home/domains/myweb.com/web/public/vendor/laminas/laminas-stratigility/src/Next.php:61 20. Laminas\Stratigility\Next->handle() /home/domains/myweb.com/web/public/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:84 21. Laminas\Stratigility\MiddlewarePipe->process() /home/domains/myweb.com/web/public/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:73 22. Laminas\Stratigility\MiddlewarePipe->handle() /home/domains/myweb.com/web/public/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php:96 23. Laminas\HttpHandlerRunner\RequestHandlerRunner->run() /home/domains/myweb.com/web/public/vendor/flarum/core/src/Http/Server.php:44 24. Flarum\Http\Server->listen() /home/domains/myweb.com/web/public/public/index.php:26

  • Hari replied to this.

    What were the red errors and when did this error show up? From commandline or from the web installer?

    • rg90 replied to this.

      Hari What exactly do I need to change in the congif file ?

      • Hari replied to this.

        @Hari Ok so
        why does this have to be done, with the beta installation everything went without a problem and now such modifications in the files. I don't get it, totally unnecessary, if Flarum was unpacked, this wouldn't have to be done, this is a problem from a problem.
        But ok, thank you. I'll try and see.

        • Hari replied to this.

          rg90 if you are doing it on a live website take a backup before you do anything

          if the beta is already running you should able to update it easily

          if you are installing in a subfolder you should do such changes.

          clark has explained this somewhere I forgot

            @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 ?

            So, in the second case, I got the installation via myweb.com/flarum

            but ... I got an error message again. In the first case and in the second error message .. possible error on my hosting. Interestingly, the beta version went smoothly.

            Do you know what is problem this error log ?

            I'll try another hosting today ... special really: 😃

            Should I leave this as it is, or modify something in it?

            'base' => __DIR__,
            'public' => __DIR__,
            'storage' => __DIR __. '/ storage',
            'base' => __DIR__,
            'public' => __DIR__,
            'storage' => __DIR__. '/storage',

            Notice the spaces I removed one after the last DIR and one just before storage