Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
1416 views
How to install Zend Opcache and Memcached on centOS 7 with PHP7
I upgraded php7 but when I install `yum install php-opcache and php-memcache`, occurs error Error: php70u-common conflicts with php-common-5.6.31-1.el7.remi.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest How to solve this probl...
I upgraded php7 but when I install yum install php-opcache and php-memcache, occurs error Error: php70u-common conflicts with php-common-5.6.31-1.el7.remi.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest How to solve this problem or install via ?
Rei (149 rep)
Aug 2, 2017, 08:22 AM • Last activity: Apr 5, 2022, 01:04 AM
0 votes
1 answers
1305 views
Why a PHP module is not loaded into PHP?
Showing my case how to debug the problem, that a PHP module is not loaded into PHP. I use OpenSUSE v42.2 Linux OS, with Apache webserver, PHP v7.1, Mysql. Because it does not provide PHP v7.1 I need, I built PHP v7.1 from source. Using PHP-FPM. I installed it into /opt/php-7.1/ php.ini is in: /opt/p...
Showing my case how to debug the problem, that a PHP module is not loaded into PHP. I use OpenSUSE v42.2 Linux OS, with Apache webserver, PHP v7.1, Mysql. Because it does not provide PHP v7.1 I need, I built PHP v7.1 from source. Using PHP-FPM. I installed it into /opt/php-7.1/ php.ini is in: /opt/php-7.1/lib/php.ini I find, that opcache is installed to /opt/php-7.1/lib64/extensions/no-debug-non-zts-20160303/opcache.so I edited php.ini and added the following line: zend_extension=/opt/php-7.1/lib64/extensions/no-debug-non-zts-20160303/opcache.so Restarted: systemctl restart php-7.1-fpm.service systemctl restart apache2.service But still I get the following result: php -m [PHP Modules] bcmath bz2 calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext hash iconv imap intl json libxml mbstring mcrypt mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar posix Reflection session SimpleXML soap sockets SPL sqlite3 standard sysvsem sysvshm tokenizer xml xmlreader xmlrpc xmlwriter xsl zip zlib [Zend Modules] The opcache is missing from [Zend Modules]. But in configure there is '--enable-opcache': > php -i | grep -i opcache > Configure Command => './configure' '--prefix=/opt/php-7.1' '--with-pdo-pgsql' '--with-zlib-dir' '--with-freetype-dir' > '--enable-mbstring' '--with-libxml-dir=/usr' '--enable-soap' > '--enable-intl' '--enable-calendar' '--with-curl' '--with-mcrypt' > '--with-gd' '--with-pgsql' '--disable-rpath' > '--enable-inline-optimization' '--with-bz2' '--with-zlib' > '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' > '--enable-pcntl' '--enable-mbregex' '--enable-exif' '--enable-bcmath' > '--with-mhash' '--enable-zip' '--with-pcre-regex' '--with-pdo-mysql' > '--with-mysqli' '--with-mysql-sock=/var/run/mysql/mysql.sock' > '--with-xpm-dir=/usr' '--with-webp-dir=/usr' '--with-jpeg-dir=/usr' > '--with-png-dir=/usr' '--enable-gd-native-ttf' '--with-openssl' > '--with-fpm-user=wwwrun' '--with-fpm-group=www' '--with-libdir=lib64' > '--enable-ftp' '--with-imap' '--with-imap-ssl' '--with-kerberos' > '--with-gettext' '--with-xmlrpc' '--with-xsl' '--enable-opcache' > '--enable-fpm' I also tried to specify as: zend_extension=opcache but I got the same result, opcache still missing. How to fix to have opcache enabled?
klor (426 rep)
Jul 29, 2020, 07:28 PM • Last activity: Jul 29, 2020, 11:29 PM
1 votes
2 answers
3361 views
Zend OPcache huge_code_pages: madvise(HUGEPAGE) failed
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][1]. According to [this thread on remi forum][...
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?**
BenMorel (4849 rep)
May 5, 2017, 03:27 PM • Last activity: Dec 15, 2019, 12:30 AM
Showing page 1 of 3 total questions