Metztli I. T.  Blog

    Back to Metztli IT Main Site
Posted by vato on Mar 09 2013 in Applications, Current Trends, Cloud Computing, Platform as a Service
  • « Setting up a GNU/LAMP stack under CentOS 6.x x86_64 in a Cloud Instance
  • Deploying b2evolution blog/CMS on Red Hat's Cloud OpenShift PaaS »

Creating a b2evolution App From GitHub for OpenShift PaaS Cloud

MalinalXochitl at OpenShift

Having addressed in a previous post the raw methodology to install the powerful Blog/CMS b2evolution into Red Hat OpenShift platform as a service (PaaS) cloud delivery model, I will simplify the procedure by pulling the b2evolution code from a GitHub repository that I created a couple of days ago.

In the instructions below, I assume that you have created a free account on OpenShift and that you have installed the Red Hat Cloud command line tools: rhc. Please visit OpenShift by Red Hat to open an account if you have not and/or visit Getting Started with OpenShift and select (by clicking) the COMMAND LINE middle column area. Scroll down and you will find as default instructions those for GNU/Linux Red Hat and Fedora. If you have other GNU/Linux distribution or a proprietary operating system, simply follow relevant peripheral links.

I covered the installation of rhc on GNU/Linux Debian in my August 28, 2012, post on this topic: Deploying b2evolution blog/CMS on Red Hat's Cloud OpenShift PaaS. If you are using Debian you may want to reference that post, I will just summarize the steps below.

$ apt-get update
$ apt-get install ruby git rubygems

Once the above prerequisites have been fulfilled, we install the actual rhc OpenShift client tools:

$ gem install rhc

And especially important if you have installed the OpenShift tools but have not used them for a while: update to the latest rhc tools:

$ gem update rhc

That's it! Now, if you have not setup your local/remote environment for your instance on OpenShift, please do so now. You will need as prerequisite(s) your username and password of your OpenShift account that you should have created earlier.

Indeed, by now you should also have created an unique namespace as well but if not the rhc setup routine will prompt you to create one. A unique namespace is required for your apps like the b2evolution application that we will be creating. Thus go ahead and setup your OpenShift environment, if you have not, with the directive:

$ rhc setup

Again, please reference my previous blog for typical output produced by the command above; after successful completion you should be ready to spin up a b2evolution blog app with relative ease.

Creating a b2evolution Application from GitHub and deploying to OpenShift PaaS

We may begin by organizing our project by creating a working directory:

$ mkdir --verbose workspace

$ cd workspace

Once at that filesystem location, you may simply follow the succinct README.md I created at GitHub or bear with me and follow along &#59;).

For relevant illustration purposes I named my app at the GitHub repository b2evo. Nevertheless, you may name your b2evolution app any (allowed) name under your namespace. For instance, if I desired to create an b2evolution app named MalinalXochitl1 under my unique (previously created) namespace nepohualtzintzin2, I would input the following directive:

$ rhc app create -a MalinalXochitl -t php-5.3

Creating an app on OpenShift by defining it via a PHP web cartridge

That is to select a web cartridge and to assign a name to our b2evolution application named MalinalXochitl.

Important: at your current location you will find that the command above has created a directory aptly named MalinalXochitl, as well. Examining for sub-directories, the one that is of interest for our b2evolution app will be: MalinalXochitl/php (see snapshot below:

OpenShift rhc creates local app-named directory

By now we have a cloud instance for our b2evolution application. We can verify that by pointing our browser to

http://b2evoApp-uniqueNameSpace.rhcloud.com

The above, of course, is a general guide for your specific environment but below is a snapshot of OpenShift placeholder for this specific b2evo app named MalinalXochitl under namespace nepohualtzintzin:

MalinalXochitl-nepohualtzintzin place holder at Red Hat OpenShift Cloud

We proceed by adding a MySQL database cartridge to our previously defined b2evolution application:

$ rhc cartridge add -c mysql-5.1 -a MalinalXochitl

rhc adding a MySQL database cartridge which will also create a MalinalXochitl database

Our created database will inherit the name MalinalXochitl... represented by the female archetype in the initial image of this post B).

