Executed PHP files are stale unitl "touched" (Symlinked NFS mount as web root)

Posted by mmattax on Server Fault See other posts from Server Fault or by mmattax
Published on 2012-06-11T17:48:13Z Indexed on 2012/06/11 22:42 UTC
Read the original article Hit count: 315

Filed under:
|
|
|
|

We have a PHP application that has 3 web servers (running Nginx and Apache). The web server's directory root are symlinked directories that point to an NFS mount. For example:

web01 has an NFS mount at /data/webapp, which is symlinked to /home/webapp. Apache serves content from /home/webapp/www.

We also use ACP for our PHP opcode cache. When we deploy code, we SCP an archive file to the NFS server and extract it.

Since upgrading RedHat 6, when we deploy our code the webserver execute "stale" PHP files until touch is run on the PHP files. We thought that APC might be causing a problem, but the issue exists, even after clearing the opcode cache.

Any ideas on how to diagnose why the stale PHP code is being executed?

© Server Fault or respective owner

Related posts about apache2

Related posts about php