# PHP 7.4 and APCu

**URL:** <https://www.phphelp.com/t/php-7-4-and-apcu/31219>\
**Category:** PHP Installation and Configuration\
**Created:** [March 6, 2020, 5:08am UTC](https://www.phphelp.com/t/php-7-4-and-apcu/31219 "2020-03-06T05:08:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![torontoboy\_can](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/a5b964/32.png) [@torontoboy\_can](https://www.phphelp.com/u/torontoboy_can)\
**Post date:** [March 6, 2020, 5:08am UTC](https://www.phphelp.com/t/php-7-4-and-apcu/31219/1 "2020-03-06T05:08:41Z")

</div>

Hello everyone,  
Newbie question on php setup on linux. Hope you can help me please …

Is there a compatibility issue between php 7.4 and APCu 5.1.8?  
I installed both and it appears APCu is running (because phpinfo() is giving me that confirmation).

However when I issue the command: php -m the listing doesn’t show apcu as one of the modules loaded. I’m bit confused. Any thoughts?

Thanks

---

<div class="post-metadata">

**Author:** ![ErnieAlex](https://www.phphelp.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@ErnieAlex](https://www.phphelp.com/u/ErnieAlex)\
**Post date:** [March 6, 2020, 2:10pm UTC](https://www.phphelp.com/t/php-7-4-and-apcu/31219/2 "2020-03-06T14:10:20Z")

</div>

I have no experience with Opach, APC or APCu, but, found this online. It is from one of the main programmers involved in APCu. Sounds very negative for this library…

* * *

APC(u) is intended to function in a prefork multiprocess, or multithreaded SAPI.

FastCGI (without FPM) and CGI are not prefork models, they spawn distinct processes, as such APC(u) will not work correctly in those environments.

Nor will anything that uses shared mapped memory, like Opcache: They can cache for the current process, but share they cannot.

---

<div class="post-metadata">

**Author:** ![torontoboy\_can](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/a5b964/32.png) [@torontoboy\_can](https://www.phphelp.com/u/torontoboy_can)\
**Post date:** [March 7, 2020, 5:51am UTC](https://www.phphelp.com/t/php-7-4-and-apcu/31219/3 "2020-03-07T05:51:12Z")

</div>

Thanks @ErnieAlex for your reply.

Yes … there appears to be some compatibility issue with the installation.  
I’m setting up NextCloud on a raspberry pi; and APCu was recommended for php caching. Thats the context of my question.

---

<div class="post-metadata">

**Author:** ![ErnieAlex](https://www.phphelp.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@ErnieAlex](https://www.phphelp.com/u/ErnieAlex)\
**Post date:** [March 7, 2020, 3:58pm UTC](https://www.phphelp.com/t/php-7-4-and-apcu/31219/4 "2020-03-07T15:58:09Z")

</div>

Cloudy Pie? LOL Kinda a small platform for playing with a cloud. Hope you have an external hard disk connected to it. Good luck with it all…

---

<div class="post-metadata">

**Author:** ![torontoboy\_can](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/a5b964/32.png) [@torontoboy\_can](https://www.phphelp.com/u/torontoboy_can)\
**Post date:** [March 8, 2020, 11:48pm UTC](https://www.phphelp.com/t/php-7-4-and-apcu/31219/5 "2020-03-08T23:48:10Z")

</div>

LOL … yes it is small scale stuff. It is for personal use only … to share photos with family & friends.

Plus I’m learning new stuff too … just by tingeing around. 🙂

---

<div class="post-metadata">

**Author:** ![ErnieAlex](https://www.phphelp.com/letter_avatar_proxy/v4/letter/e/bc8723/32.png) [@ErnieAlex](https://www.phphelp.com/u/ErnieAlex)\
**Post date:** [March 9, 2020, 9:50pm UTC](https://www.phphelp.com/t/php-7-4-and-apcu/31219/6 "2020-03-09T21:50:40Z")

</div>

I also own a Raspberry to play with. I played with Raspberry-Pi-Hole for awhile. Works really great!  
Removes all ad sites form all web pages. Makes them load faster and uses less bandwidth overall.  
Right now, I am playing with Visual Neural Networking software on it. I got most of it thru a tutorial on  
PYimageSearch. It is kind of a sales sight, but, gives a ton of info and code for setting up Python and  
an Open source visual network system for the Pi. Fun stuff… Good luck with a replacement for APCu

---

<div class="post-metadata">

**Author:** ![torontoboy\_can](https://www.phphelp.com/letter_avatar_proxy/v4/letter/t/a5b964/32.png) [@torontoboy\_can](https://www.phphelp.com/u/torontoboy_can)\
**Post date:** [March 10, 2020, 3:47am UTC](https://www.phphelp.com/t/php-7-4-and-apcu/31219/7 "2020-03-10T03:47:47Z")

</div>

Thats good to know. I’ll check it out!

Thanks
