Wednesday, August 23, 2017

[php 7.1][Resolved] PHP Warning: Zend OPcache huge_code_pages: madvise(HUGEPAGE) failed: Invalid argument (22) in Unknown on line 0

 Erorr message

PHP Warning: Zend OPcache huge_code_pages: madvise(HUGEPAGE) failed: Invalid argument (22) in Unknown on line 0
Open your 10-opcache.ini and change the value of opcache.huge_code_pages from 1 to 0:
for my case, it located in
/etc/php.d/10-opcache.ini
 i use vim to edit:
sudo vim /etc/php.d/10-opcache.ini

Press "esc" and type :wq! to save the file.

and then restart your server using this command
sudo systemctl restart httpd.service
or this  :
service httpd restart

Reference

https://talk.plesk.com/threads/please-share-your-opinion-about-plesk-php-packages.335242/page-3
https://stackoverflow.com/questions/27640772/disabling-opcache-enable-in-php-ini-not-working-on-centos?noredirect=1

No comments :

Post a Comment