Search code examples
phpzend-framework2

Can't run Zend Framework 2 on a server - Class 'Zend\Mvc\Application' not found


I can't run ZF2 on server. Every time I got this error:

Class 'Zend\Mvc\Application' not found in /home/.../public/index.php on line 12.

In apache logs:

mod_fcgid: stderr: PHP Fatal error: Class 'Zend\\Mvc\\Application' not found in /home/.../index.php on line 12.

I've tried to change permissions of ZF2_PATH with no results. Path is correct. Maybe that's something with mod_fcgid?

Anyone have any ideas?


Solution

  • I don't know exactly where the problem was because update php to the newest version 5.4.x series solved the problem. But it's some kind of problem with escape_seq.