How to move app from Zend Server CE to another LAMP?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to move app from Zend Server CE to another LAMP?

Mr.Kilmister
Hi Zenders!

I've just finished my first application. I wrote it on a Kubuntu with installed Zend Server CE. I have a second server, Ubuntu, where the application must be ultimately found. This Ubuntu is a pure, clean LAMP, Zend was never there.

I copied /usr/local/Zend/share/ZendFramework/library/* to the application directory.
Then I threw the entire application directory into /var/www on Ubuntu.

I hope Ubuntu see Zend library...:

print_r(inlude_path):

/var/www/[my-app]/application/../library:/var/www/[my-app]/library:./usr/share/php:/usr/ share/pear

but nothing work:

"An error occurred
Application error"

What's wrong?
Could you help me, please?
Reply | Threaded
Open this post in threaded view
|

Re: How to move app fron Zend Server CE to another LAMP?

Petar Dzhambazov
Hi is Zend folder within library folder on the Ubuntu server?

On 03/06/2011 05:20 PM, Mr.Kilmister wrote:

> Hi Zenders!
>
> I've just finished my first application. I wrote it on a Kubuntu with
> installed Zend Server CE. I have a second server, Ubuntu, where the
> application must be ultimately found. This Ubuntu is a pure, clean LAMP,
> Zend was never there.
>
> I copied /usr/local/Zend/share/ZendFramework/library/* to the application
> directory.
> Then I threw the entire application directory into /var/www on Ubuntu.
>
> I hope Ubuntu see Zend library...:
>
> print_r(inlude_path):
>
> /var/www/[my-app]/application/../library:/var/www/[my-app]/library:./usr/share/php:/usr/
> share/pear
>
> but nothing work:
>
> "An error occurred
> Application error"
>
> What's wrong?
> Could you help me, please?
>
> --
> View this message in context: http://zend-framework-community.634137.n4.nabble.com/How-to-move-app-fron-Zend-Server-CE-to-another-LAMP-tp3337679p3337679.html
> Sent from the Zend Server mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to move app fron Zend Server CE to another LAMP?

Mr.Kilmister
Yes, it is,
And even the website is launched, but only partly :(
I have 4 elements:
- paginator, to find data, it works fine
- accordion, to find details, works good

but I also have a view helper:

layout.phtml
<?php echo $this->login(); ?>

Login.php
<?php
class Application_View_Helper_Login extends Zend_View_Helper_Abstract
{
    public function login()
    {
        $output = null;
        if (Zend_Auth::getInstance()->hasIdentity()) {
            $output = '
                <div id="header-login">
                    <a href="' . $this->view->url(
                        array(
                            'controller' => 'auth',
                            'action'     => 'logout'
                        ),
                        'default',
                        true) . '">logout
                </div>';
        } else {
            $output = '
                <div id="header-login">
                    <a href="' . $this->view->url(
                        array(
                            'controller' => 'auth',
                            'action'     => 'login'
                        ),
                        'default',
                        true) . '">login
                </div>';
        }
        return $output;
    }
}

It prints out an error:

Not Found
The requested URL /auth/login was not found on this server.
Apache/2.2.16 (Ubuntu) Server at 127.0.0.1 Port 80

(After login it will be the last part wiht ajax...)

What's wrong?
Could you help me, please?
Reply | Threaded
Open this post in threaded view
|

Re: How to move app fron Zend Server CE to another LAMP?

Petar Dzhambazov
If you see default apache 404 page, then most likely mod_rewrite is not
configured properly.

regards
Petar

On 03/07/2011 03:48 PM, Mr.Kilmister wrote:

> Yes, it is,
> And even the website is launched, but only partly :(
> I have 4 elements:
> - paginator, to find data, it works fine
> - accordion, to find details, works good
>
> but I also have a view helper:
>
> layout.phtml
> <?php echo $this->login(); ?>
>
> Login.php
> <?php
> class Application_View_Helper_Login extends Zend_View_Helper_Abstract
> {
>      public function login()
>      {
>          $output = null;
>          if (Zend_Auth::getInstance()->hasIdentity()) {
>              $output = '
>
>
>                       "' . $this- view->url(
>                          array(
>                              'controller' =>  'auth',
>                              'action'     =>  'logout'
>                          ),
>                          'default',
>                          true) . '">logout
>
> ';
>          } else {
>              $output = '
>
>
>                       "' . $this- view->url(
>                          array(
>                              'controller' =>  'auth',
>                              'action'     =>  'login'
>                          ),
>                          'default',
>                          true) . '">login
>
> ';
>          }
>          return $output;
>      }
> }
>
> It prints out an error:
>
> Not Found
> The requested URL /auth/login was not found on this server.
> Apache/2.2.16 (Ubuntu) Server at 127.0.0.1 Port 80
>
> (After login it will be the last part wiht ajax...)
>
> What's wrong?
> Could you help me, please?
>
> --
> View this message in context: http://zend-framework-community.634137.n4.nabble.com/How-to-move-app-from-Zend-Server-CE-to-another-LAMP-tp3337679p3338993.html
> Sent from the Zend Server mailing list archive at Nabble.com.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to move app fron Zend Server CE to another LAMP?

Mr.Kilmister
thx a lot
everything works nice now
thx again