Note: You may want to save the important information output of your screen for reference purposes only because your b2evolution app will magically&#59;) receive the necessary installation values directly from OpenShift after you pull and push from the b2evo GitHub repository.

Now we change to our previously rhc -created sub-directory mentioned previously:

$ cd MalinalXochitl/php

make sure to delete (or move to other location) the health_check.php and index.php files existing there. I will delete (rm) them all by especifying the so-called wild-card character:

MalinalXochitl/php$ rm *

Preparing our app php subdirectory by first removing the default files

I add my remote GitHub repository (all on a single command line as shown subsequently in the snapshot):

$ git remote add upstream -m master git://github.com/Metztli/b2evo-metztli.git

we pull the b2evolution code from my GitHub repository:

$ git pull -s recursive -X theirs upstream master

Add remote b2evo-Metztli GitHub repo & pull to bring the essence of MalinalXochitl

We wait about a minute or until repository is completely pulled and then we push (deploy) our git b2evolution application code to our OpenShift cloud instance:

$ git push

git pull should end with no errors: we are ready to bring alive MalinalXochitl with a git push

As observed in the snapshot that follows, we should not experience any errors:

Our application MalinalXochitl has been successfully deployed to the cloud

We proceed to complete our b2evolution installation. And here is where OpenShift shines by exposing internal environment variables to our b2evolution app. The b2evolution app user should not be expected to engage in the error-prone task of filling in the application field values.
We point our browser, again, to our generic guideline:

http://b2evoApp-uniqueNameSpace.rhcloud.com

and below is a snapshot of the specific b2evo app that I named MalinalXochitl under my namespace nepohualtzintzin.

Disregard MySQL spurious error: Table... doesn't exist(Errno=1146)

Please disregard the superficial 'error':

You cannot use the application before you finish configuration and installation.

MySQL error: Table 'yourAppNameDB[dot]evo_settings' doesn't exist(Errno=1146)

After you select either link 'here' or 'here'(literally :) in the textual message, the user advances to the screen where s/he can set her language and/or code; s/he can also select whether this is a new installation or an upgrade. Indeed, if the user is new to b2evolution blogging, s/he may leave the default check-mark to install sample blogs.

Installer: How would you like your b2evolution installed?

After the user selects the GO! button s/he can expect to see how the b2evolution installation routine long output similar to:

Typical output of b2evolution Blog/CMS installation routine

Scroll down towards the end of the long output and please note down and/or copy/save the Login and random Password values. Select the 'log in' link

Typical b2evolution Blog/CMS Log: in to your account screen

upon your first entry instance into your b2evolution backoffice --and for security-- change those default/initial Login and Password values by selecting admin from the uppermost right menu.

For additional security, and as elaborated in my prior blog Deploying b2evolution blog/CMS on Red Hat's Cloud OpenShift PaaS, we select Check system & security at the bottom right extreme:

Typical b2evolution Blog/CMS: Check system & security screen

After selecting Check system & security we are taken to the System status tab; we note --highlighted in a pale orange color-- that we are prompted to delete the /blogs/install folder:

Typical b2evolution Blog/CMS: System status screen alert notice

We can achieve that by stopping and starting our b2evolution app with the Red Hat Cloud (rhc) command utility from our shell terminal:

$ rhc app stop appName

And start the b2evolution app again:

$ rhc app start appName

On each of those commands above the user will be prompted for her/his password created when s/he opened her/his account at OpenShift.

Thus after a successful re-start of our application, we can refresh the System status page --if we executed the rhc stop/start command above without closing the browser or wandering away-- :yes: and we can observe that the alert is gone:

Typical b2evolution Blog/CMS: System status screen all cool

