12 Replies Latest reply on Jan 29, 2010 8:02 AM by Daniel Pride

    Mac to GoDaddy Linux Zend Deployment problems

    Daniel Pride Level 1

      I develop on a Macintosh (localhost) and deploy to GoDaddy Linix
      I did the following, exactly but it does not work.
      I am on beta 2  - What am I missing?
      Help please this is a demo to close a deal with a client.

       

          copied  ZendFramework/  to  server root
          exported release build to local HD
          Copied  build folder to server root
          copied the missing services folder from bin-debug to the build folder on the server
          ---- amf-config.ini ------
                  Uncommented and set zend_path to absolute path ( http://www.danielpride.com/ZenFrameworks )
                  Set amf.production to true.
                  Set Webroot to (  http://www.danielpride.com )

       

      Note: there is no fml file to be seen on my entire MACINTOSH hard drive ?
      Request: If you cite folders in your response please be explicit as to the path.

      Thanks in advance.

        • 1. Re: Mac to GoDaddy Linux Zend Deployment problems
          David_F57 Level 5

          Hi Dan,

           

          Sorry I couldn't have been more help earlier, and can't really help with what appears to be a difference between how windows/macs do things.

           

          Hopefully one of the Adobe guru's that works on a mac(not one with windows installed ) can explain where the fml/model descriptor is on a mac.

           

           

          David.

          1 person found this helpful
          • 2. Re: Mac to GoDaddy Linux Zend Deployment problems
            Daniel Pride Level 1

            Thanks for the effort big time tho

            • 3. Re: Mac to GoDaddy Linux Zend Deployment problems
              Gaurav P(Adobe) Level 2

              "Uncommented and set zend_path to absolute path ( http://www.danielpride.com/ZenFrameworks )
                          Set amf.production to true.
                          Set Webroot to (  http://www.danielpride.com
              )"

               

              The path that needs to be mentioned in amf_config.ini has to be directory paths and not urls pointing to them.

              So if you webroot is C:/xxx/yyy on your drive then that needs to be mentioned.

              However, in your case since the path is on the GoDaddy server instead of a local system, you can give relative paths.

              This relative path must be relative to the location of gateway.php file.

              So if your gateway.php is in say xxx folder which is directory under the server root, then your webroot path will be:

              webroot=../

              also if your zendFramework in placed directly under the server root, then you need not give zend_path. Just comment it using ';'

               

              The fml file is located under the '.model' folder of your eclipse project (note: it is not under the bin-debug or output folder). Also the fml file is only used for design time in FlashBuilder and has no effect on runtime flex application.

               

               

              Hope this helps,

              Gaurav

              1 person found this helpful
              • 4. Re: Mac to GoDaddy Linux Zend Deployment problems
                Daniel Pride Level 1

                Thank you so much for getting back to me but I still am getting

                 

                Send failed
                Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://www.danielpride.com/Vehicles3/gateway.php'

                 

                My amf config looks like this (I edited "debug" out of the last line, no one mentioned it but it does not work either way

                **********************************************************

                [zend]
                ;set the absolute location path of webroot directory, example:
                ;Windows: C:\apache\www
                ;MAC/UNIX: /user/apache/www
                webroot =../*

                 

                allation directory, example:
                ;Windows: C:\apache\PHPFrameworks\ZendFramework
                ;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework
                ;zend_path =

                 

                [zendamf]
                amf.production = true
                amf.directories[]=Vehicles3/services

                **********************************************************

                 

                The steps I am taking are as follows (note it works great on localhost, I just build and do the following

                 

                     copy  ZendFramework/  to  server root
                    exported release build to local HD
                    Copied  build folder to server root
                    copied the missing services folder from bin-debug to the build folder on the server

                     reset the constants for the new server in the include file for the services
                    ---- amf-config.ini ------
                            Set amf.production to true.
                            Set Webroot to ( ../* )

                 

                Thanks

                Dan

                • 5. Re: Mac to GoDaddy Linux Zend Deployment problems
                  Gaurav P(Adobe) Level 2

                  You need not add * to the path

                  Just write webroot =../

                   

                   

                  Thanks,

                  - Gaurav

                  • 6. Re: Mac to GoDaddy Linux Zend Deployment problems
                    Daniel Pride Level 1

                    Thats embarrasing Too little sleep I guess.

                    Anyway, removed it and still get the same error ?

                    • 7. Re: Mac to GoDaddy Linux Zend Deployment problems
                      Gaurav P(Adobe) Level 2

                      Hi,

                      On just trying to open up http://www.danielpride.com/Vehicles3/gateway.php on browser will give you any loading errors.

                       

                      I see,

                      Warning: require_once(Zend/Loader/Autoloader.php) : failed to open stream: No such file or directory in /home/content/d/a/n/danielpride/html/_DanielPride/Vehicles3/gateway.php on line 27

                       

                      Fatal error: require_once() : Failed opening required 'Zend/Loader/Autoloader.php' (include_path='.:/usr/local/php5/lib/php:../_DanielPride/') in /home/content/d/a/n/danielpride/html/_DanielPride/Vehicles3/gateway.php on line 27

                       

                      Which means that Zend is not loading.

                      But as you see you have now got the actual path described in the error message.

                      As an alternate solution, you can use this.

                      Try making webroot= /home/content/d/a/n/danielpride/html/_DanielPride

                      Or,  zend_path = /home/content/d/a/n/danielpride/html/_DanielPride/ZendFramework/library   (uncomment and make sure that this is where you installed Zend).

                       

                      Thanks,

                      - Gaurav

                      • 8. Re: Mac to GoDaddy Linux Zend Deployment problems
                        Daniel Pride Level 1

                        Ok progress

                        Sorry to be such an idiot, REALLY thank you for the time.

                        Newbie to Zend and very tired (impatient client waiting)

                         

                        I am now getting

                        Zend Amf Endpoint

                         

                        Fatal error:  Class 'Zend_Exception' not found in

                        /home/content/d/a/n/danielpride/html/_DanielPride/ZendFramework/library/Zend/Exception.php on line

                        35

                        • 9. Re: Mac to GoDaddy Linux Zend Deployment problems
                          Daniel Pride Level 1

                          This is my phpini file

                          [Zend]
                          zend_optimizer.optimization_level=15
                          zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
                          zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
                          zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so
                          zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so

                          • 10. Re: Mac to GoDaddy Linux Zend Deployment problems
                            Gaurav P(Adobe) Level 2

                            Ok. Since you are getting Zend Amf Endpoint, your connection to Zend is successful

                            But you should never have got the mentioned error.

                            Fatal error:  Class 'Zend_Exception' not found in

                            /home/content/d/a/n/danielpride/html/_DanielPride/ZendFramework/library/Zend/Exc eption.php on line

                            35

                            The error path says "Exc eption.php" (mark the space in between), is it a typo?

                            Can you check if you installed the mentioned  php file, and other similar folders.

                             

                            If you still can't get this up, we can have a connect meeting.

                            Please send me a mail on GAURAVP AT ADOBE DOT COM

                             

                            Thanks,

                            - Gaurav

                            • 11. Re: Mac to GoDaddy Linux Zend Deployment problems
                              Daniel Pride Level 1

                              Thank You

                              Your help was awesome

                              Sent it out.... going to bed now

                              • 12. Re: Mac to GoDaddy Linux Zend Deployment problems
                                David_F57 Level 5

                                Hi Dan

                                 

                                Also make sure that your provider is using at least php 5.2.4 preferable 5.3  as I think it won't be long before zendamf will require that.

                                 

                                David.