• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Install WordPress on IBM BlueMix : Easy Way Via Git

By Abhishek Ghosh October 26, 2017 6:01 am Updated on October 26, 2017

Install WordPress on IBM BlueMix : Easy Way Via Git

Advertisement

This is generic CloudFoundry free, IBM free way of installing WordPress. Most of the guides on web are far inferior and does not involve checking of MySQL connection. Here is how to install WordPress on IBM BlueMix in easy way via git. You need idea of using SSH, Git, MySQL via CLI to follow this guide.

 

Install WordPress on IBM BlueMix : Easy Way Via Git

 

Login to BlueMix account. Create a Bluemix PHP application from the catalog using CloudFoundry PHP Buildpack. Fill the application name field, just deploy it, test the URL of the sample app. Then create MySQL database (Compose for MySQL) in Bluemix. You’ll see a dialog that will asking you to restage the application, click Restage and continue.
Click on the View credentials button of MySQL service box, where you’ll see a dialog with the service configuration and credentials in JSON format. Copy-paste and save it somewhere. It will have lines like :

Vim
1
2
"uri_cli": "mysql -u admin -p --host sl-aus-syd-1-portal.1.dblayer.com --port 18006 --ssl-mode=REQUIRED",
"uri_direct_1": "mysql://admin:ABCDEFGHIJKKLMNOP@sl-aus-syd-1-portal.2.dblayer.com:18006/compose",

If you have a server (or localhost) with root access where MySQL client running, SSH to it and test with the above command :

Advertisement

---

Vim
1
mysql -u admin -p --host sl-aus-syd-1-portal.1.dblayer.com --port 18006

It will ask for password. In the above example, ABCDEFGHIJKKLMNOP is password. If you run command show database; on MySQL, it will show the names of MySQL databases :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 706
Server version: 5.7.19-log MySQL Community Server (GPL)
 
Copyright (c) 2009-2017 Percona LLC and/or its affiliates
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
 
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
 
Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
 
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| compose            |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
5 rows in set (0.31 sec)

That means MySQL is fine and we know the host name, username, password of MySQL.

Go to the PHP Application created, under the Overview section you’ll find and area called Continuous delivery, push the Enable button of this section. Scroll down the initial form and look for the Git Repos and Issue Tracking options, then change the value of Repository type to New and press the Create button. Now go to Git Profile URL of Bluemix, which at present is :

Vim
1
https://git.ng.bluemix.net/profile

Add SSH keys and other things (like Github) which we normally get on Mac & GNU/Linux by running :

Vim
1
cat ~/.ssh/id_rsa.pub

You’ll see that on Git of that PHP application, it will be written how to clone, add changes etc. From local computer you can run like this, just to make you understand :

Vim
1
2
3
4
5
6
7
8
9
git config --global user.name "Abhishek Ghosh"
git config --global user.email "webmaster@thecustomizewindows.com"
git clone git@git.ng.bluemix.net:webmasterXY/WordPressAbhishek.git
Cloning into 'WordPressAbhishek'...
The authenticity of host 'git.ng.bluemix.net (169.53.247.244)' can't be established.
ECDSA key fingerprint is SHA256:BQx1OpGLx8cTkoL6RmftFgTGFHBz2tKPICJm5My4fa8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'git.ng.bluemix.net,169.53.247.244' (ECDSA) to the list of known hosts.
git@git.ng.bluemix.net's password:

Now change directory to that repo’s clone on localhost. Then wget WordPress :

Vim
1
2
3
4
5
6
7
wget https://wordpress.org/latest.zip
unzip latest.zip
rm latest.zip
cd wordpress
mv * ..
cd ..
rm -r wordpress

All files are at root now. Rename wp-config-sample.php and edit it :

Vim
1
2
mv wp-config-sample.php wp-config.php
nano wp-config.php

MySQL settings for wp-config.php will be like this, compose and admin are probably constant for all regions :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
...
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'compose');
 
/** MySQL database username */
define('DB_USER', 'admin');
 
/** MySQL database password */
define('DB_PASSWORD', 'ABCDEFGHIJKKLMNO');
 
/** MySQL hostname */
define('DB_HOST', 'sl-aus-syd-1-portal.2.dblayer.com:18006');
...

Save the file. Only IBM Bluemix specific work you need to do is :

Vim
1
2
3
mkdir .bp-config
cd .bp-config
nano options.json

Add this to options.json :

Vim
1
2
3
{
"PHP_EXTENSIONS": ["bz2", "zlib", "curl", "mcrypt", "mysql"]
}

Save the file. Push it :

Vim
1
2
3
mkdir .bp-config
cd .bp-config
nano options.json

Add this to options.json :

Vim
1
2
3
git add .
git commit -m "first push"
git push -u origin master

After few minutes, go to the web URL of PHP application and you’ll get the usual WordPress installation wizard. WordPress will nicely run like my test :

Install WordPress on IBM BlueMix - Easy Way Via Git Tagged With abcdefghijkklmno

This Article Has Been Shared 310 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Install WordPress on IBM BlueMix : Easy Way Via Git

  • Cloud Database : What is Cloud Database and How it Works

    Cloud Database can meet up the data volumes that is expanding rapidly needs database management of the larger companies and websites today.

  • Tips for Cloud Computing

    Tips for Cloud Computing points on the diversity and complexity of cloud computing which has led to veritable mess in many IT departments of various companies.

  • Cloud Desktop : Browser as Operating System

    Cloud Desktop services are steadily increasing with the advent of wide variety of software-as-a-service applications and other cloud services.

  • WordPress on Free IBM BlueMix Cloud PaaS

    We Are Not Going Describing How to Install WordPress on Free IBM BlueMix Cloud PaaS But Saying How You Will Leverage Business With This Combo.

  • Server OS Upgrade : Ubuntu 16.04 LTS from 14.04

    Here is Complete Guide for Server OS Upgrade – Ubuntu 16.04 LTS from 14.04 LTS. This is for Cloud Server & VPS with instructions on recovery.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Online Dating: How to Find Your Match March 20, 2023
  • Web Design Cookbook: Logo March 19, 2023
  • How Starlink Internet Works March 17, 2023
  • The Importance of a Camera Tracking System in Virtual Production March 15, 2023
  • Understanding the Key Differences between Docker and OpenVZ March 14, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Install WordPress on IBM BlueMix : Easy Way Via Git," in The Customize Windows, October 26, 2017, March 20, 2023, https://thecustomizewindows.com/2017/10/install-wordpress-on-ibm-bluemix-easy-way-via-git/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT