Skip to content

Commit

Permalink
Merge pull request #13 from austenc/master
Browse files Browse the repository at this point in the history
troubleshooting opcache for php-fpm and nginx
  • Loading branch information
Anahkiasen committed Feb 4, 2015
2 parents 371ade4 + 644798c commit adf39f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions VI-Help/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ To solve the issue, add the following command to be run at the end of your deplo
```
php -r "opcache_reset();"
```

**Note: if you are using PHP-FPM with nginx, the above will only flush the CLI cache, not FPM's**

To fix the problem in this case, add the lines below to your nginx server configuration.
```
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
```
Usually the file is located at `/etc/nginx/fastcgi.conf`.

0 comments on commit adf39f6

Please sign in to comment.