php-site example doesn't work

Hi Guys,

I've downloaded the php-site example from https://github.com/phalcon/php-site

and have the following config:

<?php
$config = new Phalcon\Config(array(
    'database' => array(
        'adapter' => 'mysql',
        'host' => 'localhost',
        'username' => 'root',
        'password' => '',
        'name' => 'php_site'
    ),
    'phalcon' => array(
        'controllersDir' => '/../app/controllers/',
        'modelsDir' => '/../app/models/',
        'libraryDir' => '/../app/library/',
        'viewsDir' => '/../app/views/',
        'baseUri' => '/'
    )
));

i've set up the db correctly, but all requests are just aborted after loading the config. Does anybody have a clue as to why?

replace: 'name' => 'php_site' -> 'dbname' => 'php_site'



5.7k

Sadly, still aborts my connection for some reason :( Even if i remove the whole Database block.

What Phalcon version ?

set the right 0777 for app/cache/



5.7k

phalcon Version 1.1.0

$ chmod 777 /var/www/testy/app/cache/

unfortunately, still aborts connections

chmod 777 /var/www/testy/app/cache/ -> chmod 777 -R /var/www/testy/app/cache/

there are error messages?



5.7k

Sorry, didn't mention i did a recursive chmod afterwards as well.

But no there aren't any php errors :(

Try to show the output of all errors:

error_reporting(1);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);


5.7k

By default my dev environment shows any and all errors, but unfortunately there aren't any.