using zend framework with zend server - php

I am considering to use Zend Framework in a future project in a Linux Environment. I did the introduction tutorial and quite liked the framework. Yet there's one question i couldn't really find an answer around.
What is the benefit of using Zend Server CE , besides that it wraps up MsSQL and PHP and Apache? As far as i figured out , you still need to include or link zend framework in your application. I couldn't find any facilities which will make deployment any easier either.
It would be nice if someone could give some pointers / resources about pros/cons of using Zend Server.
Thanks

If the plan is to set up a live server my tip would be to not use the Zend Server CE. It is quite heavy, I would use apache/mysql and then add your ZF dir to include path in the php.ini
I used Zend Server CE on my Mac earlier, just for development, but i throw it out and now i use MAMP instead.
What I liked about Zend Server CE is the admin interface, read more about it here http://www.zend.com/en/products/server-ce/

Related

Migrating Off Zend Server

We have a customer with an existing PHP app running on Zend server. Don't have a lot more info yet, about what version of the server it is, but there is not a lot of documentation and no way to talk to the original devs.
It looks like it runs on the old community edition of Zend, and there is no such thing anymore. We are going to move them to AWS for hosting. We have zero experience with Zend. How difficult would it be to migrate off Zend? As I understand it, they have their own framework, so I'm assuming we would have to rewrite a bunch of code to another framework, or not use a framework, and rewrite to that. Originally we were thinking this would be a simple migration, but I'm not so sure that will be the case now. If anyone has any thoughts on migrating the CE of Zend along with the code, that would be great, as well.
I'm going to be reviewing the code shortly. Are there any things I should look for that would indicate how deeply they are using the framework now, that I'll have to think about converting?

Can Zend Framework run fully without Zend Server?

We are resurrecting some old code that used the Zend framework. The old code extends several Zend classes, invokes getOptions() and uses some other Zend functions. We tried installing Zend Framework with XAMPP (click here) without the Zend Server. We have loads of errors that prevent the legacy site from rendering properly.
Is Zend Server necessary to use all the methods, etc. of Zend Framework?
Yes, you can run Zend Framework without Zend Server (and I'd guess this is a much more common setup than using both together). The only thing I can think of in ZF that would require Zend Server would be the Zend Server Cache Backend.
It's more likely that your issue is down to a difference in configuration between your old server and new. If you can give examples of some of the errors you're getting we might be able to suggest where to look.

Zend Server CE installation

I've so far been unable to find a working answer for this... And, let me say, I'm brand new to Zend/MVC.
I've installed Zend Server CE on CentOS, running Apache. I'm able to use the Zend GUI interface (with the options like "Monitor, Applications, Server Setup, etc.). PHP is running and executing fine.
All is ok, except when I try to instantiate any Zend Custom Classes. For instance when I try to create a Zend_Rest_Controller class, I receive the following message:
Fatal error: Class 'Zend_Rest_Controller' not found in /mnt/hgfs/API/index.php on line 15
This stays the same for any class I try. I read things about altering the php.ini file, or including the Zend library in the index.php page, but nothing has helped so far.
My question is: What steps in addition to installing Zend do I need to do to let me use the Zend classes?
Sorry if this is an ignorant question, but I appreciate the help.
There are two different products of Zend, which I think you are confusing. There is Zend Server CE (which you just installed). And there is the Zend Framework. As far as I know, Zend Server CE is distributing the Zend Framework with it, but it probably distributes version 2. And, looking at the name of the class you are referring to, that is a class from version 1 of the Zend Framework. Since version 2, the Zend Framework uses namespaces, and thus the class Zend_Rest_Controller does no longer exist. If you want to use version 1 Zend Framework, you will have to install that seperately.

deploy zend framework online

I am new to php zend framework, I think I can get zend worked in my local computer but I am not sure how to deploy zend on line. if I have a web sever and filezilla ftp transfer tool, what I need to do to be able to get zend work online like i did locally? any help will be greatly appreciated.
The beauty of Zend Framework is that it is very non-intrusive by nature. It is more a class set than a framework but you can use the MVC framework too to build awesome apps. My knowledge of the Zend Framework is that you simply have to upload your source on the server like it was in your original site on your machine.
If you are using a non-conventionnal way to detect or set the path of the autoloader then you MIGHT have issues to fix. But if you use the define(APPLICATION_PATH, realpath(dirname(FILE)) strategy and set the includepath correctly, there should be no problem at all.

Running CodeIgniter on Zend Server Community Edition

I am just wondering if I could run CodeIgniter applications on Zend Server Community Edition without any issues.
I don't want to mess everything up by experimenting. Please let me know if you have faced any problems running CI on ZendServer CE.
Thanks
Zend Server isn't really a server. It's just a preconfigured PHP installation for Apache/IIS. When deploying a Zend Framework application, you have to include the Zend Framework libraries along with your application as if you were deploying it on a regular Apache/PHP server.
You can treat it as a stock installation of PHP.
I don't know enough about Zend Server to say for sure (e.g. I've seen someone manage to wedge CI into Joomla before), and while I'm sure it's possible, I imagine it would require a lot of tinkering. What you can do is pick and choose your favorite bits of CI or Zend and reuse the code as libraries. Are you being forced to use Zend but would prefer to use CI? If that's the case, I feel for you, but I'm not sure the best solution is to use two entire frameworks with all the overhead that comes with them...it would probably end up being really unwieldy.

Categories