• 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 » Add Domain Name to OpenShift WordPress

By Abhishek Ghosh June 13, 2014 7:00 am Updated on June 13, 2014

Add Domain Name to OpenShift WordPress

Advertisement

Adding Domain Name to OpenShift WordPress, Unlike IaaS Can Be Challenging. We Can Use Free CloudFlare to Make the Process of Pointing Easier. Actually we talked about Pointing Naked Domains to CNAME before; WordPress Development needs checking of the Nightly Builds, one can use OpenShift for this purpose. PaaS, basically can be quite painful for who are not developers.

 

Why Adding Domain Name to OpenShift WordPress is Difficult?

 

There is no A record or AAAA record. Traditionally we need to validate our domains against a specific server’s A record or AAAA record. For example, you can perform a nslookup -debug domainname.tld command in Terminal App (on Linux or Mac) and we will get result like this (Rackspace Cloud DNS) :

 

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
25
26
27
28
29
?  ~  nslookup -debug thecustomizewindows.com
Server: 220.226.6.104
Address: 220.226.6.104#53
 
------------
    QUESTIONS:
thecustomizewindows.com, type = A, class = IN
    ANSWERS:
    ->  thecustomizewindows.com
internet address = 192.237.225.97
ttl = 111111
    AUTHORITY RECORDS:
    ->  thecustomizewindows.com
nameserver = ns.rackspace.com.
ttl = 158516
    ->  thecustomizewindows.com
nameserver = ns2.rackspace.com.
ttl = 158516
    ADDITIONAL RECORDS:
    ->  ns.rackspace.com
internet address = 69.20.95.4
ttl = 26157
    ->  ns2.rackspace.com
internet address = 65.61.188.4
ttl = 49524
------------
Non-authoritative answer:
Name: thecustomizewindows.com
Address: 192.237.225.97

 

 
Take that the IP 192.237.225.97 is of a server, not loadbalancer. You can see, there is no CNAME record. If you run the command for a subdomain of the domain, you’ll get like this (Rackspace Cloud DNS) :

Advertisement

---

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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
?  ~  nslookup -debug cloud.thecustomizewindows.com
Server: 220.226.100.40
Address: 220.226.100.40#53
 
------------
    QUESTIONS:
cloud.thecustomizewindows.com, type = A, class = IN
    ANSWERS:
    ->  cloud.thecustomizewindows.com
canonical name = f4f9597874d3d77289b7-e78c55da223d54933c14da1090eadabf.r71.cf2.rackcdn.com.
ttl = 300
    ->  f4f9597874d3d77289b7-e78c55da223d54933c14da1090eadabf.r71.cf2.rackcdn.com
canonical name = a71.rackcdn.com.
ttl = 300
    ->  a71.rackcdn.com
canonical name = a71.rackcdn.com.mdc.edgesuite.net.
ttl = 300
    ->  a71.rackcdn.com.mdc.edgesuite.net
canonical name = a73.dscg10.akamai.net.
ttl = 193
    ->  a73.dscg10.akamai.net
internet address = 46.33.68.87
ttl = 20
    ->  a73.dscg10.akamai.net
internet address = 46.33.68.135
ttl = 20
    AUTHORITY RECORDS:
    ->  dscg10.akamai.net
nameserver = n1dscg10.akamai.net.
ttl = 4635
    ->  dscg10.akamai.net
nameserver = n5dscg10.akamai.net.
ttl = 4635
    ->  dscg10.akamai.net
nameserver = n2dscg10.akamai.net.
ttl = 4635
    ->  dscg10.akamai.net
nameserver = a1dscg10.akamai.net.
ttl = 4635
    ->  dscg10.akamai.net
nameserver = a0dscg10.akamai.net.
ttl = 4635
    ->  dscg10.akamai.net
nameserver = n3dscg10.akamai.net.
ttl = 4635
    ->  dscg10.akamai.net
nameserver = n4dscg10.akamai.net.
ttl = 4635
    ->  dscg10.akamai.net
nameserver = n0dscg10.akamai.net.
ttl = 4635
    ADDITIONAL RECORDS:
    ->  a0dscg10.akamai.net
has AAAA address 2a02:26f0:32:f000:f50b:192b:c5c9:7d1c
ttl = 8281
    ->  a1dscg10.akamai.net
has AAAA address 2a02:26f0:32:f000:f50a:192b:c5c9:7d1c
ttl = 9221
------------
Non-authoritative answer:
cloud.thecustomizewindows.com canonical name = f4f9597874d3d77289b7-e78c55da223d54933c14da1090eadabf.r71.cf2.rackcdn.com.
f4f9597874d3d77289b7-e78c55da223d54933c14da1090eadabf.r71.cf2.rackcdn.com canonical name = a71.rackcdn.com.
a71.rackcdn.com canonical name = a71.rackcdn.com.mdc.edgesuite.net.
a71.rackcdn.com.mdc.edgesuite.net canonical name = a73.dscg10.akamai.net.
Name: a73.dscg10.akamai.net
Address: 46.33.68.87
Name: a73.dscg10.akamai.net
Address: 46.33.68.135

 

We have NOT assigned A record against the subdomain but pointed towards Rackspace Cloud Files using CNAME, which is clearly shown as canonical name. This is one of the reason why with only CNAME the problem happens in case of PaaS.
Secondly, WordPress is never very easy on the coding part. As the installation usually done using scripts with OpenShift’s subdomain name; in the database the URL remains of OpenShift’s subdomain name. We need to edit the wp-config.php again :

Vim
1
http://codex.wordpress.org/Editing_wp-config.php

We will not suggest to use Free OpenShift WordPress more than for developmental purpose – there is limitations in free account, with paid account may be you’ll get more official help. However, we will describe the DNS Pointing for Free OpenShift PaaS hosted WordPress.

Add Domain Name to OpenShift WordPress

 

Steps for Adding Domain Name to OpenShift WordPress

 

First create a free account on CloudFlare. By now, possibly you have registered a domain via GoDaddy, NameCheap or whatever it is. The second provider is known as Domain Register. The change in Name Server from Domain Register’s account is the final and decisive where the website will point towards. Login to CloudFlare and add the domain. It will scan and provide you custom name servers (two in number). In second step, change the Name Server set from Domain Register’s account (GoDaddy, NameCheap or whatever…).

Now, on CloudFlare account, you need to do some changes :

Delete all the records. Add new records freshly. You’ll add CNAME record against yourdomain.com (not with www). CloudFlare will give warning. As CNAME record, you’ll add the OpenShift App’s URL. WWW record will be added automatically.

We are showing you a record of a visitor of our website :

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
25
26
27
28
?  ~  nslookup -debug yureindica.com
Server: 220.226.6.104
Address: 220.226.6.104#53
 
------------
    QUESTIONS:
yureindica.com, type = A, class = IN
    ANSWERS:
    ->  yureindica.com
internet address = 141.101.116.77
ttl = 300
    ->  yureindica.com
internet address = 141.101.117.77
ttl = 300
    AUTHORITY RECORDS:
    ->  yureindica.com
nameserver = ben.ns.cloudflare.com.
ttl = 86510
    ->  yureindica.com
nameserver = uma.ns.cloudflare.com.
ttl = 86510
    ADDITIONAL RECORDS:
------------
Non-authoritative answer:
Name: yureindica.com
Address: 141.101.116.77
Name: yureindica.com
Address: 141.101.117.77

ben.ns.cloudflare.com and uma.ns.cloudflare.com was the custom name server, we added it to Domain Register’s account (GoDaddy). We deleted A Record and added only CNAME. Clouflare mask the CNAME to full. However the problem starts as the App was installed with OpenShift’s URL. So, technically we should update the URL from WordPress Admin panel (that is what we do if WordPress is installed using IP address on full server) and use Search and Replace Plugin to modify towards new url.

Yure Antunes Fernandes is the OpenShift WordPress user and our website’s visitor. We helped him for the CNAME part. He added some more points to solve some issues, you should edit the wp-config.php :

Vim
1
2
3
// Add these
define ('FORCE_SSL_ADMIN', false);
define ('CONCATENATE_SCRIPTS', false);

These what we got from feedback from the real users. It is painful, but basically all are free which otherwise would cost you minimum $30 per month.

Tagged With editing wordpress com cname www for godaddy domain , nslookup rackcdn com , openshift add domain name

This Article Has Been Shared 454 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 Add Domain Name to OpenShift WordPress

  • Change SSH Welcome Message (Ubuntu, Rackspace Cloud)

    Here is How You Can Change SSH Welcome Message, Also Known as Message of the Day or MOTD on Ubuntu Server on Rackspace Cloud By Simple Way.

  • Web Fonts, HTTPS and CDN : Error and Solution

    This guide is Intended to solve the errors associated with Web Fonts when served from Rackspace Cloud Files for a webpage using HTTPS.

  • Separate MySQL Database Setup on Rackspace Cloud Server

    Here is a Step by Step Guide on How To Setup a Separate MySQL Database Server on Rackspace Cloud Server and Connect From FTP Server Easily.

  • W3 Total Cache With SSL for Nginx Server

    W3 Total Cache With SSL for Nginx Server, thats on Rackspace Cloud with PHP5-FPM – here are some tips to work with this complex setup keeping everything fine.

  • Cloud Computing : Bandwidth and Network

    There are factors which gave a significant boost to the evolution of cloud. We will discuss about one such factor which influences Cloud Computing.

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

  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Add Domain Name to OpenShift WordPress," in The Customize Windows, June 13, 2014, February 1, 2023, https://thecustomizewindows.com/2014/06/add-domain-name-openshift-wordpress/.

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