
If you've missed all the news and announcements about Zend Server, take a look at Andi's blog, it has some real good posts and an insiders look at the Windows and Linux versions.
In my blog this week I'd like to take Zend Server for a spin, if you want to follow along you will need to install it first, and then activate all features by installing a trial license, your first screen should look all green on the right side like the figure above. If not, you may not have licensed your trial copy, click here for instructions, or if you originally decided not to active some features, its easy to reactivate.
Next let's setup some PHP apps to work with, setting up the preinstalled Zend Framework demos are easy to do. If IIS is your web server I recommend using IIS7 that supports the apache rewrite rules module and just copy the demo zend framework directory into the www root.
If youre using apache web server you can also copy the "demo" directory from the Zend Framework install, to your htdocs web root. To find out where the demo's are located, you can do a browser page search in the following PHPINFO screen, it can be found in ZendServer Admin menu Monitor>PHP Info and then do a search in the page for the word ZendFramework. That will list out the entire path downto the library subdirectory, just go up one level and you will see the demo folder.
If youre using apache web server you can also copy the "demo" directory from the Zend Framework install, to your htdocs web root. To find out where the demo's are located, you can do a browser page search in the following PHPINFO screen, it can be found in ZendServer Admin menu Monitor>PHP Info and then do a search in the page for the word ZendFramework. That will list out the entire path downto the library subdirectory, just go up one level and you will see the demo folder.


There are quite a few web services examples, to run the Amazon book example type the following, http://localhost/Demo/WebServices/Amazon/amazon-search.php there is also a UPC lookup example http://localhost/Demo/WebServices/Protocols/xmlrpc-upc-lookup.php
If you try to run the flickr demo you will probably only see a white screen in the browser come up. http://localhost/Demo/WebServices/Flickr/flickr-search.php Is there something wrong with the demo or code bug? To help figure this out, let's go back to our Zend Server monitor screen and look at the latest error at the top of the screen, I highlighted it in grey here.








Notice in the Zend Controller I now have 3.75 times more requests per sec, and in Firefox the page speed went from 2-0.9/sec to 0.24/sec a dramatic speed improvement. Since this is a RSS feed, the timings vary wildly at different times during the day but this example is representative of realworld situations. Also note the Zend Controller measures first byte returned so tools like Apache Benchmark, JMETER and LOADRUNNER are good tools for further benchmarking.
So download Zend Server and take it for a spin, if you also use open source projects like SugarCRM for example, many will detect the installation of Zend Server and its data caching and will perform significantly faster automatically. In an upcoming article, I'll take some of those for a spin too and list out all the ones that I have tested. For more news on Zend Server release, click here.
The band I've been listening to the most while taking things for a spin this month is Kings of Leon
1 comment:
If you're using apache web server you can also create a server alias instead of copying folder, you will need to locate your httpd.conf file, if you type http://localhost/server-info and scroll to the bottom of the page, it will show you the path of it in bold. Just use an editor and edit the httpd.conf file and add the following apache alias to the bottom. You need to also replace "PATHTOZENDFRAMEWORK" below with your real path to the demos, and it can be found in ZendServer Admin menu Monitor>PHP Info and then do a search in the page for the word ZendFramework. Copy the entire path from beginning to just the ..\ZendFramework (do not include the \library at the end of the path)
--------------------
#
# Alias for Zend Framework Demos location
#
Options All
Order deny,allow
Allow from all
Alias /Demo "PATHTOZENDFRAMEWORK\Demo\Zend"
#
# END ALIAS for Demos
#
----------------------------
Restart your apache webserver and if it all worked your first Zend Framework demo should display now in the browser, http://localhost/Demo/Gdata/YouTubeVideoBrowser and it should look like the 2nd screen above.
Post a Comment