Skip to content

installing flarum with plesk

Solved Configure
78 2 30.3k 1
  • @phenomlab that is the problem, its better to use pocket hold and install and update extensions using the Plesk panel.

    but the only problem is installing Redis … is there any way to create user for domain in Plesk and set his CLI to php8 and composer version to 2

    as mentioned in docs Plesk is not using php8 cli this is weird

    @Hari yes. Take my advice and avoid Plesk. It’s sh**. Can’t be much plainer than that.

  • @Hari the full path ? Yes.

    @phenomlab the php 8 CLI

  • @phenomlab the php 8 CLI

    @Hari that will work every time but you still need the full path to the php binary

  • @Hari yes. Take my advice and avoid Plesk. It’s sh**. Can’t be much plainer than that.

    @phenomlab sure, i want to run this little software with light tools - are there any other alternatives?

    someone is doing like this https://discuss.flarum.org/d/30211-gtmetrix-grade-and-stats-on-flarum/2 is it a good practice?

    i don’t think this bare bones kind of process is good for newbies

  • @phenomlab sure, i want to run this little software with light tools - are there any other alternatives?

    someone is doing like this https://discuss.flarum.org/d/30211-gtmetrix-grade-and-stats-on-flarum/2 is it a good practice?

    i don’t think this bare bones kind of process is good for newbies

    @Hari with Linux, less is more. You should pay attention to the advice offered by @justoverclock here

    https://discuss.flarum.org/d/30211-gtmetrix-grade-and-stats-on-flarum/10

    In VirtualMin, everything is packaged ready for you. Configuring a hardened Linux platform from scratch with little experience is very daunting and unless you are prepared to invest multiple hours researching how to get the optimum build without being willing to accept you’ll trash that same server multiple times before you get it right, then this just isn’t going to work.

  • Summery: we can install flarum easily by using pocket hold and run it, if we need any extensions we just need to mention the extension name in Plesk composer it will automatically install. but it’s hard to run SSH commands because of Plesk limitations. and installing Redis for flarum is also a complicated process

    thanks a lot for being with me throughout this exercise

  • Summery: we can install flarum easily by using pocket hold and run it, if we need any extensions we just need to mention the extension name in Plesk composer it will automatically install. but it’s hard to run SSH commands because of Plesk limitations. and installing Redis for flarum is also a complicated process

    thanks a lot for being with me throughout this exercise

    @Hari no problems. It’s actually easy to install Redis in Plesk, but by the same token, Plesk as a platform is geared very differently meaning there are multiple dependencies etc which can easily fail with even minor changes, meaning Plesk won’t start and your sites won’t work.

    You essentially have to do things the “Plesk” way, or not at all.

  • @Hari no problems. It’s actually easy to install Redis in Plesk, but by the same token, Plesk as a platform is geared very differently meaning there are multiple dependencies etc which can easily fail with even minor changes, meaning Plesk won’t start and your sites won’t work.

    You essentially have to do things the “Plesk” way, or not at all.

    @phenomlab hi, someone at flarum want to use flarum with plesk, after all the exercise i do want to suggest how to install flarum using plesk. the one last thing that i need to learn is running Redis and flarum together. could you tell me how to create redis using docker or any other easy way and connect it to flarum.

    i want to avoid using SSH because as we know plesk is so weird running ssh commands for flarum.

  • @phenomlab hi, someone at flarum want to use flarum with plesk, after all the exercise i do want to suggest how to install flarum using plesk. the one last thing that i need to learn is running Redis and flarum together. could you tell me how to create redis using docker or any other easy way and connect it to flarum.

    i want to avoid using SSH because as we know plesk is so weird running ssh commands for flarum.

    @Hari

    create redis using docker or any other easy way and connect it to flarum.

    Why do you need to use Docker to run Redis ? For all the time I was using Flarum under Plesk, I never had to do this. Nor did I have any issues using SSH commands. Did you create a domain package in Plesk to use, or did you try to install everything as root ?

    If root, then this definitely will not work.

  • @Hari

    create redis using docker or any other easy way and connect it to flarum.

    Why do you need to use Docker to run Redis ? For all the time I was using Flarum under Plesk, I never had to do this. Nor did I have any issues using SSH commands. Did you create a domain package in Plesk to use, or did you try to install everything as root ?

    If root, then this definitely will not work.

    @phenomlab i was using it wrong, i used root ID

    Once we add domain how to login as / switch to domain user? Switching to domain user SSH will make installing flarum easy? All these days i thought using poket hold is the only easiest way to install flarum in plesk.

  • @phenomlab i was using it wrong, i used root ID

    Once we add domain how to login as / switch to domain user? Switching to domain user SSH will make installing flarum easy? All these days i thought using poket hold is the only easiest way to install flarum in plesk.

    @Hari Yes, absolutely. In essence, you install Plesk, create the package you want to deploy (the default is fine) and then once you have added your domain, you create an associated user to go with it, and use that account to access SSH. No permissions issues etc.

    If you do it as root, it’s 100% guaranteed to fail and cause severe problems with permissions. I personally would not use pocket hold. This is really designed for shared hosting with no SSH access.

    A bit more detail here

    https://www.eukhost.com/kb/setup-addon-domain-in-plesk-panel/

  • @Hari Yes, absolutely. In essence, you install Plesk, create the package you want to deploy (the default is fine) and then once you have added your domain, you create an associated user to go with it, and use that account to access SSH. No permissions issues etc.

    If you do it as root, it’s 100% guaranteed to fail and cause severe problems with permissions. I personally would not use pocket hold. This is really designed for shared hosting with no SSH access.

    A bit more detail here

    https://www.eukhost.com/kb/setup-addon-domain-in-plesk-panel/

    @phenomlab it’s around 6pm here and I was feeling lazy in bed… your reply made me to come online and deploy a droplet. Will disturb you in few minutes hope you don’t mind 🙂

  • @phenomlab it’s around 6pm here and I was feeling lazy in bed… your reply made me to come online and deploy a droplet. Will disturb you in few minutes hope you don’t mind 🙂

    @Hari No issues.

  • create the package you want to deploy (the default is fine)
    

    once i pick plesk from marketplace it automatically created plesk . package means obsidian?

    I’ve added the domain > need to update this right? @phenomlab

    d68411b2-36fa-4753-b1ba-3f94b44b375b-image.png

  • create the package you want to deploy (the default is fine)
    

    once i pick plesk from marketplace it automatically created plesk . package means obsidian?

    I’ve added the domain > need to update this right? @phenomlab

    d68411b2-36fa-4753-b1ba-3f94b44b375b-image.png

    @Hari Yes. Sorry, by “package” I meant the allowance of disk space, memory, etc.

  • @Hari Yes. Sorry, by “package” I meant the allowance of disk space, memory, etc.

    @phenomlab how can i change CLI to php8.0?

    shall i leave it 7.4?

    079a71b0-f0d6-45c1-a502-d804e1c9daea-image.png

  • @phenomlab how can i change CLI to php8.0?

    shall i leave it 7.4?

    079a71b0-f0d6-45c1-a502-d804e1c9daea-image.png

  • phenomlabundefined phenomlab referenced this topic on
  • @phenomlab i just recalled as that is not an easy way 😢

    anyway, i went forward with pocket hold -
    how can i connect redis now?

    i don’t want to use SSH for this, i want to use doker.

    while composing this i got another thought, installing bomastra redis will be complicated right? we need to provide full path of PHP for each and every command instead can we just mention the extension name in the composer file?

    what is the right command to run composer command?

    8d06f420-ceb9-44ea-9897-a3561e09fae1-image.png

    /opt/plesk/php/8.0/bin/php /opt/psa/var/modules/composer/composer require blomstra/flarum-redis:*
    

    i will save that command in notes, could you suggest to me the right command to use composer, i think we need to give the right path of compser.

  • @phenomlab i just recalled as that is not an easy way 😢

    anyway, i went forward with pocket hold -
    how can i connect redis now?

    i don’t want to use SSH for this, i want to use doker.

    while composing this i got another thought, installing bomastra redis will be complicated right? we need to provide full path of PHP for each and every command instead can we just mention the extension name in the composer file?

    what is the right command to run composer command?

    8d06f420-ceb9-44ea-9897-a3561e09fae1-image.png

    /opt/plesk/php/8.0/bin/php /opt/psa/var/modules/composer/composer require blomstra/flarum-redis:*
    

    i will save that command in notes, could you suggest to me the right command to use composer, i think we need to give the right path of compser.

    @Hari

    i don’t want to use SSH for this, i want to use doker.

    What is the fascination for Docker here ? It’s not needed, and unnecessary overhead from the overall management perspective. You just install redis in the same way as you would do normally. This is exactly the way I had one of my previous Flarum forums running.

    Using pocket hold under Plesk is completely pointless and will be a nightmare to support and administer.

    We’ve also mentioned the install of composer here
    https://sudonix.com/topic/226/issues-getting-flarum-to-work-on-new-host/13?_=1646226835366

    Based on this, you already have the info you need.

  • @Hari

    i don’t want to use SSH for this, i want to use doker.

    What is the fascination for Docker here ? It’s not needed, and unnecessary overhead from the overall management perspective. You just install redis in the same way as you would do normally. This is exactly the way I had one of my previous Flarum forums running.

    Using pocket hold under Plesk is completely pointless and will be a nightmare to support and administer.

    We’ve also mentioned the install of composer here
    https://sudonix.com/topic/226/issues-getting-flarum-to-work-on-new-host/13?_=1646226835366

    Based on this, you already have the info you need.

    @phenomlab since I have seen many console errors i have asked like that regarding docker. I will try again later tomorrow.


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
  • 4 Votes
    8 Posts
    4k Views
    @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!
  • 24 Votes
    29 Posts
    13k Views
    @DownPW it is the second post of this thread.
  • 1 Votes
    2 Posts
    1k Views
    @Hari I think you’re referring to this https://sudonix.com/topic/170/creating-posts-from-rss-feeds-in-flarum However, this code was never designed to work with WordPress, but you could leverage the WP-CLI to do something similar without too much effort.
  • Flarum SEO is worst and i still want to use it 😭

    General flarum
    15
    6 Votes
    15 Posts
    4k Views
    @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
  • how to change flarum configuration from apache to nginx?

    Solved Configure flarum
    3
    0 Votes
    3 Posts
    1k Views
    See https://sudonix.com/topic/226/issues-getting-flarum-to-work-on-new-host/28?_=1645013723672
  • Creating posts from RSS feeds in Flarum

    Blog flarum rss
    1
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Flarum

    General flarum
    4
    0 Votes
    4 Posts
    1k Views
    @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
  • CSS Help on my Flarum

    Solved Customisation
    5
    2
    2 Votes
    5 Posts
    2k Views
    @mike-jones Yes, you’ll typically see this type of behaviour if there is another style that has higher priority in the sense that yours will be overridden. Using !important will override the higher preference, but should be used sparingly rather than everywhere.