Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Add disclaimer in documentation about opcache #125

Closed
maktouch opened this issue Jan 31, 2014 · 3 comments
Closed

Add disclaimer in documentation about opcache #125

maktouch opened this issue Jan 31, 2014 · 3 comments

Comments

@maktouch
Copy link

Me again! :)

Not a bug this time, just maybe add a disclaimer in the docs. There's a nasty situation (It's not a bug!) with symlink and opcache.

This is the issue -> zendtech/ZendOptimizerPlus#126 (comment)

This is the resolution, straight from The Rasmus
zendtech/ZendOptimizerPlus#126 (comment)

Since rocketeer is a deployment aimed for PHP, using symlinks, might be nice to add that to the docs.

Cheers!

@Anahkiasen
Copy link
Member

I'm not sure I fully grasp what the issue is, what would you write in the docs for someone looking for an issue ?

@maktouch
Copy link
Author

maktouch commented Feb 1, 2014

PHP5.5 has opcache built-in.

The Opcache is supposed to invalidate when the script has changed, but it has issue when the script is in a symlinked folder and called from the webserver.

Basically, opcache "thinks" that the script is /var/www/hello/current/public/index

while in reality, it's /var/www/hello/releases/20140101011/public/index

There's an easy fix for nginx (by just changing a config), but no easy fix for apache.

I'd write something like..

Possibles issues

  • When I deploy; my old scripts are running instead of the new, but the deployment was successful.

If you have opcache enabled, it might not work properly. See this github issue (link).

@Anahkiasen
Copy link
Member

Added a troubleshooting page.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants