我已经在bluemix系统中部署了ZF2应用程序。部署后,我到达如何在Bluemix中部署Zend Framework 2
Not Found
The requested URL/was not found on this server. error.
后,我已经添加.htaccess文件:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^APP_HOST$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.APP_HOST$
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]
而得到错误:
Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to load ZF2. Run php composer.phar install or define a ZF2_PATH environment variable.' in /home/vcap/app/htdocs/init_autoloader.php:53 Stack trace: #0 /home/vcap/app/htdocs/public/index.php(15): require() #1 {main} thrown in /home/vcap/app/htdocs/init_autoloader.php on line 53
我发现A CloudFoundry Build Pack for PHP.。我也试过如何描述,但没有结果。
那么你运行'php composer.phar install'? – AlexP
那里我没有SSH访问,所以我不能这样做。 –