Installing Node and Ghost in [mt]
After installing Node and Ghost, my suggestion is initially you follow the following
Steps to install Ghost
- Update everything available via yum
- Get Node into a temp folder where you are going to compile it
cd /temp/ curl -O http://nodejs.org/dist/v0.10.19/node-v0.10.19.tar.gz
- Gunzip the folder
tar -zxvf node-v0.10.19.tar.gz
- Get inside the folder
- Then compile it doing the following:
./configure make make install
Steps to install Ghost
- Hopefully you were one of the guys that back them too, but if not, Ghost will release their Blogging software soon enough.
- Go in to the site and download your copy.
- Create a folder, I choose to install it where the Apache is located so it can be related so
- Make the folder for my site
- Now navigate inside that folder
- Here you will upload the copy of Ghost.
- Unzip the folder
- Then install it by doing
Ta-da! its installed!!
Now lets configure Apache to work with NodeJS
Steps to configure Apache with NodeJS
- Hopefully you have configured vhosts, my folder is
- Create my file for my domain
- Here if you know your IP (you should | if not do a tracerout to your domain and get the Public IP attached to it) create the directive:
<VirtualHost 22.214.171.124:80>This includes the Port that Apache is displaying content.
Then create the following content inside that directive
ServerName enriquemanuel.me ProxyRequests off
<Proxy *> Order deny,allow Allow from all </Proxy>
ProxyPass http://localhost:2368/ ProxyPassReverse http://localhost:2368/
- Now close the
Please be aware that you need to change the servername to yours and also change the virtualhost directive with your IP
Now lets configure and start everything
Lets restart apache if not already done by doing
service httpd restart /etc/init.d/httpd restart
- Either of the options above do the same thing, so its up to you.
- Now lets configure and start NodeJS, go to your domain or where you create the folder in our case is
- Lets copy the configuration and make our own
cp config.example.js config.js
- Now lets open the
config.jsand make it our own
- Change the domain name to your own, in my case it was
enriquemanuel.meso we change it accordingly
In the different sections that its needed.
Please be aware that most of the links that start with http:// are creating the link
<a href if you see this in the end content, please remove it or just use the direct url removing this.
Not for me by any means, I’m still trying to move everything here. I have use a varierity of Blog Systems before including: Wordpress, Joomla, Mambo, Concrete 5, Jekyll, NestaCMS and other stuff but for one in the time its good to use one that is solely made to Bloggin.
And to finalize this blog post, I need to migrate all my content from my previous posts, so wait for more posts to hit the page.
If you have access to the Ghost System you should got an email how to install it in Centos, I use that as a starter on how to do this. So you can use both to guide you.