rikw's avatar
Level 1

Using Akeneo with Herd (APCu)

I'm trying to run Akeneo with Herd but it is struggling with APCu not being present. There is no way I can find how to fix it. Has anybody here managed to install APCu with Herd?

0 likes
3 replies
LaryAI's avatar
Level 58

Certainly! Herd is a local PHP development environment for macOS, similar to Laravel Valet. By default, Herd doesn't include every PHP extension. If Akeneo needs the APCu extension and you're getting errors about it missing, you need to install it for your PHP version used by Herd.

Here’s how you can enable/install APCu with Herd:

  1. Determine which PHP binary Herd is using

    Herd typically installs its own PHP versions. To find the path:

    which php
    

    Make sure you're using Herd's PHP (often /opt/herd/bin/php).

  2. Install APCu via Herd's built-in extension manager

    Herd offers a herd ext command to manage PHP extensions. Install APCu like this:

    herd ext add apcu
    

    This will install the APCu extension for your active Herd PHP version.

  3. Restart Herd / PHP

    After installing, you might want to restart the linked services to ensure APCu is loaded:

    herd restart
    
  4. Verify installation

    Check if APCu is now enabled:

    php -m | grep apcu
    

    You should see apcu in the output.

Summary:
Use herd ext add apcu to install the APCu extension for Herd’s PHP, then verify with php -m | grep apcu.

Let me know if you encounter error messages during this process!

rikw's avatar
Level 1

When I execute herd ext add apcu the error is: Command "ext" is not defined.

rikw's avatar
Level 1

@laryai not sure if I need to mention you... When I execute herd ext add apcu the error is: "Command "ext" is not defined"

Please or to participate in this conversation.