我已經在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訪問,所以我不能這樣做。 –