Here is a full guide to rightly setup WordPress on OpenShift PaaS with domain name and avoid any possible problem with OpenShift’s App Name. There is no meaning of repeating the initial steps to Setup WordPress on OpenShift, we have two years old guide plus one year old video guide to setup WordPress on OpenShift. Google search claims to become bias free, you need improvement of hosting. OpenShift is Free PaaS but highly scalable and you can use the paid service for full support.
Setup WordPress on OpenShift with Domain : First Steps
PaaS, by default will have issue with naked domain name pointing. Take that, your domain name is
jima.in. You should use
www.jima.in. First, create a free account on CloudFlare and point the naked domain to the IP written here :
A Record against the domain
jima.in will be that IP with 5 minutes TTL. You can do a
debug flag :
nslookup -debug jima.in
When you’ll get a right response, add a
www as CNAME and add the already created OpenShift PaaS App URL to point towards it. Now, go to naked domain’s page rules and add 301 redirect (with pattern match). So, your working domain is
jima.in as you do not have a dedicated IP.
Setup WordPress on OpenShift with Domain : Managing WordPress Problems
It is better to have two gears for your WordPress setup. You should login to MySQL instance and run MySQL Queries to like we have shown to change WordPress URLs rom HTTP to HTTPS. You’ll change from OpenShift APP url to
www.jima.in in our example. You actually should force WordPress to engulf
www.jima.in as the main address. This can be set from
/wp-admin/options-general.php or by adding snippets on
wp-config.php. You can use Search and Replace Plugin if you fear to use MySQL from command line. Everything should work rightly.
Basically, we should point the domain name first, then install WordPress with the domain name, this problem happens with installing WordPress with IP address on Cloud IaaS. We pointed towards two approaches, first one is easy, second one we have not explained here and any advanced user can follow the second way.
Follow the Author of this article :