• 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 GitTagged With abcdefghijkklmno
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

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • OpenShift OctoPress Auto install Script

    OpenShift OctoPress Auto install Script is an Advanced Script to Run OctoPress on Free OpenShift PaaS Practically Without Any Knowing Ruby or Git.

  • Accessing Bluemix MySQL Database From External Server

    Here is How You’ll Be Accessing Bluemix MySQL Database From External Server With Root Access. On CLI You Need MySQL Client to Work on MySQL.

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

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

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
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