3 Replies Latest reply on Oct 24, 2011 11:48 AM by xandout

    Deploy to LAMP.


      OK, I have googled this and googled this.  I have a few EC2 servers, one of which is my playground.  I have a database CRUD app that I would like to se live on my server.  I have built the project "Export Release Build"  and have found that while it will display there is no *service.php files.


      Can someone here help me?


      I am sure it is very simple.

        • 1. Re: Deploy to LAMP.
          xandout Level 1

          I have installed zend.  Do I need to edit a particular file?


          EDIT: I did a quick test by taking my release build and placing it on my WAMP.  it worked. I think the fact that my server is currently running wordpress with mod_rewrite may be the i8ssue. will report back for others to find if they have this issue.


          EDIT:  ok now I have the same issue on a shared host (SiteGrounds)  am setting up the zend server in a few


          Message was edited by: xandout

          • 2. Re: Deploy to LAMP.
            xandout Level 1

            the output when I load the app is


            Class "CustomerService" does not exist: Plugin by name 'CustomerService' was not found in the registry; used paths:

            : /var/www/jim/

            #0 /usr/local/zend/share/ZendFramework/library/Zend/Amf/Server.php(580): Zend_Amf_Server->_dispatch('getAllCustomer', Array, 'CustomerService')

            #1 /usr/local/zend/share/ZendFramework/library/Zend/Amf/Server.php(657): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))

            #2 /var/www/jim/gateway.php(69): Zend_Amf_Server->handle()

            #3 {main}



            I cannot find anything that really explains this.  I have tried installing ZF, then the actual ZF server, I have even uploaded the entire bin-debug folder.


            I have hit a dead end. 


            Please help, even an RTFM link would help.

            • 3. Re: Deploy to LAMP.
              xandout Level 1



              ^^I found the last clue here.



              TO DEPLOY FB4.5 APP TO AMAZON EC2


              on EC2 deploy this AMI:ami-ab36fbc2


              That is Ubuntu 10.04.


              Then install Zend-Server CE (documented elsewhere)

              its is very simple though.


              Create a release build of your project, then copy the "services folder out of bin-debug into the release folder.


              Directory structure is like this:







                  your service.php file(s)


              other files



              copy those to /var/www on your server


              edit amf_config.ini to resemble this



              ;set the absolute location path of webroot directory, example:

              ;Windows: C:\apache\www

              ;MAC/UNIX: /user/apache/www

              webroot =/var/www/



              ;set the absolute location path of zend installation directory, example:

              ;Windows: C:\apache\PHPFrameworks\ZendFramework\library

              ;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework/library

              ;zend_path =




              amf.production = false



              edit your service files to point to the correct location<mine had mysql as localhost, I replaced with my mysql IP.



              once this is finished, just go to your server in your browser and click on you {PROJECT}.html


              it will work, to just auto load that you need to rename {PROJECT} to index


              I hope this helps someone, it is not documented anywhere that I could find.


              The info here should apply to other distros/servers as well editing ewhere it is relevant.