Skip to main content

Installing Mail functionality in the openshift by using PEAR

Openshift provides applications to host freely on the cloud. PHP is a very popular web programming language. Openshift also supports PHP.

In the openshift delivering mail by default not there. You have to put/install it explicitly by using pear.

Here I am going to show you where should you put pear packages so that it will installed during your building of PHP project on openshift.

When you create app by using rhc app create it will automatically create a app folder. Go to that folder and you will find .openshift

Inside the .openshift folder you find a pear folder. It will be empty by default. Create a deplist.txt and you can be able to put your pear packages. To add Mail just add Mail in the deplist.txt and save it.

When you git push your project your project will have mail functionality.