Subdomains should work, however they have not been tested at this time. Using this installation method will prevent sub folders of the domain from rendering properly as well. Additionally, add-on domains and parked domains have not been tested.
Additional note: This tutorial has conflicts when running EasyApache and rebuilding the httpd configuration. A modification to this tutorial is in the works for a fix.
If you are planning to use a SSL Certificate on this install, ensure that the SSL has already been installing with cPanel/WHM.
is the document_root for website content. For this example I'm using dlghostly as the cPanel user acccount, for the domain dlghostly.com. Knowing this we can easily proceed with installing the tools required.
All examples and documentation will be using /root/download as the "work" directory, however you can use any that you like, this is not important.
wget http://nodejs.org/dist/v0.10.4/node-v0.10.4.tar.gz wget https://ghost.org/zip/ghost-0.5.0.zip
tar xf node-v0.10.4.tar.gz cd node-v0.10.4 ./configure make && make install
ln -s /usr/local/bin/node /usr/sbin/node ln -s /usr/local/bin/npm /usr/sbin/npm
npm -g install npm
node -v v0.10.4 npm -v 1.4.24
With node.JS and npm installed, we can now install forever. You'll most likely see some WARN flags, this is normal. Also, symlinking for further good measure.
# npm -g install forever # ln -s /usr/local/bin/forever /usr/sbin/forever Again, for good measure, checking version and installation.
# forever –version v0.11.1 Ghost Platform
Now all of our "requirements" should be installed and ready to use. Now comes the fun part! Let's make sure that we're in the correct directory.
# pwd /root/downloads/node-v0.10.4 # cd /root/downloads/ # pwd /root/downloads/ Great, so now we're in the downloads folder which contains our Ghost install archive. Let's copy it (or move, your choice, however I like retaining an original copy somewhere) to the cPanel user's document root (or public_html).
# cp ghost-0.5.0.zip /home/dlghostly/public_html/ Now that it's in the cPanel account's document root, let's extract it and remove the un-needed .zip file.
# cd /home/dlghostly/public_html/ # unzip ghost-0.5.0.zip # rm ghost-0.5.0.zip rm: remove regular file `ghost-0.5.0.zip'? [y] All of Ghost's core content files are now where they should be and you're ready to proceed with configuring Ghost itself and cPanel (Apache's) Virtual Hosts!