If you have multiple Akeneo instances over the same server. Sometimes cache will be a conflict and throws the errors like (domain is currently unable to handle this request. HTTP ERROR 500). It may be an issue due to the multi akeneo cache conflict. You can split the cache using the following steps:
- Create the config_cache.yml file inside the app/config of your PIM directory and add the following lines
doctrine_cache: providers: pim: chain: providers: [doctrine_cache.providers.pim_apcu, doctrine_cache.providers.pim_array] namespace: '%database_name%'
- Copy the config_cache.yml file inside the app/config of your PIM directory.
- Edit the config_prod.yml and the following line inside the import section.
- imports:
- – { resource: config.yml }
- – { resource: config_cache.yml }
- imports:
- Run the following command using the terminal at your PIM root directory. ( Note: Please note that neither the Apache user or the CLI should be the root user of the system. )
php bin/console cache:clear --env=prod && php bin/console pim:installer:assets --symlink --clean --env=prod && yarn run webpack && php bin/console d:s:u --force
after running the above commands if still face same HTTP ERROR 500. you can check the correct permissions to all directories and Akeneno requirements are fulfilled.
php bin/console pim:installer:check-requirements
2 comments
It is nice to hear that I did it for someone. Thanks for your comment. I will write more such articles in the future. Please let me know if you have any other queries.