TurnKey Linux Virtual Appliance Library

Zend Optimizer

rsradvan's picture

I wanted to know if the LAMP 'turnkey' includes the Zend Optimizer (version 3.0, 3.3 or greater) on the most recent version.  Could someone please let me know if this is true?  Thanks.

 

-r

Bob Radvanovsky's picture

Uh.....no.

Out of the box, the Zend Engine is @ v2.2.0.  If you need to install a newer release of Zend Optimizer this poses a problem.  I have had nothing but trouble with Zend (miscompatabilities between releases, let alone in between them).  I was hoping that someone would know outside of the standard boilerplated excuse...guess I was wrong.

Thanks, anyway, though.  I'll stick to whatever works - no Zend'd encryption.

Liraz Siri's picture

If you want optimization there may be other options

We use xcache for our PHP caching and it works great. We might add that to future versions of appliances by default. It just needs more testing to make sure nothing breaks.
apt-get install php5-xcache
You should then see that xcache is turned on in phpinfo and notice a respectable performance improvement.

Patch for xcache?

Is a patch needed to include xcache in LAMP? If so, I've taken the first steps. What I wonder is whether xcache-admin should be available from the usage.txt/confconsole. First draft with simple install of xcache is available as an attachment here: http://wiki.turnkeylinux.org/Whiteboard/PHP_acceleration. I need to do additional work if the web-based xcache administration page is to be available. Give the word, and I or we will proceed.


XCache Patch for LAMP Appliance

I've finished an XCache patch for TKL's LAMP stack. I'm going to try to post it as an attachment over here: http://wiki.turnkeylinux.org/Whiteboard/PHP_acceleration

Credentials for LAMP are the same as the existing stack.

Credentials for XCache-Admin page: username: admin, Password: admin

Any feedback would be appreciated. Saw this was a high priority blueprint. Hope someone can still make use of it.

Rik


Liraz Siri's picture

Good work Rik!

Kudos. The patch looks good. I see that you've thought of enabling the admin interface for xcache. That may be a good idea but on the other hand I've been using xcache for a couple of years now and have never found the need to log into its admin interface. Also it would be problematic to enable an admin interface that has default passwords without writing an installation hook and I'm doubtful whether xcache admin interface is important enough to warrant another password screen. We'll see.

Bottom line, since there seems to be significant community interest in this we'll enable xcache in the upcoming beta Lucid builds. If there are issues with acceleration we should be able to catch them on a per-appliance basis, with the help of the community of course.

Build Notes

I forgot to post the build notes for the appliance. Without the admin interface, XCache is as easy as: apt-get install php5-cache on with the LAMP appliance.

With the XCache admin interface, build notes are something like this:

XCache + LAMP Build Notes

Download TKL LAMP VMs.

Import LAMP appliance with VirtualBox

Leave hostname alone.

apt-get install php5-xcache
/etc/init.d/apache2 restart
cd /etc/apache2/sites-available
cp default xcache

In xcache, set path to /usr/share/xcache/admin

nano xcache

Configure Apache2

cd /etc/apache2/

Instruct Ampache to listen on port 12323

nano ports.conf
a2ensite xcache

Edit /etc/php5/apache2/php.ini:

nano /etc/php5/apache2/php.ini

Append the following two lines to php.ini to set username "admin" and password "admin"

xcache.admin.user = "admin"
xcache.admin.pass = "21232f297a57a5a743894a0e4a801fc3"

Set permissions

chmod 755 /usr/share/xcache/admin
chown www-data /usr/share/xcache/admin

Restart Apache2

/etc/init.d/apache2 restart


Guest's picture

zend optimizer not installed

I am getting a message that zend optimizer not installed how can I enable this ?

Xcache installed

It's my understanding that the LAMP and LAPP 11.0 releases have xcache built in; hopefully that answers the question. Feel like it might.


Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)