Well, we can proceed and select the Global settings and subsequently select the Regional tab. From there the local time may be set from the GMT default.

Typical b2evolution Blog/CMS: Global settings-Regional tab

However, beware that if your offset is negative, the sample blogs will not show anything; that is because the creation time will be perpetually be advanced into the future by your local time difference. By editing the individual sample blogs you can modify their creation time to your current local time and will solve the issue, though.

Selecting Home from the uppermost extreme, one of the sample blogs can be admired:

Typical b2evolution Blog/CMS: default sample blog

I've shown that the Multi-Blog/CMS capable b2evolution is a secure, enterprise grade, customizable publishing software that can be deployed with relative ease on Red Hat Cloud Openshift platform as a service (PaaS).

Huelmati!3

1MalinalXochitl is Nahuatl, Mexico's real language par excellence, and roughly translates as Twisted-Flower in English and Flor-Torcida in Spanish. She is a great nahualli, loosely reduced as a sorceress and hechicera in European notions.

2nepohualtzintzin means calculating or computing instrument, again, in Nahuatl; thus, it is relevant as my OpenShift domain &#59;D.

3Enjoy!

P.S. If you agree that being able to capture long output screens in your Firefox browser and/or Debian Iceweasel equivalent please install the Screengrab add-on and kindly support the developer for continued updates.


DISCLAIMER:P although due diligence has been applied, the above post is intended as a proof of concept for deploying b2evolution to OpenShift Platform as a Service (PaaS).

Please do not hold me or Metztli Information Technology, or its associates, responsible if the information provided here does not achieve the desired result. The information is provided AS IS and with the hope that it may be useful to the Internet community.

Notwithstanding, There is no implicit or explicit guarantee that the information presented here is accurate. Accordingly, if an user(s) decide to implement the procedure or shell commands described here she, he, or them, do so at her, his, or their own risk. You have been forewarned.

I reserve the right to modify the blog and even to delete it without further notice.

Tags: b2evob2evolutioncloudgitgithubmalinalxochitlopenshiftpaas
This entry was posted by Jose and filed under Applications, Current Trends, Cloud Computing, Platform as a Service. Tags: b2evo, b2evolution, cloud, git, github, malinalxochitl, openshift, paas.

No feedback yet


Form is loading...

My blogs

  • Metztli IT's
  • Metztli Bits
  • Ixiptli
  • TIGroup
  • Amatl
  • Calli
May 2025
Mon Tue Wed Thu Fri Sat Sun
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
 << <   > >>

NahuiFS: Reiser4 Wiki (link)

Reiser4 Official Reference wiki

Apache OpenOffice: Suite libre y gratuita para la oficina

OpenOffice download: Bajar suite de Oficina Abierta

Axitlani

Send Telegram to @metztli_it ?

Metztli Reiser4 based on Debian Amatlocuilin, i.e., Bookworm

Download Metztli Reiser4 Debian 12 Amatlocuilin, i.e., Bookworm, Installer
Click image to be directed to download for free Reiser4-enabled Debian-Installer netboot ISO image hosted at SourceForge

Tlacayotl: Человечество : Humanity : Humanidad

  • Israeli forces Genocidal Apartheid Zionists land thieves arrested 22-yro Palestinian activist Ahed Tamimi in the village of Nabi Saleh in the occupied West Bank.

  • - Ahed Tamimi (Arabic: عهد التميمي, romanized: ‘Ahad at-Tamīmī, also romanized Ahd; born 31 January 2001)] is a Palestinian activist from the village of Nabi Salih in the occupied West Bank in Palestine. She is best known for appearances in images and videos in which she confronts Israeli soldiers.
  • Over a week ago they arrested her father, Bassem Tamimi while he was trying to make his way to Jordan. The family still has no idea where he’s being held.
- Israeli soldiers raided Ahed Tamimi’s home, turned everything upside down and held her mother in another room, preventing her from being with her daughter.
Human Rights Abuses Telegram

