Here are the steps and cartridge to Run OpenShift Nginx HHVM WordPress Multisite Gear for a Faster Loading Website, Ready to Use Solution. I tried to make it working like IaaS, unfortunately many things will not work with a PaaS; there are steps better to do manually by you. This WordPress is normal WordPress – you can use either a separate MySQL database service or create a MySQL gear with PHPMyAdmin on OpenShift. You’ll use that database’s info to install WordPress.
OpenShift Nginx HHVM WordPress Multisite : Understanding the Things
You should read, how to install WordPress Multisite on Nginx server. Thats what we do on IaaS. Thats what the way you’ll configure your WordPress as Multisite. There is a Plugin too.
On OpenShift, you do not have the Freedom like a Cloud Server. So, Nginx-HHVM for running PHP needs a custom cartridge. I have a ready to use full stuff to get OpenShift Nginx HHVM WordPress Multisite :
---
1 | https://github.com/AbhishekGhosh/OpenShift-Nginx-HHVM-WordPress-Multisite |
THIS IS NOT FOR REDHAT HOSTED OPENSHIFT. This is intended for your Cloud Server hosted OpenShift PaaS. I am showing you the stuff to understand why everything can not be packaged altogether.
I am not interested to learn OpenShift specific stuffs. I will forget the major target – optimization of a server and other things which are more important. I dislike the OpenShift’s way of installing WordPress. We do not use wp-config.php
in that way. When you are following this guide, you are getting a thing, which is 100% compatible with Cloud Server or even normal Shared server.
Open the above screenshot in full size.
OpenShift Nginx HHVM WordPress Multisite : Steps
Instead, do these from command line :
1 2 | rhc app create nginxhhvm http://cartreflect-claytondev.rhcloud.com/github/tengyifei/openshift-cartridge-nginx-hhvm # nginxhhvm is an arbitrary app name |
What till nginxhhvm
build is complete. Now,
1 2 3 4 5 6 | cd nginxhhvm && cd www rm index.php && wget http://wordpress.org/latest.tar.gz tar -xzvf l* && rm l* cd w* && mv * .. cd .. && rm -r word* ls -al |
So, your WordPress stuffs are now on localhost – Mac or Linux. Run :
1 | git remote -v |
to check whether the push is pointing towards OpenShift. Now, go to the root of the repo named nginxhhvm
in our case. If you run :
1 | git commit -a -m 'hhvm commit' |
It will not love the way you want to hug. You have to run :
1 | git add -A |
and run :
1 | git commit -a -m 'hhvm commit 7' |
It will nicely add all the stuffs. Force the push :
1 | git push --force |
Yes, obviously pointing towards the URL will show WordPress installation screen :
Read this OpenShift Port related things to discover the internal IP of the MySQL instance. Ultimately you’ll get WordPress installed normally. Full control over WordPress.
Rest is Making WordPress act as MultiSite. That part we have written before for Cloud Server WordPress Multisite installation guide. You will locally change and force the push :
1 2 3 4 5 | # like changing wp-config nano wp-config.php # at repo's root git add -A git commit -a -m 'hhvm commit 7' git push --force |
Simple.
Tagged With wordpress multisite database optimization , create php app in free openshift youtube , wordpress hhvm openshift