Sample Header Ad - 728x90

Zend OPcache huge_code_pages: madvise(HUGEPAGE) failed

1 vote
2 answers
3361 views
I've got this error while running a PHP command-line script on a freshly installed server: > PHP Warning: Zend OPcache huge_code_pages: madvise(HUGEPAGE) failed: Invalid argument The server is running CentOS 7.3, with PHP 7.1.4 from the remi repository . According to this thread on remi forum , and this thread on plesk.com , the solution is to disable huge_code_pages in php-opcache.ini: opcache.huge_code_pages=0 However, Remi said that this problem should only occur on CentOS 6, not CentOS 7. Before I disable huge_code_pages for good, **is there a solution to make it work?**
Asked by BenMorel (4849 rep)
May 5, 2017, 03:27 PM
Last activity: Dec 15, 2019, 12:30 AM