How to install Node JS in way that host projects under ISPConfig?

Discussion in 'General' started by asgare, Sep 26, 2017.

  1. asgare

    asgare Member

    Hi
    I wonder if anyone installed Silex within ISPConfig or not!
    can someone let me know how to do that?
    Also I suggest ISPConfig developers to embed this nice JS editor within ISPConfig because it cause to design fast and easily.
    http://www.silex.me
     
  2. asgare

    asgare Member

    Less documentation about Silex :(
     
  3. HSorgYves

    HSorgYves Active Member

    No, ISPConfig is following KISS and I hope it stays that way!
    And as far as I understood you cannot install your own copy of Silex, you can only generate your own HTML files and host them...
     
  4. asgare

    asgare Member

    No I want host Silex itself not generated files from that
     
  5. HSorgYves

    HSorgYves Active Member

    From what I read on their page this is not possible. Let me know if I am wrong.
     
  6. asgare

    asgare Member

    Where did you read that? Because I saw as a modules in some hosting panels like cPanel
     
  7. HSorgYves

    HSorgYves Active Member

    Some interpretation of what I read, 1) there is no download 2) there is an editor 3) they speak of "self hosted downloadable" and not of local installation 4) they speak of "While editing your site on silex.me" and "Your work on silex.me will result in an HTML page stored on your computer."...
    But I was wrong. Look here: https://github.com/silexlabs/Silex
     
  8. asgare

    asgare Member

    my question is that after downloading form github how to deploy in ISPConfig
     
  9. HSorgYves

    HSorgYves Active Member

    Isn't that explained there?
     
  10. asgare

    asgare Member

    yes it is but not applicable in ISPConfig or I can't do it well
     
  11. HSorgYves

    HSorgYves Active Member

    It is independant of ISPConfig...
     
  12. asgare

    asgare Member

  13. ztk.me

    ztk.me ISPConfig Developer ISPConfig Developer

    so you didn't think of implementing it and give users like "limit n sites" and stuff, just want it installed on your server?
    looks pretty straight forward according to their docs, what's your issue / where do you need help with?
     
  14. ztk.me

    ztk.me ISPConfig Developer ISPConfig Developer

    oh man, using the linux way to install it requires to install untrustworthy nodejs stuff, however whatever you do ( and no, it doesn't work according to the readme ) you end up with

    Code:
    Error: ENOENT: no such file or directory, open '/opt/silex/Silex/dist/client/libs/prodotype/components/hero-center.ejs'
    
    so I installed it using docker, which imho is as untrustworthy as nodejs but ... yeah

    Code:
    apt-get install apt-transport-https dirmngr
    echo 'deb https://apt.dockerproject.org/repo debian-stretch main' >> /etc/apt/sources.list
    apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
    apt-get update
    
    to get docker running... don't try this inside LXC, won't work

    Code:
    cd /opt/
    git clone  https://github.com/silexlabs/Silex.git
    cd Silex
    docker run -p 6805:6805 silexlabs/silex
    
    gives some unknown version of silex somehow working.

    You might now dig into docker documentation so it listens on localhost only or use this as is and point to that port.
    If you let it run on localhost, you could use ProxyReverse stuff ( watch out you don't make an open Proxy ) to bind it
    to your website or /folder.

    If you have any questions on how to do this, feel free to ask but I don't like to dig deeper right now ;)
     
  15. ztk.me

    ztk.me ISPConfig Developer ISPConfig Developer

    yep, building the docker image => same result as mentioned, error error error - so broken so sad so sorry
     
  16. asgare

    asgare Member

    Hi there
    Thank you so muuuuuuuuuch
    For the time you set a aside and things you have done for me

    Regrettably these solutions are not workable for me. As I mentioned before for host management I use ISPConfig and due to there are few projects need to be hosted under domain. I should configure Debian OS in a way that:
    1. To host Node JS projects
    2. To work with ISPConfig concurrently without any interference and confilict
    3. To run without port number like in docker which give a port number to operate

    I do hope other ISPConfig users have solved this for their clients

    Also I found 2 tutorials for installing "node js"
    https://www.howtoforge.com/tutorial/nodejs-ubuntu-getting-started/
    https://www.howtoforge.com/tutorial/how-to-deploy-nodejs-applications-with-pm2-and-nginx-on-ubuntu/
     
  17. asgare

    asgare Member

  18. ztk.me

    ztk.me ISPConfig Developer ISPConfig Developer

    sure it is, you might need to add some permissions to the given user and fiddle with jailkit probably but then users can ssh into their account and, given they have permissions, can open a socket on localhost ( or you can add one ipv6 to every customer => all ports available ) and yeah then the websites needs the proxyrewrite-rule.

    So for your own stuff as admin,you could aswell use docker, it's the same principle.
     
  19. asgare

    asgare Member

    So you mean above mentioned link will work for me :)
    ok, good
    one thing more can you explain me what is the use of permission for users, couldn't understand this part clearly.

    BTW, this technology really make me crazy also wordpress going to move to new technology
    here is the link
    https://github.com/Automattic/wp-calypso
     
  20. asgare

    asgare Member

    Also on that blog they mentioned we must change port in ".htaccess" file but I don't want my site open under a specific port just simple 80 port. I think if I do this modification it will affect other sites and they won't work ever but I am not sure :(
     

Share This Page