Fatal error: Class 'Zend\Loader\AutoloaderFactory' not found in init_autoloader.php
问题 I had successfully tested my ZF2 application on my test server. When I published the application to the live server I got the following error: Unable to load ZF2. Run `php composer.phar install` or define a ZF2_PATH environment variable. This error disappeared after adding this line to my index.php. putenv("ZF2_PATH=/opt/zf2/library/"); But now I get the AutoloaderFactory-not-found error instead, which means PHP still doesn't find the classes. The live server is a 1und1 (1and1, 1&1) managed