Tag Archives: zend server community edition

How Zend Server CE breaks WordPress Permalinks and how to fix it

Recently, I switched to Zend Server CE from a manually installed AMP package (Apache/MySQL/PHP) to make use of Zend’s lightweight environment and easy install package. In doing this, I found that it broke the permalinks associated with WordPress.  Despite mod_rewrite being enabled, and the “Pretty Permalinks” code being in the .htaccess file, it still didn’t work.

404 Error

To fix this problem do the following:

  1. Open up httpd.conf.  (On Windows, the default location of this file is C:Program FilesZendApache2conf.)
  2. Find the line with <Directory />.
  3. Make sure +FollowSymLinks is present on the Options line.  (i.e. Options +FollowSymLinks)
  4. Change AllowOverride None to AllowOverride All.
  5. Restart Apache.

AllowOverride controls how .htaccess files are used.  When AllowOverride is set to None, users cannot override the configurations set in httpd.conf for particular directories.  While the .htaccess in this client’s WordPress directory was correct, Apache wasn’t allowing it to override the default settings as stated in httpd.conf.  It is definitely worth it to learn more about how to configure Apache so that you can have a secure and well-performing environment, especially if a lot of developers work on the same production server.

If you have similar experience, we would love to hear what you have to say.  Perhaps it will save someone else a minute or even a few hours.

WordPress: Zend Server CE vs. cPanel & Apache stacks

I recently decided to install Zend Server CE on my machine to use as a local development environment.  I chose the PHP 5.3 installation so I could update my PHP code to fit the new version.  I was intrigued and excited to find that WordPress used a mere 2 MB of memory compared with 12-13 MB on my production installation.

Zend Server CE cPanel/Other Stacks
Memory usage 1.5-2 MB 12-14 MB
OS Windows XP
Windows Server 2003
Linux
Windows XP
Windows Server 2003
Installation PHP 5.2.10/5.3
MySQL
Apache 2.2.12
(Full)
PHP 5.2.10
MySQL
Apache 2.2.xx
WordPress Version 2.8.4 2.8.4
WordPress Plugins Same Same

My primary testing was done on Windows Server 2003. Before installing Zend Server CE, WordPress was taking up what I would call an average amount of memory, 12 MB. After installing Zend Server CE with PHP 5.2.10, I found that peak memory usage went down to around 4 MB. After I found PHP 5.2.10 worked, I upgraded to 5.3, which resulted in yet another performance increase, bringing us to 2 MB peak memory usage.

WordPress Memory Usage on Zend Server CE
WordPress Memory Usage on Zend Server CE
WordPress Memory Usage on cPanel/WHM
WordPress Memory Usage on cPanel/WHM

Thoughts: I can’t find anything drastically different about the two installations, but I could be missing something. If anyone can solve this mystery, please comment!