Back to Top

How to setup akeneo with PHP7

Updated 3 May 2018

Akeneo is an open source Product Information Management System(PIM) system designed for retailers to satisfy their multichannel needs. It is a tool for centralize informations of products and catalogs. Akeneo can manage your product inventory pretty well. It can easily extract data from any source like erp, e-commerce websites and marketplaces and manage it in central repository. We can easily import and export datas through akeneo PIM.

Main features of akeneos are

  1. Easy product management
  2. Localization
  3. Import and export
  4. Quality control
  5. Configuration management

In this tutorial I will show you how to setup akeneo. I setup akeneo with these configurations.

Ubuntu          14.04.2

Apache2        2.4.7

Start your headless eCommerce
Find out More

Php                7.0.10

Mysql            5.5.50

You can use either Mysql or Mongodb as database server.

My Installation directory is  /var/www/akeneo

Install all necessary packages(LAMP and php extensions)

sudo su
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install mysql-server
apt-get install php7.0
#Install php7 extensions
apt-get install php7.0-xml php7.0-zip php7.0-curl  php7.0-intl php7.0-mbstring php7.0-mysql php7.0-gd php7.0-mcrypt
apt-get install apache2 libapache2-mod-php7.0 php7.0-cli php7.0-apcu
#If you want to use mongodb instead of mysql
apt-get install mongodb php7.0-mongo

Php configuration

Configure timezone and memory limit  in  /etc/php/7.0/cli/php.ini  and  etc/php/7.0/apache/php.ini

date.timezone= Asia/Kolkata # Set your time zone 
memory_limit =768M # Recommended minimum memory

Database configuration

#Login to your mysql root
mysql -u root -p
#create user and database for akeneo. 
#please use the username and database given below or the installation will not work.
create database akeneo_pim;
create user 'akeneo'@'localhost' identified by 'akeneo_pim';
grant all privileges on akeneo_pim.* to 'akeneo_pim'@'localhost';

Download and Install akeneo

wget # with demo data
wget #for minimal version
mkdir /var/www/akeneo  # akeneo installation directory
tar -xvzf pim-community-standard-v1.6-latest-icecat.tar.gz -C /var/www/akeneo/
cd /var/www/akeneo/pim-community-standard
chmod +x /var/www/akeneo/composer.phar # Make composer.phar executable
../composer.phar install --optimize-autoloader --prefer-dist  # optional for community edition
php app/console cache:clear --env=dev 
php app/console pim:install --env=dev
chown -R www-data:www-data /var/www/akeneo

Sometime you will get error like this


 In this case you need to make sure the extension is installed and enabled. To enable a gd extension run the command

phpenmod gd # To enable an extension run, phpenmod extension_name

If any other error occurs edit your php.ini file and fix the error.

Virtual Host configuration

<VirtualHost *:80>
ServerName # your website name
DocumentRoot /var/www/akeneo/pim-community-standard/web
CustomLog /var/log/apache2/akeneo_access.log combined
ErrorLog  /var/log/apache2/akeneo_error.log
   <Directory /var/www/akeneo/pim-community-standard/web>
        Require all granted
        AllowOverride all

Rewrite apache module and restart apache service.

a2enmod rewrite
service apache2 restart

Make host entry in /etc/hosts # Your website name

Open website) in the browser. If you see this page than you have successfully installed akeneo.


Log in using username “admin” and password “admin” and explore akeneo. If you have any doubts regarding installation, you can ask me in the comment.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


  • mauriau
  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home