This page says Zend Server Community Edition installs a "Complete PHP Stack that includes ZF". What does that mean? Does it install Apache? MySql?
Thanks.
Ok,
I got my answer while taking a chance and installing Zend Server, Here is the following from the Readme
What is Installed?
- PHP-Zend Server provides a complete PHP stack that can be controlled by the Administration Interface
- MySQL Database
- Apache Web server
In addition, the following components are also installed:
Zend components that are installed and enabled:
- Zend Debugger - The Zend Debugger component enables remote debugging of PHP scripts using Zend Studio or PDT.
- Zend Optimizer+ - The Zend Optimizer+ component speeds up PHP execution through opcode caching and optimization.
- Zend Data Cache - The Zend Data Cache component provides a set of PHP functions for improving performance by storing data in the cache.
- Zend Framework - An open source framework for developing Web applications and Web services with PHP.
- PHPmyAdmin - A popular open-source management tool for handling MySql Database over a Web interface.
Additional Zend Server features that are not included in the Community Edition:
- Zend Monitor - The Zend Monitor component is integrated into the runtime environment and serves as an alerting and collection mechanism for early detection of PHP script problems.
- Zend Page Cache - The Zend Page Cache component is used for caching the entire output of PHP scripts without changing the PHP code.
- Job Queue Component - The Jobs Component is used to streamline offline processing of PHP scripts.
- Zend Code Tracing - Code Tracing enables real-time execution flow recording in Production Environments.
Related
I am configuring a Ubuntu 14.04 web server at Amazon Web Services. I have the latest PHP5.5 installed as base, but I am using PHP Farm so that I can use PHP5.4.31 for a specific project that requires Zend Guard, which is only compatible with PHP up to 5.4.x. I added these lines to my custom php.ini
zend_extension=/usr/local/php/ioncube_loader_lin_5.4.so
zend_extension=/usr/local/php/ZendGuardLoader.so
So, everything works fine, but when I compile the PHP custom build I get this in the end:
Cannot load the ionCube PHP Loader - it was built with configuration API220100525,NTS, whereas running engine is API220100525,NTS,debug
Cannot load Zend Guard Loader - it was built with configuration API220100525,NTS, whereas running engine is API220100525,NTS,debug
Now from what can be seen, the builds are the same, the only differnce is:
API220100525,NTS vs. API220100525,NTS,debug
What I understand from this is that the PHP Zend Engine is running in Debug mode, but I can't seem to find how to disable debug mode so that the extensions can be activated.
Any ideas?
I just stumbled upon the same error.
Thanks to Marc B's hint I had a look into PHPFarm's compile.sh
There's a standard-option defined:
--enable-debug
just remove this line, delete your compiled php stuff in
/path/to/phpfarm/src/php-5.x
and recompile with
./compile.sh 5.x
Afterwards you should have a non-debug version which will work with ZendGuardLoader
I currently have PHP 5.4 setup, can we install Zend 1.11 with it or do we need to go for Zend 2 (have not come across decent tutorials explaining the setup for Zend 2 on WAMP)
I tried installing 1.11, but it gives out a errow while using the zf CLI
***************************** ZF ERROR ********************************
In order to run the zf command, you need to ensure that Zend Framework
is inside your include_path. There are a variety of ways that you can
ensure that this zf command line tool knows where the Zend Framework
library is on your system, but not all of them can be described here.
You can absolutely run Zend Framework 1.11 with PHP 5.4.
The error you are getting is because you are trying to use "zf" in the command line, but PHP can't find where the Zend Framework is loaded. In order to fix this, find the include_path directive in your php.ini file, and update the path to include where you have installed the Zend Framework.
Don't forget to restart your web server after you have done this!
We have a very large enterprise Web application developed using Mojave (MVC) framework in PHP.
Continuous development is still going on. There is an extensive use of AJAX throughout the system.
Debugging an issue is a nightmare currently.
I am wondering if this environment would help in debugging. Or are there any better tools?
Local Development environment:
WAMP
Windows 64
Eclipse PDT with XDebug (Recently installed)
MySQL.
Can we debug Ajax-heavy PHP web applications using XDebug?
Can I setup this project in Eclipse? (Import? Or just open the webroot of the application?)?
Are there any other better tools?
Xdebug doesn't support javascript itself, but you can use the browser extensions (that I've just pointed to in your other question) to start a debugging session when you want it (ie, an ajax-ui action): http://xdebug.org/docs/remote#browser-extensions
cheers,
Derick
Currently PHP 5.3 hosting environments have to install and use "Zend Guard Loader" extension to process and execute Zend Guard encoded files. I was unable to make it execute files that were encoded for use with Zend Optimizer (PHP 5.2).
Any workaround for this?
I don't think so... I am also stuck with using php 5.2 because of that.
If you want to run zend encoded 5.2 scripts using "Zend Guard Loader", you will need to fork out more money and buy the new version to encode the scripts again.... sad.
The only way that worked for me was to include php 5.2 file instead of Zend Guards message that is displayed when no zend guard loader found with if condition checking php version. Dirty, but working, yet 2 files still required to be present, but no need to have loader switching them in unprotected code.
To answer the Encoding vs. Runtime in Zend Guard/Optimizer/Loader context - they should perfectly match. The accepted answer is incorrect - there is no tweak to execute PHP 5.3 encoded files in Optimizer loaded in PHP 5.2.
Maintaining 2 target versions is very easy if you script / batch your encoding process when you have code updates. You just execute your source encoding once with zendenc52 and then with zendenc53, giving them different target directories.
More about that. PHP 5.3 code is different from 5.2, and you should actually have 2 different branches for your sources matching those versions.
Old News: http://php.net/manual/en/migration53.php
When testing / staging a Zend Guard encoded application, make sure you test the encoded version (and debug the open sources of course as needed). The reason is simple - encoded files have some overhead of data tables which handles obfuscation, and might change PHP functionality with some advanced PHP syntax. If any issue is found in encoded files while testing - it is easy to locate and fix the source. If you test only the source version and then encode and deploy to your customers - result is unpredictable.
As for deployment, when you install/untar/git/svn deploy your PHP files, you can either stick the PHP target version to your releases / downloads / code pushes, so they install in the correct version, or deploy 2 versions in different document root locations, and you can symlink / rewrite to the correct Guarded application version matching the PHP target version 5.2 or 5.3.
Last but not least. The supported runtime for Zend Guard is Zend Server. It has a community edition and anyone can install it free of charge (or purchase licensed components if needed extra boost and monitoring) on supported OSs, via native package managers for DEB / RPM or installation file (Windows, Mac, Other Linuxes not supported with native package managers). Zend Server optional Loader component will handle the encoded application files, and it comes with PHP 5.2 and 5.3 branches, so there is no need to manually install Zend Optimizer or Loader on your PHP. Upgrade from PHP 5.2 to 5.3 is easy and native when applications (encoded and open source) were properly migrated.
Hope this helps.
I have inherited a moderately large PHP codebase. In order to better understand how it works, I'd like to be able to print to logs a function or file trace whenever I hit a page, so I can correlate pages with source code. Are there any tools I can install? I have root on the server, and so have the ability to install anything as far as Apache or PHP add-ons goes.
I have heard about XDebug, but when reading up on installation, I've discovered that it is not compatible with Zend Optimizer. Unfortunately, this codebase requires Zend Optimizer, so XDebug does not appear to be an option for me at this time.
I'm developing under Linux.
Pisto,
running such tools would probably degrade the performance of your webserver anyway so you shouldn't do that on your production server. So I would advice you to copy the code on a different server disable Zend Optimizer and use Xdebug there.
Zend also provide their own debugging extension Zend debugger may be it work with the Zend optimizer.