PHP problem with ZyXEL NSA325v2.
#NAS_February
Accepted Solution
-
Hi,
you need to disable opcache.
For that you have to connect to your NAS via SSH and edit the php.ini file:
1. Enable SSH in your firmware/package settings.
2. Connect to your NAS with putty, bash or whatever.
3. The file is located in:/usr/local/zy-pkgs/php/php.ini
You can edit it with vivi /usr/local/zy-pkgs/php/php.ini
4. Just change the line
opcache.enable=1
to
opcache.enable=0
5. Make sure that you restart your NAS or at least HTTPD.
Good luck
0
All Replies
-
Hi,
you need to disable opcache.
For that you have to connect to your NAS via SSH and edit the php.ini file:
1. Enable SSH in your firmware/package settings.
2. Connect to your NAS with putty, bash or whatever.
3. The file is located in:/usr/local/zy-pkgs/php/php.ini
You can edit it with vivi /usr/local/zy-pkgs/php/php.ini
4. Just change the line
opcache.enable=1
to
opcache.enable=0
5. Make sure that you restart your NAS or at least HTTPD.
Good luck
0 -
Great! Thank You!0
-
Forget step 4 from above!
Better use this advice:opcache.revalidate_freq
- Basically put, how often (in seconds) should the code cache expire and check if your code has changed. 0 means it checks your PHP code every single request (which adds lots of stat syscalls). Set it to 0 in your development environment. Production doesn't matter because of the next setting.opcache.validate_timestamps
- When this is enabled, PHP will check the file timestamp per your opcache.revalidate_freq value.When it's disabled, opcache.revaliate_freq is ignored and PHP files are NEVER checked for updated code. So, if you modify your code, the changes won't actually run until you restart or reload PHP (you force a reload with kill -SIGUSR2).
From: https://www.scalingphpbook.com/blog/2014/02/14/best-zend-opcache-settings.html0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 144 Nebula Ideas
- 94 Nebula Status and Incidents
- 5.6K Security
- 239 USG FLEX H Series
- 267 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.3K Consumer Product
- 247 Service & License
- 384 News and Release
- 83 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.2K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 83 About Community
- 71 Security Highlight