• 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

This Article Has Been Shared 689 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 Free OpenShift with Domain Name

  • Cloud Computing 3D Rendering And Scope In Film Industry

    Cloud Computing 3D Rendering Has Definite Scope in Film Industry which might alarm the Stars of tomorrow and relieve the Producers investing in the Films.

  • How Cloud Computing Challenge The Networks

    How Cloud Computing Challenge Networks with virtually unlimited storage and computing capacity, reduced cost and maximum flexibility and massive data traffic.

  • PubSubHubbub and Rackspace Cloud Queue

    PubSubHubbub is a networking protocol. Rackspace is Open Source but infamous for difficult to understand API documentation by normal human.

  • How to Upload Backup to Dropbox from Cloud Server

    Here is How to Upload Backup to Dropbox from Cloud Server in Case You Want To Keep Your Backup of Files and Database on a Free Cloud Storage.

  • Install Nginx PHP5-FPM on HP Cloud

    Here is How To Install Nginx PHP5-FPM on HP Cloud. HP Cloud means HP Helion Public Cloud. It is basically very easy to work with HP Cloud. People fear HP Helion Public Cloud very much. The basic reason possibly is not understanding the basics of Security Group Rules. So, you need to read our previous […]

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 (21K Followers)
  • Twitter (5.3k 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

  • Best Powerpoint Templates for Communicating IoT Concepts April 17, 2021
  • How to Build a DIY Water Level Indicator? April 16, 2021
  • How Startups Can Convince the Investors April 14, 2021
  • What to Know About the Cloud Storage Services for Smartphones April 13, 2021
  • WonderFox HD Video Converter Factory Pro Review April 10, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Install WordPress on Free OpenShift with Domain Name," in The Customize Windows, May 5, 2015, April 18, 2021, https://thecustomizewindows.com/2015/05/install-wordpress-on-openshift-with-domain-name/.

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