Updating your PHP code on EZstack - EZstack: AMP & More On The Cloud -->
class="has-subhead">EZstack: AMP & More On The Cloud : Your application running on cloud computing: asksun-ezstack@sun.com

By default on EZstack, PHP is configured with the Alternate PHP Cache (APC) turned on. This gives you an extra boost in peformance but if you modify your PHP code it is likely that the modifications won't be visible until you restart Apache.

To restart Apache you can use the EZstack web-interface. Follow the Manage link in the main menu, and stop and restart the targeted Apache server:

This can be cumbersome if you have a lot of code to modify. Alternatively you can turn APC off. Just connect to the targeted virtual server, and edit the php.ini file located in /opt/coolstack/php5/lib , and switch apc.stat from 0 to 1.
You need to restart Apache for the new config to be taken into account, but after, any modification you make to the PHP code is immediately visible when browsing the application.

Comments:

Wow thanks Thierry. I've been looking around for this trick.
Works like a charm

Posted by Amir on October 28, 2008 at 11:39 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed

This blog copyright 2008 by Thierry Manfe