• 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 278 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • How To Repack Installed Software on Debian/Ubuntu January 16, 2021
  • Components of Agile Software Development January 15, 2021
  • What is Conway’s Law? January 14, 2021
  • Effects of Digitization on Companies : Part XIII January 13, 2021
  • What is SoftAP Mode? January 12, 2021

 

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, January 17, 2021, https://thecustomizewindows.com/2017/10/install-wordpress-on-ibm-bluemix-easy-way-via-git/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

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

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

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