How do I install Ghost with Virtualmin? What are the steps?

6 posts / 0 new
Last post
#1 Wed, 11/19/2014 - 17:57
Kutakizukari
Kutakizukari's picture

How do I install Ghost with Virtualmin? What are the steps?

How do I install Ghost https://ghost.org/download/ with Virtualmin, after creating a virtual server?

What are the steps?

I'm using Ubuntu 12.04 LTS 64bit with Nginx http://virtualmin.com/documentation/web/nginx.

I've viewed

http://0v.org/installing-ghost-on-ubuntu-nginx-and-mysql/

and

http://www.devporto.com/install-ghost-ubuntu/

but I'm not sure why some of the steps are there so I don't know if I should do them.

If another virtual server was created with a different domain name, would the same steps apply?

Wed, 11/19/2014 - 22:34
andreychek

Howdy,

Well, I don't see Ghost installation instructions on their site, those may just be in the archive that's available for download. However, that's what you'd want to look for -- installation instructions. And you'd want to install it into the public_html folder for your Virtual Server.

If you had other Virtual Servers that you wanted to use it on, you'd also want to install it into the public_html folders of those domains as well.

-Eric

Sun, 11/23/2014 - 12:00 (Reply to #2)
Kutakizukari
Kutakizukari's picture

I found this: http://www.howtoinstallghost.com/how-to-install-ghost-on-ubuntu-server-1...

instead of /var/www/ghost/ I put it in /home/somename/public_html/ghost/

After I:

sudo adduser --shell /bin/bash --gecos 'Ghost application' ghost

sudo chown -R ghost:ghost /home/somename/public_html/ghost/

and switch user via "su - ghost" it kicks me out of /home/somename/public_html/ghost/ so I can't cd to it.

I made a comment there about it and they said it does not have permissions and to install it /var/www/ghost/. If I do that I won't be able to change something in a theme on one domain without it effecting another domain.

It will run if a "npm start --production" in /home/somename/public_html/ghost/ but I have to be the root user. I assume there is a reason to have the new ghost user and to run it with the ghost user? I just don't know what permissions I should have to do so?

"Civilize the mind, but make savage the body." ~Chairman Mao

Sun, 11/23/2014 - 13:16
andreychek

Howdy,

Well, I'm unfortunately not familiar with setting up Ghost, so I'm not sure what all is necessary to get that to work.

However, one thought that comes to mind, could you run npm as the Virtual Server owner, rather than a separate user? Then it would have permission to access all the data belonging to that domain.

-Eric

Wed, 12/10/2014 - 17:53
midol

as an installable VMPro app, but I had trouble too

Dave

Wed, 12/10/2014 - 23:33
tpnsolutions
tpnsolutions's picture

Hi,

Have you read the instructions at:

http://support.ghost.org/installing-ghost-linux/

Looks like it relies on node.js so make sure you have that installed.

Best Regards,
Peter Knowles
TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-229-0715 (new)
Skype: tpnsupport
Website: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Topic locked