Hi there,
Not sure if i am in the right place. But...My project based on https://github.com/phalcon/phalcon-compose is working on my local machine, and unfortunatly returns an apache 503 status page on my vps. Unless i comment out the $application->handle()
. How can i configure phalcon to point me in the right direction?
public/index.php
<?php
ini_set('display_errors', "On");
error_reporting(E_ALL);
$debug = new Phalcon\Debug();
$debug->listen();
use Phalcon\DI\FactoryDefault;
use Phalcon\Mvc\Application;
/**
* Define some useful constants
*/
define('BASE_PATH', dirname(__DIR__));
define('APP_PATH', BASE_PATH . '/app');
try {
/**
* The FactoryDefault Dependency Injector automatically register the right services providing a full stack framework
*/
$di = new FactoryDefault();
/**
* Read services
*/
include APP_PATH . "/config/services.php";
/**
* Get config service for use in inline setup below
*/
$config = $di->getConfig();
/**
* Include Autoloader
*/
include APP_PATH . '/config/loader.php';
/**
* Handle the request
*/
$application = new Application($di);
# this works :
print_r($application);
#uncommenting the next line gives me an apache 503 page, but it doesn tell me why there is a 503.
#echo $application->handle()->getContent();
} catch (\Exception $e) {
echo get_class($e), ": ", $e->getMessage(), "\n";
echo " File=", $e->getFile(), "\n";
echo " Line=", $e->getLine(), "\n";
echo $e->getTraceAsString();
}
Thanks in advance!