Migrate Wordpress site from OpenShift to VPS

2
Comments
Migrate Wordpress site from OpenShift to VPS

For all my new sites, I'm using free OpenShift account. But it is not 100% stable. Now, I have 5 sites located on OpenShift, and at least once a week, I need to restart one of them (usually it's error 503). So, when number of visitors on sevennet.org exceeded 4000 per day I have decided to move this wordpress blog to my VPS. Here is a small instruction how to do that Prepare your VPS\VDS On your VPS you should have nginx\apache with php and mysql installed. I would recommend you to change apache...

Read further...

How to connect to OpenShift with putty (ssh)

7
Comments
How to connect to OpenShift with putty (ssh)

I'm hosting 5 of my sites on OpenShift. Sometimes I need to connect to my applications through ssh. On Windows, I'm using putty to do that. Here is small "how-to" about connecting to the OpenShift application. First, you need a private and a public keys. To generate them you need puttygen Open puttygen and press generate:   Move your mouse in "Key" area until progress bar is full. Then type your passphrase and press save private key. Also, copy all text from Public key section (starts from...

Read further...

[Fixed] "CARTRIDGE_VERSION_2: line 1: 2: command not found" OpenShift application push error

1
Comments
[Fixed]

After pushing updated version of my  wordpress blog to OpenShift git repository, I have got "CARTRIDGE_VERSION_2: line 1: 2: command not found" error. You could see this error if you are pushing your changes in Drupal, Wordpress, Rails, Spring, Django, Reveal.js, CakePHP, or Dancer applications. To fix this error go to OpenShift applications repository and get the latest version of your app (wordpress-example): git clone https://github.com/openshift/wordpress-example.git Then copy and replace .o...

Read further...

Synchronize OpenShift application after update

1
Comments
Synchronize OpenShift application after update

For this blog I am using OpenShift cloud (started plan).   After updating wordpress engine through admin panel, updated files are not available in application git repository because they were not commited to git on remote server. To synchronize your OpenShift application with git repository you should perform following steps: Install and configure rhc command line tool as described here Connect to your application through ssh Go to OpenShift application page. Copy ssh connection string (lik...

Read further...