Pimcore Installation

Check Pimcore System Requirements

First you should check if you meet the requirements for the pimcore version you will be installing. Check the pimcore documentation for the current requirements: Pimcore Documentation - Requirements

Configure PHP Configurations

Change these values in your fpm and cli php.ini files located in \etc\php\fpmand \etc\php\cli respectively

upload_max_filesize = 2G  
memory_limit = 300M  
post_max_size = 2G  
realpath_cache_size = 4M  
date.timezone = Europe/Berlin 

Install composer

You can either go to getcomposer.org and follow the installation there or execute the following code. Attention this code is without the hash check given on the official composer installation guide.

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer

Set Maria DB System Variables

create a new file in /etc/mysql/conf.d

sudo nano /etc/mysql/conf.d/pimcore.conf

with this content:

[mysqld]
innodb_file_format = Barracuda
innodb_large_prefix = 1
innodb_file_per_table = 1

[mariadb]
plugin_load_add = ha_archive # optional but recommended, starting from mariadb 10.1 archive format is no more activated by default (check and adapt for mysql or other database software)

Install Pimcore

switch to the home directory and remove the contents of your www folder

cd ~
rm -rf www/*

create an empty pimcore skeleton with composer

COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/skeleton www

Setup the database

create the database with this command:

sudo mysql -u root -e "CREATE DATABASE pimcorecasts charset=utf8mb4;"

now create a database user

sudo mysql -u root -e "GRANT ALL PRIVILEGES ON pimcorecasts.* TO 'pimcorecasts'@'localhost' IDENTIFIED BY '1234';"

Launch the installer

launch the installer and follow the setup. Here you will need the user and database info you created in the previous steps.

cd ~/www
vendor/bin/pimcore-install
Comments (0)
  • No Comments
If you want to participate in the discussions. Please log in or consider registering