The openshift I'm using is a DIY catridge with nginx + php 5.5.8 + phalcon 1.2.4
I have a directory structure as below
website
public
index.php
app
config
config.php
loader.php
routes.php
services.php
the problem is in my public/index.php
i do
try {
/**
* Read the configuration
*/
if (file_exists(__DIR__ . "/../app/config/config.php"))
{
$config = include __DIR__ . "/../app/config/config.php";
}else{
throw new Exception("Failed to include 'config.php'");
}
and it failed
Failed to include 'config.php'
#0 {main}
Is this something to do with openshift? cause I'm doing it correct in my localhost(although it is in apache for localhost) The script should load the config.php
(changed from is_file to file_exist as it make more sense)