简体   繁体   English

将Zend应用程序推送到Amazon EC2实例

[英]Pushing a Zend Application into Amazon EC2 Instance

I'm trying to push a zend application onto an amazon EC2 instance. 我正在尝试将zend应用程序推送到Amazon EC2实例上。

I have set up my Zend application on the server and have set up the httpd conf. 我已经在服务器上设置了Zend应用程序,并设置了httpd conf。

When I try to access my website through the browser, I get the following message printed: 当我尝试通过浏览器访问我的网站时,我收到以下消息:

bootstrap() ->run();

I have followed all the standard procedures and am able to see static HTML files. 我遵循了所有标准过程,并且能够看到静态HTML文件。 But when I try to access PHP files, I see a blank page. 但是,当我尝试访问PHP文件时,会看到一个空白页。

I checked the log files but those do not return any errors. 我检查了日志文件,但这些文件未返回任何错误。

Any idea why I'm facing this issue. 不知道为什么我要面对这个问题。

Update: 更新:

I updated my php.ini file with the zend library include_path. 我使用zend库include_path更新了php.ini文件。

Now I'm faced with the following error: 现在,我面临以下错误:

 Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'Resource
matching "Jquery" not found' in /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap
    /BootstrapAbstract.php:694 Stack trace: #0 /usr/share/php/libzend-framework-php/Zend/Application
    /Bootstrap/BootstrapAbstract.php(626): 
    Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('Jquery') #1 /usr/share/php/libzend-
    framework-php/Zend/Application/Bootstrap/BootstrapAbstract.php(586): 
    Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL) #2 /usr/share/php/libzend-framework-
    php/Zend/Application.php(355): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL) #3 
    /var/www/html/urban-chatter/public/index.php(29): Zend_Application->bootstrap() #4 {main} thrown in 
    /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/BootstrapAbstract.php on line 694

Solved: 解决了:

I copied the zend library from my system onto the server and changed the include_path to the new library in php.ini file and everything started working. 我将zend库从系统复制到服务器上,并将include_path更改为php.ini文件中的新库,一切开始正常工作。 I think there was some compatibility issues when I used another version of zend library. 我认为使用其他版本的zend库时存在一些兼容性问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM