How to install composer . Flarum software

edited September 21 in Web Server
I having issue installing flarum software .

composer create-project flarum/flarum . --stability=beta


What i have tried :

Running command as root , failed .

Creating a use to run the command , failed



access permission issue .


I will love some help ..

Comments

  • the output you get (when running as root)?
  • I would recommend you to
    cd /home/domain.com
    rm -rf public_html
    composer create-project flarum/flarum public_html --stability=beta
    Then fix permissions from the file manager, and you should be good to go.
  • edited September 21
    [[email protected] forum.example.com]# composer create-project flarum/flarum public_html --stability=beta
    Do not run Composer as root/super user! See https://getcomposer.org/root for details
    Installing flarum/flarum (v0.1.0-beta.7)
    - Installing flarum/flarum (v0.1.0-beta.7): Loading from cache
    Created project in public_html
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Killed
  • using another sudo user , still having permission problem


    [ErrorException]
    mkdir(): Permission denied

  • Update : this is what i have been able to do .


    Recreate public_html

    setfacl -m user: username :rwx public_html

    Now allow me to run above flarum command , but another error .
    trustdee said:








    [[email protected] public_html]$ composer create-project flarum/flarum . --stability=beta
    Installing flarum/flarum (v0.1.0-beta.7)
    - Installing flarum/flarum (v0.1.0-beta.7): Loading from cache
    Created project in .
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Package operations: 82 installs, 0 updates, 0 removals
    - Installing symfony/process (v3.4.15): Loading from cache
    proc_open(): fork failed - Cannot allocate memory
    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class
    The following exception is caused by a lack of memory or swap, or not having swap configured
    Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details


    [ErrorException]
    proc_open(): fork failed - Cannot allocate memory

  • Finally am able to solve it . and everything is working fine .

    Using this

    https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors


    Make sure to use File-manager to fix permission back .

    Thank you for the help .
Sign In or Register to comment.
Support CyberPanel CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!