Skip to content

installing flarum with plesk

Solved Configure
78 2 38.9k 1
  • @Hari Ok. Let me know.

    wrote on last edited by
    #17

    @phenomlab

    i have installed and set my project settings to PHP 8 but CLI is not updating to 8.0

    f0ec177a-355a-4321-9095-1e8a5889dc31-image.png

    should i try this?

    https://talk.plesk.com/threads/set-default-php-version-for-command-line.345940/

    407d76d6-2f86-4303-a2f9-0e9fdbc16b4c-image.png

  • @phenomlab

    i have installed and set my project settings to PHP 8 but CLI is not updating to 8.0

    f0ec177a-355a-4321-9095-1e8a5889dc31-image.png

    should i try this?

    https://talk.plesk.com/threads/set-default-php-version-for-command-line.345940/

    407d76d6-2f86-4303-a2f9-0e9fdbc16b4c-image.png

    wrote on last edited by
    #18

    @Hari What version of Plesk do you have ? You should be able to install this using the links I posted earlier ?

  • @Hari What version of Plesk do you have ? You should be able to install this using the links I posted earlier ?

    wrote on last edited by
    #19

    @phenomlab

    Plesk Obsidian Version 18.0.41

    acfd0388-0760-4f77-826d-38d063b053ac-image.png

    domain settings

    596f60af-adaa-4e8a-bf52-45c6608812fa-image.png

  • @phenomlab

    Plesk Obsidian Version 18.0.41

    acfd0388-0760-4f77-826d-38d063b053ac-image.png

    domain settings

    596f60af-adaa-4e8a-bf52-45c6608812fa-image.png

    wrote on last edited by
    #20

    @Hari What’s the output of php -v from CLI ?

  • @Hari What’s the output of php -v from CLI ?

    wrote on last edited by Hari
    #21

    @phenomlab

    11bfa541-1459-4df4-ba9d-3e44dacef7b2-image.png

    i just sent logins, please teach me what changes i need to make i really want to learn this setup process … i want to do a youtube video on this too 😄

  • @phenomlab

    11bfa541-1459-4df4-ba9d-3e44dacef7b2-image.png

    i just sent logins, please teach me what changes i need to make i really want to learn this setup process … i want to do a youtube video on this too 😄

    wrote on last edited by
    #22

    @Hari Looks like the environment variable is not set.

    What is the output of

    locate php and whereis php ?

  • @Hari Looks like the environment variable is not set.

    What is the output of

    locate php and whereis php ?

    wrote on last edited by Hari
    #23

    @phenomlab

    28f85e13-05c1-47fd-a458-d696cd71264d-image.png

    5c7af3dc-bb2c-4005-9cd0-1b7703a1518a-image.png

    should i goto the root and run these commands again?

  • @phenomlab

    28f85e13-05c1-47fd-a458-d696cd71264d-image.png

    5c7af3dc-bb2c-4005-9cd0-1b7703a1518a-image.png

    should i goto the root and run these commands again?

    wrote on last edited by phenomlab
    #24

    @Hari No. Plesk typically installs PHP in /opt/plesk/php/7.4/bin so what is the output of /opt/plesk/php/7.4/bin/php -v ?

    Should be

    PHP 7.4.28 (cli) (built: Feb 18 2022 07:57:20) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
        with the ionCube PHP Loader + ionCube24 v11.0.1, Copyright (c) 2002-2022, by ionCube Ltd.
        with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
    

    Therefore, PHP 8 should be in /opt/plesk/php/8.0/bin, so you should also get output from /opt/plesk/php/8.0/bin/php -v as below

    PHP 8.0.16 (cli) (built: Feb 18 2022 07:57:20) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v4.0.16, Copyright (c) Zend Technologies
        with Zend OPcache v8.0.16, Copyright (c), by Zend Technologies
    

    This means that because your environment variable is missing, you have to specify the full path to PHP 8, so instead of just php, you need /opt/plesk/php/8.0/bin/php

    Welcome to Plesk 😕

  • @Hari No. Plesk typically installs PHP in /opt/plesk/php/7.4/bin so what is the output of /opt/plesk/php/7.4/bin/php -v ?

    Should be

    PHP 7.4.28 (cli) (built: Feb 18 2022 07:57:20) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
        with the ionCube PHP Loader + ionCube24 v11.0.1, Copyright (c) 2002-2022, by ionCube Ltd.
        with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
    

    Therefore, PHP 8 should be in /opt/plesk/php/8.0/bin, so you should also get output from /opt/plesk/php/8.0/bin/php -v as below

    PHP 8.0.16 (cli) (built: Feb 18 2022 07:57:20) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v4.0.16, Copyright (c) Zend Technologies
        with Zend OPcache v8.0.16, Copyright (c), by Zend Technologies
    

    This means that because your environment variable is missing, you have to specify the full path to PHP 8, so instead of just php, you need /opt/plesk/php/8.0/bin/php

    Welcome to Plesk 😕

    wrote on last edited by
    #25
  • wrote on last edited by
    #26

    @Hari sorry - that should be /opt/plesk/php/8.0/bin/php. Previous post corrected.

  • @Hari sorry - that should be /opt/plesk/php/8.0/bin/php. Previous post corrected.

    wrote on last edited by Hari
    #27

    @phenomlab i installed Plesk directly from DO app area… it’s free up to 2-3 domains.

    after running opt command the screen got stuck

  • @phenomlab i installed Plesk directly from DO app area… it’s free up to 2-3 domains.

    after running opt command the screen got stuck

    wrote on last edited by
    #28

    @Hari That’s expected because you are now running PHP as a daemon 🙂 Kill it by pressing CTRL + C (sometimes CTRL + Z or CTRL + X), then issue the correct command of /opt/plesk/php/8.0/bin/php -v which should spit out the version used in CLI.

  • @Hari That’s expected because you are now running PHP as a daemon 🙂 Kill it by pressing CTRL + C (sometimes CTRL + Z or CTRL + X), then issue the correct command of /opt/plesk/php/8.0/bin/php -v which should spit out the version used in CLI.

    wrote on last edited by
    #29
  • wrote on last edited by
    #30

    @Hari There you go…!

  • @Hari There you go…!

    wrote on last edited by
    #31

    @phenomlab ok, now when i went in the domain folder and try i am getting an error

    6d1fbd06-e88e-47f6-b35a-6a46f8380331-image.png

  • @Hari There you go…!

    wrote on last edited by
    #32

    @Hari so if you wanted to run a particular PHP file, or command, you’d have to use /opt/plesk/php/8.0/bin/php flarum cache:clear for example.

    Now you know why I hate Plesk

  • @phenomlab ok, now when i went in the domain folder and try i am getting an error

    6d1fbd06-e88e-47f6-b35a-6a46f8380331-image.png

    wrote on last edited by
    #33

    @Hari said in installing flarum with plesk:

    @phenomlab ok, now when i went in the domain folder and try i am getting an error

    6d1fbd06-e88e-47f6-b35a-6a46f8380331-image.png

    Yes, you have to understand that this expected. You cannot just run php and expect it to work like that in Plesk, because it won’t.

  • @Hari said in installing flarum with plesk:

    @phenomlab ok, now when i went in the domain folder and try i am getting an error

    6d1fbd06-e88e-47f6-b35a-6a46f8380331-image.png

    Yes, you have to understand that this expected. You cannot just run php and expect it to work like that in Plesk, because it won’t.

    wrote on last edited by
    #34

    @phenomlab ohoo, in that case, i can not run flarum commands when i am in the domain folder

    do i need to create any bash or some kind of profile for that?

    or shall i just try to install by giving exact path of my domain folder while installing flarum from root

  • @Hari said in installing flarum with plesk:

    @phenomlab ok, now when i went in the domain folder and try i am getting an error

    6d1fbd06-e88e-47f6-b35a-6a46f8380331-image.png

    Yes, you have to understand that this expected. You cannot just run php and expect it to work like that in Plesk, because it won’t.

    wrote on last edited by
    #35

    @phenomlab Seeing as this is a testing box, you could try apt install php8.0-cli and see where that takes you, but I’m guessing it’s not the silver bullet you are looking for.

  • @phenomlab ohoo, in that case, i can not run flarum commands when i am in the domain folder

    do i need to create any bash or some kind of profile for that?

    or shall i just try to install by giving exact path of my domain folder while installing flarum from root

    wrote on last edited by
    #36

    @Hari

    in that case, i can not run flarum commands when i am in the domain folder

    Yes, you can, but you have to specify the full path to PHP each time.


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • Who uses Flarum?

    Chitchat flarum forum
    22
    7 Votes
    22 Posts
    8k Views
    phenomlab
    @Madchatthew I use it here. It is faster, but not sure if that extends to build times.
  • 4 Votes
    8 Posts
    5k Views
    WesleyMoura
    @phenomlab Sorry to delay in responding, yes as i mentioned above, i had to remove my redis from docker and reinstall a new image with this command docker run --name=redis -p 127.0.0.1:6379:6379 -d -t redis:alpine and now when i test my ip and port on https://www.yougetsignal.com/tools/open-ports/ the status of my redis port is closed. I think which to configure firewall in droplet digital ocean is a good idea too, and i will configure soon. Thanks for the help!
  • migrating from cloudways to plesk

    Solved Configure plesk cloudways
    25
    8 Votes
    25 Posts
    10k Views
    phenomlab
    @Hari raise a new topic for the MIME question…
  • Flarum SEO is worst and i still want to use it 😭

    General flarum
    15
    6 Votes
    15 Posts
    5k Views
    phenomlab
    @Hari said in Flarum SEO is worst and i still want to use it : Flarum is coded in such a way where it tells spiders not to crawl any internal links by adding nofollow tag. How stupid this is Yes, I agree this doesn’t make any sense. If you compare to WordPress, then (via a plugin of course) you can set the attribute as you wish. It doesn’t make any sense to take a blanket approach. I guess I unerstand why they are doing this, but it’s not an optimum SEO methodology. @Hari said in Flarum SEO is worst and i still want to use it : For few minutes i thought i should register a domain called flarumSEOsucks.com They’d probably sue you for using the Flarum name in a URL
  • Issues getting Flarum to work on new host

    Solved Configure virtualmin
    65
    14 Votes
    65 Posts
    30k Views
    phenomlab
    @crazycells huh. Thanks. Will need to check that as well.
  • moving flarum from sub directory to subdomain

    Solved Configure flarum
    15
    2 Votes
    15 Posts
    4k Views
    Hari
    @phenomlab yes, created different app and moved files and DB now everything is working thanks
  • Flarum

    General flarum
    4
    0 Votes
    4 Posts
    2k Views
    JAC
    @jac said in Flarum: @phenomlab said in Flarum: @jac yes, but they are lacking severely in the sense that they still do not have a functional GDPR extension. In addition, Flarum uses PHP as it’s backend infrastructure meaning it’s going to be so much slower than NodeBB will ever be. Absolutely, I hope Node up their game . Certainly plugin wise anyway
  • help me configuring cron job for fof/sitemap - flarum

    Solved Configure
    36
    18 Votes
    36 Posts
    13k Views
    DownPW
    you are too fast