Spanish Cartel : Cártel Español

Spanish Cartel : Cártel Español

Search

  • Home
  • Recently
  • Archives
  • Categories
  • Latest comments

Categories

Metztli I. T.  Blog

  • Current Trends
    • Cloud Computing
      • Platform as a Service
    • nginx
  • Linux
    • Applications
      • Office
        • Symphony
          • Apache OpenOffice
        • uninstall/install
    • Debian
    • Installation
    • Java
    • Reiser4
    • reiser5
    • system
  • OS/2
    • Applications
    • Google Web Toolkit
  • Social Nework
  • Spam/Scam
  • Virtualization
  • php7

XML Feeds

  • RSS 2.0: Posts, Comments
  • Atom: Posts, Comments
More on RSS

Learn, support Nahuatl...


Powered by translatenahuatl.com

University of Oregon Wired Humanities' Nahuatl Dictionary appreciates your donation.
Rechercher directement un mot Nahuatl

Metztli IT's recent entries:

  • Debian Amatlocuilin, i.e., Bookworm, & Metztli Reiser4 5.17.13-1+reiser4.0.2 downgraded Linux Kernel
  • Tlacatecolotl: OS/2 for Symmetrical Multiprocessing(SMP) v2.11 HPFS386 on Headless VirtualBox 7.0.12
  • The Ritual of a Reiser4 Debianized Kernel Macuilli.Caxtolli_Omome.Matlactetl_Omome (5.17.12) Build
  • Tlahuizcalpanteuhctli
  • Reiser4 and Linux version Macuilli.Matlactli, i.e., 5.10
  • Reiser5 Moiocoiani: Metztli Reiser4, Software Framework Release Number (SFRN) 5.1.3 Debian installer
  • Exposing Hacks for ZSTD -compressed Metztli Reiser4 / Debian Buster bps Linux 5.5.caxtolli∙omome and initramfs
  • Build PHP 7.3.9̶ 10 ZTS and puppies...er, pthreads, on Metztli Reiser4: Как же мало нужно для счастья.
  • Build PHP 7.3.5̶ 6 for Nginx 1.17.0 on Metztli Reiser4 'the Debian Way' for Stretch Backports on AMD64.
  • Nginx at Metztli IT: ModSecurity v3 module, Engine X v1.15.9, and libmodsecurity3 Connector, Integrated Hack.

Open Source Power!

Powered by Nginx at Metztli IT

Powered by MariaDB

Protected by Zmanda

Recent comments

  • Artur on Exposing Hacks for ZSTD -compressed Metztli Reiser4 / Debian Buster bps Linux 5.5.caxtolli∙omome and initramfs
  • vato on Exposing Hacks for ZSTD -compressed Metztli Reiser4 / Debian Buster bps Linux 5.5.caxtolli∙omome and initramfs
  • Artur on Exposing Hacks for ZSTD -compressed Metztli Reiser4 / Debian Buster bps Linux 5.5.caxtolli∙omome and initramfs
  • Jordi L'Escala on Building A Reiser4-Patched Development Linux Kernel Package 'The Debian Way'.
  • hans on Building A Reiser4-Patched Development Linux Kernel Package 'The Debian Way'.
  • jess on OS/2 Warp Server for E-Business (WSEB) hosting b2evolution 2.4.2 "Palms" stable.
  • vato on Hecamalotl: OS/2 Hosting Drupal 7.0 RC1 Content Management System (CMS)
  • Per on Hecamalotl: OS/2 Hosting Drupal 7.0 RC1 Content Management System (CMS)
  • Alen on OS/2 Gradd video driver for Virtual Machine or older hardware.
  • Anonimo on Deploying b2evolution blog/CMS on Red Hat's Cloud OpenShift PaaS
Metztli Reiser4 on AMD Epyc Cloud Fabric

©2025 by Jose • Contact • Help • CMS software