OpenShift WordPress: FTP And Email Settings

OpenShift WordPress: FTP and Email Settings
OpenShift WordPress: FTP and Email Settings

If you read my earlier post WordPress on OpenShift for Dummies where i am teach you how to install WordPress on OpenShift.

Now I am assuming you can start blogging but hosting WordPress on OpenShift have some disadvantage like if you using custom domain on OpenShift you are unable to send Email using default WordPress Mailer and if you are really newbie to OpenShift and want to upload some files in your OpenShift instance it’s really difficult for you.

In this tutorial, I am teaching you how to send mail through OpenShift WordPress Instant and How you access you WordPress setup through FTP.

FTP Settings for OpenShift WordPress

Why FTP is Important?
Many times you accidentally install a plugin which is not compatible with some essential plugin then its cause a white screen error or your website lockout. What do you do in this situation? FTP helps you to come out from this situation like delete culprit plugin.
OpenShift requires rch setup for communicating with your OpenShift application but it’s difficult to step for a newbie to setup this using git. Using below steps, you can setup FTP in the easiest way.

Installation Guide
1. Install Putty. Use the full Windows installer to get all features.

2. Open PuTTYgen and generate an SSH-2 RSA key with 2048 bits.

OpenShift Public and Private Putty Key Generator
OpenShift Public and Private Putty Key Generator

2.1. Select SSH-2 RSA.
2.2. Click on Generate button for generating your key.
2.3. If you want to comment then update comment.
2.4. Save Private Key in your computer.
2.5. At the top of the Key Generator, under Public key for pasting into OpenSSH authorized_keys file, copy the contents of the text box to the clipboard.

3. Open OpenShift settings page to add your newly generated Key.

OpenShift WordPress: Add New Public Key
OpenShift WordPress: Add New Public Key

3.1. Open OpenShift Settings Page.
3.2. Click on Add new key… button.

4. On next page, you paste your public key which is a copy in step no 2.5.

Add New Public Key in OpenShift
Add New Public Key in OpenShift

4.1. Add a Key name, it’s necessary. Use some relevant and creative name. Don’t use a name with space it’s not acceptable. Sorry for Mistake.
4.2. Paste your public key which is a copy in step no 2.5.
4.3. Click on Create button.

5. Install FileZilla. It’s a FTP client. You can use any FTP client but I am personally prefer FileZilla on other FTP clients.

6. Open your WordPress Application page which was created in the previous tutorial and look at the right side you see Source Code. Copy it and save anywhere in your computer.

Source Code of OpenShift WordPress
Source Code

7. Open FileZilla and follow steps.

SFTP Settings of FileZilla
SFTP Settings of FileZilla

7.1. Go to Edit > Settings..
7.2. Choose SFTP in Connection.
7.3. Add your key file which was saved in step no 2.4.
7.4. Successfully add your key. It’s showing your comment which updates in step no 2.3.

8. Open your Source Code. It’s like a ssh://some [email protected] domain name/~/git/tech.git/. Add in FileZilla to communicating with your OpenShift Application.

FileZilla Uploading Settings
FileZilla Uploading Settings

8.1. In Hosts field add sftp://your domain name.
8.2. In Username add your username.
8.3. Click on Quickconnect to connect with your OpenShift application.
8.4. In app-root > data all your WordPress File present. current directory contains your WordPress Core File. plugins contain your installed or uninstalled plugin. themes contain all your themes. uploads contain all your uploaded file.

Now you can access your WordPress Directory with FTP.

Email Settings for OpenShift WordPress

Email is important for getting alerts from your WordPress Installation. Like you get notification if any one comments on your blog or you want to send news letter to your beloved Readers, but problem arise when you use OpenShift with custom domain WordPress unable to send emails from its default mailer. So we use WP Mail SMTP Plugin to avoid this problem.

1. Install WP Mail SMTP in your blog.

SMTP Setting for WordPress
SMTP Setting for WordPress

