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
- 148 Nebula Ideas
- 96 Nebula Status and Incidents
- 5.7K Security
- 262 USG FLEX H Series
- 271 Security Ideas
- 1.4K Switch
- 74 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.4K Consumer Product
- 249 Service & License
- 387 News and Release
- 84 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.5K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 73 Security Highlight