• 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 Free OpenShift with Domain Name

By Abhishek Ghosh May 5, 2015 7:22 pm Updated on May 5, 2015

Install WordPress on Free OpenShift with Domain Name

Advertisement

With only $10 For a Domain Name, You Can Install WordPress on Free OpenShift with Domain Name For Running Personal Blog or a Specific Purpose Website. Cost is Zero for Hosting. We can use 3 Gears – one for web server, one for memcache or syncing with web server and another for database – scalable setup, each of 1 GB. If you use Rackspace Cloud Files as CDN, monthly cost will be only $1.00. It is far better than your shared hosting options.

 

Install WordPress on Free OpenShift : The Domain Name Part

 

You will use a dot com or whatever domain name you want and use the www subdomain of the domain to install WordPress. People does the basic mistake – they first install the WordPress on OpenShift and then point the DNS. You need these things all together :

 

  1. An OpenShift Account (Free)
  2. A CloudFlare Account (Free too)
  3. A domain Name
  4. Free IP from wwwizer.com

You have no IP address, this guide not without reason is named Install WordPress on Free OpenShift with Domain Name. When you create the first application, you actually get this kind of url – https://shell-abhishekghosh.rhcloud.com. How to use that is written on this guide.

Advertisement

---

Yes, you can change the URLs later, but the sequence is important. If you first create a plain PHP App, you will actually get the subdomain name. Later you can install WordPress after pointing the CNAME towards it.

Now you need an IP address. We wrote about naked domain pointing. What you will do is that, you will use this free service – http://wwwizer.com/naked-domain-redirect, their IP is 174.129.25.170. No sign up. Free. On CloudFlare, if your domain name is example.com and app domain is shell-abhishekghosh.rhcloud.com, then you will setup in this way on CloudFlare :

Vim
1
2
A Record example.com 174.129.25.170 (Some Low TTL)
www CNAME shell-abhishekghosh.rhcloud.com (Some Low TTL)

Add the CloudFlare’s name-servers at your domain register’s account. Then on CloudFlare’s Page Rules, add 301 redirect to example.com towards www.example.com with redirect match. Allow some time, things will start working.

Install WordPress on Free OpenShift with Domain Name

 

Install WordPress on Free OpenShift with Domain Name

 

Now, from OpenShift’s account; first re-create the installation as WordPress with scalable option – MySQL database will be on different server. You can have PHPMyAdmin. No command line work. You can make it more scalable later. What we said is easy, official method.

As there is by no means you are installing the WordPress; it is readymade; you need to do some tricks. First, login to WordPress and go to : Settings > General and change the Site Address (URL) to your domain name (http://www.example.com). Also change the WordPress Address (URL) in the same way.

Now, keep that webpage open. Go to OpenShift dashboard and select your app then click the “Change” button next to the domain name and update the OpenShift domain name (shell-abhishekghosh.rhcloud.com for us) to your own domain (http://www.example.com in example). Then save it.

Now, your WordPress is located at http://www.example.com. There is a Plugin named Search and Replace. Install it from WordPress Plugin’s page and search for the OpenShift domain name (shell-abhishekghosh.rhcloud.com for us) and change anything to your own domain (http://www.example.com in example).

OpenShift now has recently added support to allow the applications to be hosted at own domain names rather than as a subdomain of rhcloud.com. You need to install OpenShift CLI tool. You can actually run this kind of command after changing the right values :

Vim
1
rhc-ctl-app -c add-alias --alias www.example.com -a shell

shell is the app name of shell-abhishekghosh.rhcloud.com, change it.

Now, git clone the App, and run :

Vim
1
cd $app_dir

We need to do some work, first cat this one :

Vim
1
cat .openshift/action_hooks/build | grep mkdir $OPENSHIFT_DATA_DIR/uploads

It should return nothing. If returns nothing then edit this file – .openshift/action_hooks/build to add :

Vim
1
2
3
if [ ! -d $OPENSHIFT_DATA_DIR/uploads ]; then
    mkdir $OPENSHIFT_DATA_DIR/uploads
fi

Now we need to symlink the wp-content :

Vim
1
ln -sf $OPENSHIFT_DATA_DIR/uploads $OPENSHIFT_REPO_DIR/php/wp-content/

git push it. There are plugins to edit .htaccess files. Install some such via WordPress interface and activate pretty permalink.

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Options All -Indexes
<files .htaccess>
    order allow,deny
    deny from all
</files>
 
<files wp-config.php>
    order allow,deny
    deny from all
</files>
 
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Add the things which are not present. This is the complete setup. Obviously, there will minute glitches but it is far superior than anything at that budget. Heroic is great but Heroku can be difficult to many users.

Tagged With political cartoon
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 Free OpenShift with Domain Name

  • 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.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • OpenShift PaaS Less Used Features : Update Yourself

    There are many OpenShift PaaS Changes which demands to understand how you should upgrade your machine to use our huge guides on OpenShift PaaS.

  • Install WordPress on Free Web Server Helio Host : Step by Step Guide

    Install WordPress on Free Web Server Helio Host by following our step by step guide. Everyone will able to install WordPress on free Hosting service and can enjoy of having a blog on own server.

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