Skip to content

installing flarum with plesk

Solved Configure
78 2 38.9k 1
  • @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/

    wrote on last edited by
    #54

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

    wrote on last edited by
    #55

    @Hari No issues.

  • wrote on last edited by Hari
    #56
    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

    wrote on last edited by
    #57

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

    wrote on last edited by
    #58

    @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

    wrote on last edited by
    #59
  • phenomlab phenomlab referenced this topic on
  • wrote on last edited by Hari
    #60

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

    wrote on last edited by
    #61

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

    wrote on last edited by
    #62

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

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

    wrote on last edited by
    #63

    @Hari Don’t go down the docker rabbit hole unless you really and truly need segregation between hosts. Flarum doesn’t need this level of complexity 👍

  • wrote on last edited by
    #64

    today i have revisited this discussion and tried again, now i can call myself a certified flarum pleskian 😄

    installed 3 flarums and running without any issues, figured out how to run redis

    I am feeling happy to use Plesk though virutalmin offers lot of other functionality to my intelligence level i feel like plesk is a good place for me to sit and use.

  • today i have revisited this discussion and tried again, now i can call myself a certified flarum pleskian 😄

    installed 3 flarums and running without any issues, figured out how to run redis

    I am feeling happy to use Plesk though virutalmin offers lot of other functionality to my intelligence level i feel like plesk is a good place for me to sit and use.

    wrote on last edited by
    #65

    @Hari don’t celebrate too early 🤔 Plesk can be the ultimate Achilles Heel when it comes to troubleshooting and resolving issues.

  • @Hari don’t celebrate too early 🤔 Plesk can be the ultimate Achilles Heel when it comes to troubleshooting and resolving issues.

    wrote on last edited by Hari
    #66

    @phenomlab Today I have received this email 😄

    Important notice regarding a potentially misconfigured Redis instance on your Droplet plesk-ubuntu-s-2vcpu-4gb-amd-blr1-01:

    Hello,

    A recent network security scan suggests your Droplet plesk-ubuntu-s-2vcpu-4gb-amd-blr1-01 is running Redis and that it may be unintentionally exposing data or misconfigured to allow unauthorized access.

    Redis listens for traffic from everywhere on port 6379, and you can validate this report by attempting to connect to your Redis on 6379 via a simple telnet command:

        telnet 1.0.0.0 6379   
    

    If the connection is successful, you will receive output like the following, which will confirm that your Redis installation is visible to the public Internet:

        Trying 1.0.0.0....       
        Connected to 1.0.0.0.   
        Escape character is '^]'.   
    

    You will want to restrict outside access to your Redis instance to prevent outsiders from reading or obtaining your data.

    Remediation of this issue will take just a few minutes and is relatively straightforward. You will need to open /etc/redis/redis.conf and uncomment (remove the “#”) or modify the line beginning with:

        #bind 127.0.0.1 ::1   
    

    Afterwards, restart redis with:

        sudo systemctl restart redis   
    

    You could find this information also in our community tutorial at: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-20-04

    Regards,
    Security Operations
    DigitalOcean Security


    63279be0-6410-4bc2-929b-85203f7fb6c7-image.png

    ccd8c828-b978-4790-ba3f-ed9cdc49478c-image.png

    i have tried following multiple guides as i see redis.conf file is empty there is no supervised directive

    what should i do to set this IP to local, what code i need to add?

  • @phenomlab Today I have received this email 😄

    Important notice regarding a potentially misconfigured Redis instance on your Droplet plesk-ubuntu-s-2vcpu-4gb-amd-blr1-01:

    Hello,

    A recent network security scan suggests your Droplet plesk-ubuntu-s-2vcpu-4gb-amd-blr1-01 is running Redis and that it may be unintentionally exposing data or misconfigured to allow unauthorized access.

    Redis listens for traffic from everywhere on port 6379, and you can validate this report by attempting to connect to your Redis on 6379 via a simple telnet command:

        telnet 1.0.0.0 6379   
    

    If the connection is successful, you will receive output like the following, which will confirm that your Redis installation is visible to the public Internet:

        Trying 1.0.0.0....       
        Connected to 1.0.0.0.   
        Escape character is '^]'.   
    

    You will want to restrict outside access to your Redis instance to prevent outsiders from reading or obtaining your data.

    Remediation of this issue will take just a few minutes and is relatively straightforward. You will need to open /etc/redis/redis.conf and uncomment (remove the “#”) or modify the line beginning with:

        #bind 127.0.0.1 ::1   
    

    Afterwards, restart redis with:

        sudo systemctl restart redis   
    

    You could find this information also in our community tutorial at: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-20-04

    Regards,
    Security Operations
    DigitalOcean Security


    63279be0-6410-4bc2-929b-85203f7fb6c7-image.png

    ccd8c828-b978-4790-ba3f-ed9cdc49478c-image.png

    i have tried following multiple guides as i see redis.conf file is empty there is no supervised directive

    what should i do to set this IP to local, what code i need to add?

    wrote on last edited by
    #67
  • @phenomlab Today I have received this email 😄

    Important notice regarding a potentially misconfigured Redis instance on your Droplet plesk-ubuntu-s-2vcpu-4gb-amd-blr1-01:

    Hello,

    A recent network security scan suggests your Droplet plesk-ubuntu-s-2vcpu-4gb-amd-blr1-01 is running Redis and that it may be unintentionally exposing data or misconfigured to allow unauthorized access.

    Redis listens for traffic from everywhere on port 6379, and you can validate this report by attempting to connect to your Redis on 6379 via a simple telnet command:

        telnet 1.0.0.0 6379   
    

    If the connection is successful, you will receive output like the following, which will confirm that your Redis installation is visible to the public Internet:

        Trying 1.0.0.0....       
        Connected to 1.0.0.0.   
        Escape character is '^]'.   
    

    You will want to restrict outside access to your Redis instance to prevent outsiders from reading or obtaining your data.

    Remediation of this issue will take just a few minutes and is relatively straightforward. You will need to open /etc/redis/redis.conf and uncomment (remove the “#”) or modify the line beginning with:

        #bind 127.0.0.1 ::1   
    

    Afterwards, restart redis with:

        sudo systemctl restart redis   
    

    You could find this information also in our community tutorial at: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-20-04

    Regards,
    Security Operations
    DigitalOcean Security


    63279be0-6410-4bc2-929b-85203f7fb6c7-image.png

    ccd8c828-b978-4790-ba3f-ed9cdc49478c-image.png

    i have tried following multiple guides as i see redis.conf file is empty there is no supervised directive

    what should i do to set this IP to local, what code i need to add?

    wrote on last edited by
    #68

    @Hari File redis.conf should not be empty. If it were, then REDIS does not work - what’s the output of locate redis.conf ?

  • @Hari File redis.conf should not be empty. If it were, then REDIS does not work - what’s the output of locate redis.conf ?

    wrote on last edited by
    #69

    @phenomlab said in installing flarum with plesk:

    locate redis.conf

    root@admiring-goldwasser:~# su - site_sdxtjg95b7
    site_sdxtjg95b7@admiring-goldwasser:~$ locate redis.conf
    
    Command 'locate' not found, but can be installed with:
    
    apt install mlocate
    Please ask your administrator.
    
    site_sdxtjg95b7@admiring-goldwasser:~$ exit
    logout
    root@admiring-goldwasser:~# apt install mlocate
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following package was automatically installed and is no longer required:
      plesk-py27-pycrypto
    Use 'apt autoremove' to remove it.
    Suggested packages:
      nocache
    The following NEW packages will be installed:
      mlocate
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 50.1 kB of archives.
    After this operation, 258 kB of additional disk space will be used.
    Get:1 http://mirrors.digitalocean.com/ubuntu focal/main amd64 mlocate amd64 0.26-3ubuntu3 [50.1 kB]
    Fetched 50.1 kB in 0s (326 kB/s)   
    Selecting previously unselected package mlocate.
    (Reading database ... 146957 files and directories currently installed.)
    Preparing to unpack .../mlocate_0.26-3ubuntu3_amd64.deb ...
    Unpacking mlocate (0.26-3ubuntu3) ...
    Setting up mlocate (0.26-3ubuntu3) ...
    update-alternatives: using /usr/bin/mlocate to provide /usr/bin/locate (locate) in auto mode
    Adding group `mlocate' (GID 121) ...
    Done.
    Initializing mlocate database; this may take some time... done
    Processing triggers for man-db (2.9.1-1) ...
    root@admiring-goldwasser:~# locate redis.conf
    /var/lib/dpkg/info/plesk-php74-redis.conffiles
    /var/lib/dpkg/info/plesk-php80-redis.conffiles
    root@admiring-goldwasser:~#
    
  • @phenomlab said in installing flarum with plesk:

    locate redis.conf

    root@admiring-goldwasser:~# su - site_sdxtjg95b7
    site_sdxtjg95b7@admiring-goldwasser:~$ locate redis.conf
    
    Command 'locate' not found, but can be installed with:
    
    apt install mlocate
    Please ask your administrator.
    
    site_sdxtjg95b7@admiring-goldwasser:~$ exit
    logout
    root@admiring-goldwasser:~# apt install mlocate
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following package was automatically installed and is no longer required:
      plesk-py27-pycrypto
    Use 'apt autoremove' to remove it.
    Suggested packages:
      nocache
    The following NEW packages will be installed:
      mlocate
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 50.1 kB of archives.
    After this operation, 258 kB of additional disk space will be used.
    Get:1 http://mirrors.digitalocean.com/ubuntu focal/main amd64 mlocate amd64 0.26-3ubuntu3 [50.1 kB]
    Fetched 50.1 kB in 0s (326 kB/s)   
    Selecting previously unselected package mlocate.
    (Reading database ... 146957 files and directories currently installed.)
    Preparing to unpack .../mlocate_0.26-3ubuntu3_amd64.deb ...
    Unpacking mlocate (0.26-3ubuntu3) ...
    Setting up mlocate (0.26-3ubuntu3) ...
    update-alternatives: using /usr/bin/mlocate to provide /usr/bin/locate (locate) in auto mode
    Adding group `mlocate' (GID 121) ...
    Done.
    Initializing mlocate database; this may take some time... done
    Processing triggers for man-db (2.9.1-1) ...
    root@admiring-goldwasser:~# locate redis.conf
    /var/lib/dpkg/info/plesk-php74-redis.conffiles
    /var/lib/dpkg/info/plesk-php80-redis.conffiles
    root@admiring-goldwasser:~#
    
    wrote on last edited by
    #70

    @Hari How did you install Redis ?

  • @Hari How did you install Redis ?

    wrote on last edited by
    #71

    @phenomlab using docker

    f38f1fe1-18ae-4da6-b1ec-04fd1575faae-image.png

    site_sdxtjg95b7@admiring-goldwasser:~$ redis-cli
    127.0.0.1:6379>
    
  • @phenomlab using docker

    f38f1fe1-18ae-4da6-b1ec-04fd1575faae-image.png

    site_sdxtjg95b7@admiring-goldwasser:~$ redis-cli
    127.0.0.1:6379>
    
    wrote on last edited by
    #72

    @Hari Ok, but this would denote that the service is already listening on 127.0.0.1 and not 0.0.0.0 as originally stated ?

  • @Hari Ok, but this would denote that the service is already listening on 127.0.0.1 and not 0.0.0.0 as originally stated ?

    wrote on last edited by Hari
    #73

    @phenomlab i have mentioned 1.0.0.0 it is actually my server IP i masked it.

    after receiving the email saying 111.111.111.111 is getting exposed i have deleted the existing redis docker and followed the above guide as mentioned in Plesk site.

    do you think now everything is correctly running?


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.
  • NodeBB 3.0 alpha1 : Error on install

    Solved Configure nodebb version 3 install error
    19
    2 Votes
    19 Posts
    7k Views
    DownPW
    @phenomlab Work now
  • 24 Votes
    29 Posts
    15k Views
    crazycells
    @DownPW it is the second post of this thread.
  • auto create flarum new discussions in wordpress

    Configure flarum wordpress
    2
    1 Votes
    2 Posts
    1k Views
    phenomlab
    @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
    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
  • 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
  • Blomstra Realtime issues on ubuntu server

    Solved Linux
    26
    1 Votes
    26 Posts
    11k Views
    phenomlab
    Just checked this thread on Discuss. It’s effectively not stable yet. My suggestion would be to use kyrne/websocket