1.1. Go to Settings > Email.
1.2. Add Default Email Address, it’s should different from your SMTP email.
1.3. Add a Name. It’s your blog name or your name.
1.4. Select Send all WordPress Email via SMTP.
1.5. Add your SMTP Host Address. Use Gmail. smtp.gmail.com
1.6. Add your SMTP Port. Use Gmail SMTP Port. 465
1.7. Use SSL encryption if you use Gmail.
1.8. Choose Authentication Yes.
1.9. Add your Username and Password
1.10. Save Change.
1.11. After save change Send a Test Mail to your email to make sure all things work fine.

Sumo - Best Way to 2x Your Emailing List, Money and Social Shares, No Code Required

Now you are able to get and send email from OpenShift WordPress.

Are you using OpenShift for hosting a WordPress using this guide? If yes comments below or if you like this article share on your networks. Have any difficulty or comments drop in below comments box.

16 thoughts on “OpenShift WordPress: FTP And Email Settings

  1. Status: Connecting to app-darji.rhcloud.com...
    Response: fzSftp started, protocol_version=3
    Command: keyfile "C:\Users\Himesh\Desktop\open shift\a.ppk"
    Command: open "sftp://[email protected]/@app-darji.rhcloud.com" 22
    Error: Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
    Error: Could not connect to server

    error what to do ??

    • Shaikh Masood Alam

      I host field add sftp://app-darji.rhcloud.com and in user feild add 55XXXXXXXXXXXXXX
      Upload your public key to your account and save private key.

  2. worked.

    so in username you have to add source code and remove SSH and @anything.
    then it will work

    • Shaikh Masood Alam

      Yes, I think it’s your repository address.

  3. Hello Shaikh,

    Appreciate your effort to help all of beginners.

    I’m still having issues with sending mails. When I use SMTP for gmail and the test fails.

    I’m using contact Form 7 and the WP Mail SMTP plugin. When I user localhost/25, I’m able to successfully test it. And even the form submission says ‘successful’.

    Can you please help me out.

    • Shaikh Masood Alam

      Thanks for your Word.
      Check my Setting for gmail,
      SMTP Configuration for OpenShift WordPress
      If you still have problem,
      Create One Admin Account and send it to my mail [email protected].
      I’ll try my best to fix your problem.

  4. Thanks for the detailed tutorial. One of my themes had a problem so my entire site was down. Now I have deleted the theme via ftp but I’m still not able to access my site. Can you please help me out?

    • Shaikh Masood Alam

      Yes, I am here to help you.
      Contact me using my Email

  5. Thanks buddy. I have also hosted my latest blog on OpenShift and have found your tutorials here very valuable. Will come back for more tuts on using WordPress on OpenShift.

  6. Thank you very much. This was awesome.

    I really like OpenShift, but have been needing to access the root files so I can increase the memory allocation in order for the WooCommerce plugin to work correctly.

    I tried doing the simples SSH through the Ruby-powered command prompt, but that didn’t seem to go anywhere.

    Your tutorial really saved the day. Thank you a lot !

  7. Aha, Probably you know me right.
    i have my site with openshift since last 5 month up and running
    but now a day sometime my site goes down due to heavy traffic. Also connection time is increased which is not good for me and my visitors please help me ASAP.
    your blog follower.
    Himesh

    • Shaikh Masood Alam

      Hey, Good to see you again.
      I am using a WordFence Falcon Cache for caching purpose and use CloudFlare in front of my application URL.

      Check this How to Speed up WordPress upto 200% with One Powerful Hack.
      Its really help me.
      Using above setup you can easily able to handle 350-450User/Sec.
      I am testing all above step on my website.

  8. Great article brother. Ftp part helped me a lot but i am struggling with email part in test email its getting pool email not sending

    • Shaikh Masood Alam

      Follow steps carefully, and use Gmail or any other SMTP like elasticmail.

      • I am following it carefully but there’s one confusion in step 1.9 which username pass i should use??

        • Shaikh Masood Alam

          Use your own Gmail user and password because this instruction written for Gmail. But I recommend you to use professional SMTP services like elasticmail or sparkposts

Leave a Comment

25$ Lifetime Deal Alert: Optimize your 5000 Image / Month withShortPixel
+ +
20 Shares
Tweet
Share
+1
Share
Pin