Question

PhalconException: IndexController handler class cannot be loaded

  • Posted June 10, 2014

HI!

So I’ve been having a few issues with Phalcon on my ubuntu 14.04 x32 apache2 droplet. However I did finally get it installed, I now assume there is some settings either the .conf or .htaccess thats messing this up, i’m just a bit tired of not getting anywhere.

Its working perfectly fine on my local mamp apache2 server and all the configs are good to go on that end. And I can’t really find anything that’s helpful online, or at least I haven’t found the right place yet.

The different files:

default.conf:

<pre> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </pre> 000-default.conf: http://pastebin.com/kVfiSav6 .htaccess: http://pastebin.com/GqTUDvnh

Any help would be appreciated!

  • Fredrik.
Subscribe
Share

You need to have the default controller created.

“Creating a Controller By default Phalcon will look for a controller named “Index”. It is the starting point when no controller or action has been passed in the request. The index controller (app/controllers/IndexController.php) (…)”


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It’s likely you’re not loading the module in php. You need to an ini file that loads the phalcon extension.

Create a file called /etc/php5/conf.d/phalcon.ini and this single line in the file extension = “phalcon.so

Make sure to restart apache. You can also check loaded modules via “php -m” command

Could you post the contents of your “public/index.php” ? I suspect that you need to replace this line: <pre> $url->setBaseUri(‘/project_name/’); </pre> with: <pre> $url->setBaseUri(‘/test/’); </pre> That assumes that your project is in /var/www/test