Search code examples
phpzend-frameworkloader

Zend framework web app not coming up?


I am trying to get a web app made on Zend Framework up but am encountering this error

Warning: require_once(Zend/Loader.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/worm/index.php on line 17

Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader.php' (include_path='/var/worminc/application/../library') in /var/www/worm/index.php on line 17

Please suggest the possible solutions?


Solution

  • I don't think you've configured your LIB_PATH correctly. At the top of your bootstrap put:

    define('LIB_PATH', '/full/path/to/Library'); //Zend Framework is in Library
    set_include_path(LIB_PATH . PATH_SEPARATOR . get_include_path());
    require_once('Zend/Loader.php');