PencilBlue CMS is an open source, business class content management for Node.js that helps you build simple, clean, beautiful and design-driven websites with a lot of impressive features. …. It brings joy and productivity to web developers and content editors…
PencilBlue CMS is in use for many kinds of websites, from small nonprofits and large enterprises… It comes with full blogging capabilities, out of the box, relational data creation and management, through the admin interface and many more..
PencilBlue CMS offers features that may not be available to other PHP based CMS, like WordPress Joomla or Drupal… Feature like touch friendly, drag and drop website management experience that’s easy for non-technical users to learn..
For more about PencilBlue CMS , check its homepage….
This brief tutorial is going to show students and new users how to install PencilBlue CMS on Ubuntu 16.04 | 18.04 and 18.10 systems.
These are the packages we’re going to be setting up…
- Ruby version 2.5.3
Step 1: Install Ruby
To install Ruby and Rails on Ubuntu, you’ll need to install some dependencies… To make that happen, install Node.js and Yarn repositories… This will make installing the dependencies easier…
First install these curl and git packages…
sudo apt update sudo apt install curl git
Than run the commands below to add Node.js and Yarn repositories and keys to your system…. Then install some core packages to get your environment going…
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update sudo apt-get install nodejs yarn zlib1g-dev build-essential libpq-dev libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev
When you’re done… continue below:
After adding the repositories and installing necessary packages above, install Ruby with your local profile settings using rbenv… you’ll then use rbenv to install ruby-build…
cd ~/ git clone https://github.com/rbenv/rbenv.git ~/.rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc exec $SHELL git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc exec $SHELL
After setting up your local profile… run the commands below to install Ruby version 2.5.3… If a newer version is available, replace the version number to that… visit this site to find out Ruby latest versions….
rbenv install 2.5.3 rbenv global 2.5.3
To verify that Ruby is installed, run the commands below:
You should see similar lines as below:
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
Step 2: Install Node.js
Now that Ruby environment is set up, run the commands below to install Node.js… Run the commands below to install Node.js repository, then install Node.js package…
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs
Now that Node.js is installed, run the commands below to install PencilBlue CMS…
Step 3: Install MongoDB
MongoDB is the database that PencilBlue CMS uses… So install MongoDB, ImageMagic before continuing with setting up your website projects…
sudo apt install mongodb npm install nosql
After installing MongoDB server, open a new terminal window and try It should start an interactive mongo prompt.
ctrl+c to exit.
Step 4: Install PencilBlue CMS
Now that your environment is ready, run the commands below to install PencilBlue CMS and build your first site… Next, run the commands below..
npm install imagemagick npm install gm
After installing all of the above, go and clone PencilBlue CMS git package by from the github site below…
The commands below clone the git package… next cheange into the folder and install it…
git clone https://github.com/pencilblue/pencilblue.git cd ~/pencilblue
Then run the commands to install PencilBlue CMS and configure the server…. Add an admin user to the admin group; prompts for password
npm install node pencilblue
After a while, necessary packages should be installed and configured, ready to use.
Now open your browser and browse to the hostname follow by port # 8080
You should see PencilBlue CMS setup page… Create an admin account and complete the setup…Now you can start building your great content!
You can logon to the backend using the link
Congratulation! You have successfully installed PencilBlue CMS platform on Ubuntu 16.04 | 18.04 | 18.10
You may also like the post below: