# Pimcore : アップデート・インストール

**URL:** <https://forum.ficusonline.com/t/topic/218>\
**Category:** WEB Design\
**Created:** [2018 年 7 月 9 日午前 7:43 UTC](https://forum.ficusonline.com/t/topic/218 "2018-07-09T07:43:33Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2018 年 7 月 9 日午前 7:43 UTC](https://forum.ficusonline.com/t/topic/218/1 "2018-07-09T07:43:33Z")

</div>

**Pimcoreアップデートの際のComposerパスエラーへの対処**

PImcore update 4.6.3 to 4.6.4

**“Composer is not installed properly”**  
[https://talk.pimcore.org/t/composer-is-not-installed-properly/504](https://talk.pimcore.org/t/composer-is-not-installed-properly/504)

> <https://github.com/pimcore/pimcore/issues/1362>
>
> Make sure executables are correctly loaded from \`$PATH\`:
> 
> \`\`\`php
> $binary = 'c…omposer';
> 
> var\_dump(\[
> 'path' =\> getenv('PATH'),
> 'sys' =\> exec('which ' . $binary),
> 'tool' =\> Tool\\Console::getExecutable($binary)
> \]);
> \`\`\`
> 
> \`\`\`
> array (size=3)
> 'path' =\> string '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' (length=60)
> 'sys' =\> string '/usr/local/bin/composer' (length=23)
> 'tool' =\> boolean false
> \`\`\`

> <https://github.com/pimcore/pimcore/issues/2192>
>
> \# Bug Report
> 
> We yesterday set up about 50 Installations of the latest Pimcore… built on XAMPP in windows on different machines and experienced that in at least 10% of the installations the "Check Requirements" functionality in the installation window showed PHP and Composer as red, even though PHP and Composer was installed and added to the PATH variable of the systems. So the execution of \`php -v\` or \`composer --version\` in the terminal showed the according correct results. The installation itself worked without issues, but the check was interpreting the requirements wrong.

\website\config\di.example.php —\> di.phpとしてコピーして以下の内容に書き換えます。composerをインストールしたパスを指定します。

```
<?php

// Pimcore is using PHP-DI, see http://php-di.org/doc/

return [
	"pimcore.executable.composer" => "/usr/local/bin/composer",
];

```

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2018 年 7 月 9 日午前 7:50 UTC](https://forum.ficusonline.com/t/topic/218/2 "2018-07-09T07:50:10Z")

</div>

アップデート途中でアクセス権などのエラーになってしまった場合は、管理画面にアクセスできなくなるため、続きは手動でアップデートします。 **Pimcoreのワーキングディレクトリ内** で、以下を実行します。

> $ sudo composer install --no-scripts no-plugins

> $ sudo composer update --no-scripts no-plugins

アクセス権とパーミッションを再設定して下さい。

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2018 年 10 月 3 日午前 7:17 UTC](https://forum.ficusonline.com/t/topic/218/3 "2018-10-03T07:17:47Z")

</div>

**Pimcore Ver.5のcomposerによるアップデート** については以下参照のこと。

特にVer.5.3からVer.5.4へのアップデートの際は、 **composer.json** を編集する必要があります。

[https://pimcore.com/docs/5.x/Development\_Documentation/Installation\_and\_Upgrade/Upgrade\_Notes/Within\_V5/index.html](https://pimcore.com/docs/5.x/Development_Documentation/Installation_and_Upgrade/Upgrade_Notes/Within_V5/index.html)

Pimcore管理画面でアップデートプロセスが停止したため、 **composerによる手動アップデート。**

> $ sudo composer update

> $ sudo composer remove --no-update symfony/symfony amnuts/opcache-gui cache/tag-interop colinmollenhour/credis composer/ca-bundle debril/rss-atom-bundle defuse/php-encryption doctrine/annotations doctrine/cache doctrine/collections doctrine/common doctrine/dbal doctrine/doctrine-bundle doctrine/doctrine-migrations-bundle doctrine/instantiator egulias/email-validator endroid/qr-code geoip2/geoip2 google/apiclient guzzlehttp/guzzle hybridauth/hybridauth lcobucci/jwt league/csv linfo/linfo mjaschen/phpgeo monolog/monolog mpratt/embera myclabs/deep-copy myclabs/php-enum neitanod/forceutf8 nesbot/carbon ocramius/package-versions ocramius/proxy-manager oyejorge/less.php pear/net\_url2 phive/twig-extensions-deferred pimcore/core-version piwik/device-detector presta/sitemap-bundle ramsey/uuid sabre/dav sensio/distribution-bundle sensio/framework-extra-bundle sensio/generator-bundle sensiolabs/ansi-to-html symfony-cmf/routing-bundle symfony/monolog-bundle symfony/polyfill-apcu symfony/swiftmailer-bundle tijsverkoyen/css-to-inline-styles twig/extensions twig/twig umpirsky/country-list vrana/adminer vrana/jush wa72/htmlpagedom zendframework/zend-code zendframework/zend-paginator zendframework/zend-servicemanager scheb/two-factor-bundle

**ここで上記リンク先の内容に従ってcomposer.jsonを編集します。**

> $ sudo rm composer.lock

> $ sudo rm -rf vender

> $ sudo COMPOSER\_MEMORY\_LIMIT=3G composer require pimcore/pimcore:5.4.\*

> $ sudo -r pimcore/

> $ sudo rm -r pimcore/

> $ sudo rm -r web/pimcore/

**アクセス権の修復とユーザ再定義**

> $ sudo chown -R xxx:xxx ./

> $ sudo chmod -R XX0 ./

> $ sudo chmod -R XXX ./var

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2019 年 2 月 18 日午前 6:36 UTC](https://forum.ficusonline.com/t/topic/218/4 "2019-02-18T06:36:10Z")

</div>

**Update Pimcore from 5.4.0 to newer version**

[https://pimcore.com/docs/5.x/Development\_Documentation/Installation\_and\_Upgrade/Updating\_Pimcore/index.html](https://pimcore.com/docs/5.x/Development_Documentation/Installation_and_Upgrade/Updating_Pimcore/index.html)

**composer.json** の **pimcore/pimcore** のバージョンの箇所を更新します。

`"pimcore/pimcore": "5.6.*",`

アップデート（COMPOSER\_MEMORY\_LIMIT=-1はオプション）

> $ sudo COMPOSER\_MEMORY\_LIMIT=-1 composer update

composer installを促すメッセージが表示された場合は、

> $ sudo composer install
> 
> $ sudo bin/console pimcore:migrations:migrate -s pimcore\_core -n

アクセス権を再設定します。

> $ sudo chown -R admin-user:group /var/www/html/installed\_dir  
> $ sudo chmod -R 7xx /var/www/html/installed\_dir

最後にadmin管理ページでキャッシュをクリアします。

> <https://stackoverflow.com/questions/33052195/what-are-the-differences-between-composer-update-and-composer-install>

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2019 年 9 月 30 日午前 5:38 UTC](https://forum.ficusonline.com/t/topic/218/5 "2019-09-30T05:38:31Z")

</div>

## v5からv6へのアップグレード

[https://pimcore.com/docs/6.x/Development\_Documentation/Installation\_and\_Upgrade/Updating\_Pimcore/V5\_to\_V6.html](https://pimcore.com/docs/6.x/Development_Documentation/Installation_and_Upgrade/Updating_Pimcore/V5_to_V6.html)

### 1. `composer.json` の変更

```auto
    "post-install-cmd": [
      "Pimcore\\Composer::postInstall",
      "@symfony-scripts"
    ],
    "post-update-cmd": [
      "Pimcore\\Composer::postUpdate",
      "@symfony-scripts",
      "Pimcore\\Composer::executeMigrationsUp"
    ],
    "pre-package-update": [
      "Pimcore\\Composer::prePackageUpdate"
    ],
    "symfony-scripts": [
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
    ]     

```

変更内容

```auto
    "post-install-cmd": [
      "Pimcore\\Composer::postInstall",
      "@pimcore-scripts"
    ],
    "post-update-cmd": [
      "Pimcore\\Composer::postUpdate",
      "@pimcore-scripts",
      "Pimcore\\Composer::executeMigrationsUp",
      "@pimcore-scripts"
    ],
    "pimcore-scripts": [
      "Pimcore\\Composer::clearCache",
      "Pimcore\\Composer::installAssets"
    ]

```

#### 2. `/app/config/local/database.yml`を作成

```auto
doctrine:
    dbal:
        connections:
            default:
                user: username
                password: password
                dbname: dbname
                host: host
                port: 3306

```

### 3. `web/app.php`のアップデート

以下リンク先の内容に書換えます。

[https://github.com/pimcore/skeleton/blob/master/web/app.php](https://github.com/pimcore/skeleton/blob/master/web/app.php)

最後にcomposer.json内の項目 “pimcore/pimcore”: “6.2.\*”,に書換えて以下コマンドを実行します。

```auto
$ sudo COMPOSER_MEMORY_LIMIT=-1 composer update

```

上記COMPOSERによるアップデートをGCEのVM上で実行するのはお勧めしません（メモリーを最大限消費するためメモリー不足エラーが発生する可能性があります）。

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2019 年 10 月 24 日午後 2:10 UTC](https://forum.ficusonline.com/t/topic/218/6 "2019-10-24T14:10:56Z")

</div>

### Pimcore6 System Requirements

[https://pimcore.com/docs/6.x/Development\_Documentation/Installation\_and\_Upgrade/System\_Requirements.html](https://pimcore.com/docs/6.x/Development_Documentation/Installation_and_Upgrade/System_Requirements.html)

以下データベースの設定を推奨

```auto
$ sudo pico /etc/mysql/mariadb.conf.d/50-server.cnf

[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)

```

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2021 年 7 月 20 日午後 12:34 UTC](https://forum.ficusonline.com/t/topic/218/7 "2021-07-20T12:34:40Z")

</div>

### バージョン6.Xから6.9へのアップデート

バージョン10へのアップデート条件として、事前に6.9へのアップデートが必須  
[https://pimcore.com/docs/pimcore/6.9/Development\_Documentation/Installation\_and\_Upgrade/Updating\_Pimcore/index.html#page\_Upgrading-within-Version-6](https://pimcore.com/docs/pimcore/6.9/Development_Documentation/Installation_and_Upgrade/Updating_Pimcore/index.html#page_Upgrading-within-Version-6)

`composer.json`ファイルの`pimcore/pimcore`の項目でアップデートバージョン`~6.9.0`を指定

**pimcoreコンテナ内で作業(composer2.0)**

```auto
$ docker exec -ti pimcore-fpm bash

```

composer.jsonファイルが格納されているプロジェクトフォルダへ移動しキャッシュ削除

```auto
# cd pimcore_project

```

**キャッシュクリア**

```auto
# bin/console cache:clear
または
# rm -r var/cache/*

```

**composerによるアップデート実行**

```auto
# COMPOSER_MEMORY_LIMIT=-1 composer update

```

**アクセス権再設定**

```auto
# chown -R www-data:www-data pimcore_project
# chmod -R 7xx pimcore_project

```

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2021 年 7 月 28 日午前 7:30 UTC](https://forum.ficusonline.com/t/topic/218/8 "2021-07-28T07:30:37Z")

</div>

**pimcore-fpm** コンテナ内で **composer** により、 **demo** または **skeleton** バージョンをインストールする場合

**Demoバージョン**

> **[GitHub - pimcore/demo: The Official Pimcore Demo Package - You're new to...](https://github.com/pimcore/demo)**
>
> The Official Pimcore Demo Package - You're new to Pimcore? That's your entry point! 🤓

**Skeletonバージョン**

> **[GitHub - pimcore/skeleton: The Pimcore Skeleton - The right package to get...](https://github.com/pimcore/skeleton)**
>
> The Pimcore Skeleton - The right package to get your Pimcore project started from the ground up! 💪

データベースコンテナを `--mysql-host-socket` オプションで指定してインストール

```auto
# COMPOSER_MEMORY_LIMIT=-1 composer create-project pimcore/skeleton my-project
# cd ./my-project
# ./vendor/bin/pimcore-install --mysql-host-socket=Data_Base_Container_Name

```

### Maintenance Cron Job

[https://pimcore.com/docs/pimcore/current/Development\_Documentation/Getting\_Started/Installation.html#page\_5-Maintenance-Cron-Job](https://pimcore.com/docs/pimcore/current/Development_Documentation/Getting_Started/Installation.html#page_5-Maintenance-Cron-Job)

> <https://github.com/pimcore/pimcore/issues/5512>
>
> \# Bug Report
> \### Expected behavior
> Pimcore Maintenance Cronjob does work witho…ut issues.
> \### Actual behavior
> Pimcore Maintenance Cronjob does throw an exception:
> 
> \> ERROR \[pimcore\] Failed to update MaxMind GeoIP2, size is under about 1M
> 
> \### Reason
> The source for the geoip database (located at https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz ) is offline. The relevant code can be found here:
> https://github.com/pimcore/pimcore/blob/master/lib/Maintenance/Tasks/DownloadMaxMinDbTask.php#L42
> 
> Looks like Maxmind took this offline at 31-12-2019:
> https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/

```auto
$ sudo crontab -e
*/10 * * * * docker exec pimcore10-fpm /var/www/html/pimcore10/bin/console maintenance --excludedJobs=downloadmaxminddb

```

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2022 年 3 月 17 日午前 12:09 UTC](https://forum.ficusonline.com/t/topic/218/9 "2022-03-17T00:09:30Z")

</div>

### アップグレードノート

[https://pimcore.com/docs/pimcore/current/Development\_Documentation/Installation\_and\_Upgrade/Upgrade\_Notes/index.html](https://pimcore.com/docs/pimcore/current/Development_Documentation/Installation_and_Upgrade/Upgrade_Notes/index.html)

### `~10.5.10` 変更ファイル

**Configuration Environment**  
[https://pimcore.com/docs/pimcore/current/Development\_Documentation/Deployment/Configuration\_Environments.html](https://pimcore.com/docs/pimcore/current/Development_Documentation/Deployment/Configuration_Environments.html)

> <https://github.com/pimcore/pimcore/issues/10100>
>
> \### Improvement description
> 
> followup to https://github.com/pimcore/pimcore/pull…/9882
> 
> Right now, storage location can be defined via env-variables for each setting separately (e.g. \`PIMCORE\_WRITE\_TARGET\_IMAGE\_THUMBNAILS=settings-store\`). 
> It might be useful, to have an additional global configuration (e.g. \`PIMCORE\_WRITE\_TARGET=settings-store\`) which can be overwritten with the specific ones. 
> 
> Usecases: 
> \- Don't 'forget' a setting in the configuration (also consider settings coming from bundles)
> \- Make sure, all configurations are disabled, also when a new setting is added with newer versions
> \- Bottom line: configure the env-variable once and have it setup for all configs - no need to care about in future and eventually change deployment chain, also when updating to new versions or installing additional bundles later on

`.env`

```auto
......
......
MAILER_DSN=gmail+smtp://ficus.online:dfuecoiqgcbwjzox@default
PIMCORE_WRITE_TARGET_IMAGE_THUMBNAILS=settings-store
PIMCORE_WRITE_TARGET_CUSTOM_REPORTS=settings-store
PIMCORE_WRITE_TARGET_VIDEO_THUMBNAILS=settings-store
PIMCORE_WRITE_TARGET_DOCUMENT_TYPES=settings-store
PIMCORE_WRITE_TARGET_PREDEFINED_PROPERTIES=settings-store
PIMCORE_WRITE_TARGET_PREDEFINED_ASSET_METADATA=settings-store
PIMCORE_WRITE_TARGET_STATICROUTES=settings-store

```

`security.yaml`  
[https://github.com/pimcore/demo/blob/10.2/config/packages/security.yaml](https://github.com/pimcore/demo/blob/10.2/config/packages/security.yaml)

```auto
security:
    enable_authenticator_manager: true --->追加
.....
.....
# Pimcore admin form login // DO NOT CHANGE!
        pimcore_admin:
            anonymous: ~ --->削除
            pattern: ^/admin(/.*)?$
            # admin firewall is stateless as we open the admin
            # session on demand for non-blocking parallel requests
            stateless: true
            provider: pimcore_admin
.....
.....

```

`config.yaml`

```auto
.....
.....
pimcore:
.....
.....
# archive_treshold: '30'
# archive_alternative_database: ''

    templating_engine:
        twig:
          sandbox_security_policy:
            tags: ['if']
            filters: ['upper']
            functions: ['include', 'path', 'range']

#### Pimcore ADMIN
pimcore_admin:
    admin_csp_header:
        enabled: false
        exclude_paths:
            - '@^/admin/external_opcache@'
.....
.....

```

以下 `/var/config/extension.php` は次バージョンではディスコンで `/config/bandle.php` にバンドルが引き継がれます。

`/var/config/extension.php（ `bundle`と`areabricks` セクション削除可）`

```auto
<?php

return [
    "bundle" => [
        "Pimcore\\Bundle\\EcommerceFrameworkBundle\\PimcoreEcommerceFrameworkBundle" => FALSE,
        "CustomerManagementFrameworkBundle\\PimcoreCustomerManagementFrameworkBundle" => FALSE,
        "OutputDataConfigToolkitBundle\\OutputDataConfigToolkitBundle" => FALSE,
        "Web2PrintToolsBundle\\Web2PrintToolsBundle" => FALSE,
        "Pimcore\\Bundle\\DataHubBundle\\PimcoreDataHubBundle" => FALSE,
        "Pimcore\\Bundle\\ObjectMergerBundle\\ObjectMergerBundle" => TRUE,
        "Pimcore\\Bundle\\EcommerceFrameworkBundle\\PimcorePaymentProviderUnzerBundle" => FALSE
    ],
    "areabrick" => [

    ]
];

```

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2022 年 11 月 25 日午前 12:29 UTC](https://forum.ficusonline.com/t/topic/218/10 "2022-11-25T00:29:39Z")

</div>

## ドメイン変更

ドメイン変更する際の関連ファイル（データベースでの変更無し）

`/var/config/system.yml`

```auto
pimcore:
    general:
        domain: ficus.myvnc.com
        redirect_to_maindomain: true
        language: ja
......
......

```

`/config/services.yaml`

```auto
parameters:
......
......
    
    #this is necessary for CLI commands to get the base url, eg. sitemap dump
    router.request_context.host: ficus.myvnc.com
    router.request_context.scheme: https
......
......

```

Ver.11以降は、システム設定はデータベース : **`settings-store`** に保存されます。  
`config/config.yaml -> pimcore -> config_location -> system_settings`

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2023 年 6 月 18 日午前 2:53 UTC](https://forum.ficusonline.com/t/topic/218/11 "2023-06-18T02:53:06Z")

</div>

## Update to v10.6

v11へアップデートする前にv10.6へのアップデートを適用。

**PHPバージョン**

```auto
php -v
PHP 8.1.18 (cli) (built: Apr 14 2023 18:18:41) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.18, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.18, Copyright (c), by Zend Technologies

```

**MariaDBバージョン**

```auto
# mariadb -V
mariadb Ver 15.1 Distrib 10.11.4-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper

```

[https://github.com/pimcore/pimcore/blob/11.x/doc/23\_Installation\_and\_Upgrade/07\_Updating\_Pimcore/11\_Preparing\_for\_V11.md](https://github.com/pimcore/pimcore/blob/11.x/doc/23_Installation_and_Upgrade/07_Updating_Pimcore/11_Preparing_for_V11.md)

### PHPクラス返り値の指定

v11へ採用される **`Symfony6`** では、PHPの正規ルールであるクラスの返り値の型を指定しているため、従来のクラスにも同様のルールを適用します。この返り値の型を追加するスクリプトが以下`Symfony`のサイトで用意されています。

> **[Upgrading a Major Version (e.g. 6.4.0 to 7.0.0) (Symfony Docs)](https://symfony.com/doc/5.x/setup/upgrade_major.html)**
>
> Every two years, Symfony releases a new major version release (the first number changes). These releases are the trickiest to upgrade, as they are allowed to break backward compatibility. However, Sym…

```auto
# bin/console pimcore:cache:clear
# composer dump-autoload -o
# ./vendor/bin/patch-type-declarations

```

`composer.json`の編集：“pimcore/pimcore”: “^10.6”

```auto
{
  "name": "pimcore/demo",
  "type": "project",
  "description": "Demo Application for Pimcore 6",
  "license": "GPL-3.0-or-later",
  "config": {
    "optimize-autoloader": true,
    "sort-packages": true,
    "discard-changes": true,
    "process-timeout": 0,
    "allow-plugins": {
      "php-http/discovery": false
    }
  },
  "prefer-stable": true,
  "minimum-stability": "dev",
  "require": {
    "php-http/guzzle7-adapter": "^0.1.1",
    "php-http/httplug-bundle": "^1",
    "pimcore/pimcore": "^10.6",
    "symfony/google-mailer": "^5.3"
  },
  "conflict": {
  },
  "suggest": {
    "elasticsearch/elasticsearch": "Required for Elastic Search service"
  },
  "autoload": {
    "psr-4": {
      "App\\": "src/",
      "Pimcore\\Model\\DataObject\\": "var/classes/DataObject"
    }
  },
  "scripts": {
    "post-create-project-cmd": "Pimcore\\Composer::postCreateProject",
    "post-install-cmd": [
      "Pimcore\\Composer::postInstall",
      "@pimcore-scripts"
    ],
    "post-update-cmd": [
      "Pimcore\\Composer::postUpdate",
      "@pimcore-scripts",
      "Pimcore\\Composer::executeMigrationsUp",
      "@pimcore-scripts"
    ],
    "pimcore-scripts": [
      "Pimcore\\Composer::clearCache",
      "Pimcore\\Composer::installAssets"
    ]
  },
  "repositories": {
    "dev": {
      "type": "path",
      "url": "./dev/*/*",
      "options": {
        "symlink": true
      }
    }
  }
}

```

アップデート

```auto
# bin/console pimcore:cache:clear
# composer update
# chown -R www-data:www-data ./

```

---

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2023 年 7 月 13 日午前 1:11 UTC](https://forum.ficusonline.com/t/topic/218/13 "2023-07-13T01:11:57Z")

</div>

## Redis Cache

[https://pimcore.com/docs/platform/Pimcore/Development\_Tools\_and\_Details/Cache/#configuring-the-cache](https://pimcore.com/docs/platform/Pimcore/Development_Tools_and_Details/Cache/#configuring-the-cache)

`docker-compose.yaml`

```auto
services:
  redis:
    container_name: redis
    image: redis:alpine
    restart: unless-stopped
    command: [redis-server, --maxmemory, 128mb, --maxmemory-policy, volatile-lru, --save, '""']
    networks:
      proxy-tier:
        ipv4_address: xx.xx.xx.xx
        ipv6_address: xxxx.xxxx::xxxx

```

`config/config.yaml`

```auto
framework:
    cache:
        pools:
            pimcore.cache.pool:
                public: true
                tags: true
                default_lifetime: 31536000 # 1 year
                adapter: pimcore.cache.adapter.redis_tag_aware
                provider: 'redis://redis' # Redis DNS, see: https://symfony.com/doc/current/components/cache/adapters/redis_adapter.html#configure-the-connection

```
