but of course, only if your extension is enabled. Next one will give you a lot of data about current opcache usage, Var_dump ( extension_loaded("Zend OPcache") ) // bool(true) Var_dump ( extension_loaded("opcache") ) // bool(false) cuz it's ZEND How to check everything works on PHP? var_dump ( zend_version() ) So, as I said, at first try to go with a default values of "opcache configuration options", and later do experiments. This one is works fine too! mory_consumption = 128 Next one works fine! mory_consumption = 64 Opcache.interned_strings_buffer = 32 this one BAD So, this had my Apache useless, because it didn't wanted to start mory_consumption = 64 I have no idea why, but I guess this two option should have some balance, because both of them is about memory usage. My problem was in this two options: mory_consumption Did you checked, is it there, your extension? The path, probably, it's not a problem if your extension is there (in the folder with all PHP extensions). Cant install memcached on XAMPP with PHP 7.4.3. Of course you can use the full path too, if you want too. And yeah, there's no need to define the full path if you have defined it here extension_dir = (in php.ini). Your PHP is smart enough to find the extension. And just above opcache.enable=1 put zend_extension=opcache. XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl. If you're here because of that, at first try to go with a default "opcache configuration options". XAMPP is the most popular PHP development environment. This is 2022 and I had a similar problem too with PHP-7.2, not on Xamp, but similar server. To review, open the file in an editor that reveals hidden Unicode characters. Everything is easier to configure (especially with Docker) and works faster. memcached-installation.txt This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. Decided to go with Ubuntu and server created with Docker. It's very hard/impossible (for now) to make PHP 7.x work on that OS (with Opcache). To be honest, I gave up with this application and working with PHP on Windows (was working on it for around 10 years with PHP <= 5.6). But sometimes it's refreshing much longer, and Apache is restarting in that moment. When I'm turning opcache off (by setting opcache.enable=0), Apache is not restarting and everything works fine (omitting the slower web application topic, of course).Įverything works fine while loading app on XAMPP having PHP 5.6 with enabled opcache.Īs you can see, sometimes page refreshes like it should. On a macOS system you can compile and install the extension with brew, macports or the source. With that change now, and with almost every page refresh, I'm getting this error from Apache: AH00428: Parent: child process 3748 exited with status 3221226356 - Restarting. sudo apt-get update sudo apt-get install php7.0-phalcon. When I check with phpinfo () I see that there is no memcached. I installed memcached via brew and updated the php.ini file with extensionmemcached.so. I tried every single instruction on the internet, I can't seem to install and run memcached on my xampp server. Wanted to use opcache, so I enabled it in php.ini. Can't install memcached on XAMPP with PHP 7.4.3. I've installed latest XAMPP server with PHP 7 (update: checked also PHP 7.1) (on my Windows 10 system).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |