Installing the App Store
Requirements
- Exponential 6.0.15 or later (the cluster hosts of
settings/cluster.ini, the deploy command). An older kernel works on one node, without the deploy step. - PHP 7.4 or later with curl and json.
- For installs with Composer: ezupdate 1.1.30 or later (snapshots, local changes).
- For installs with git: git_manager 2.0.31 or later (
GitManagerWorkingCopy). - Optional: expqueue, so an install runs as a job of the queue.
Steps
composer require se7enxweb/exp_app_store- Switch it on: Setup > Extensions, or
ActiveExtensions[]=exp_app_storeinsettings/override/site.ini.append.php. php bin/php/ezpgenerateautoloads.php --extensionphp bin/php/ezcache.php --clear-all(the tab, the module and the stylesheet are new to the caches; the packer bundlesstylesheets/modules/appstore.csswith the admin's stylesheets).- Roles: give the Administrator role
appstore/readandappstore/install.appstore/readalone shows the store and the library without the install buttons. - The first refresh, as the site's user:
php extension/exp_app_store/bin/php/appstore.php refresh.
The refresh timer (systemd, no cron)
The answers of the sources are cached (appstore.ini [Cache] TTL[]). A page asks a source only when its cached
answer has expired; the timer asks again every six hours, so the pages never wait.
cp extension/exp_app_store/share/systemd/[email protected] /etc/systemd/system/
cp extension/exp_app_store/share/systemd/[email protected] /etc/systemd/system/
I=$(systemd-escape --path "$PWD")
systemctl edit exp-appstore-refresh@$I.service # [Service] User=<site user> Environment=PHP=/opt/plesk/php/8.5/bin/php
systemctl daemon-reload
systemctl enable --now exp-appstore-refresh@$I.timer
systemctl start exp-appstore-refresh@$I.service # once now
journalctl -u exp-appstore-refresh@$I.service -n 20Nodes
An install runs on every host of settings/cluster.ini ([ClusterSettings] HostList[], one [Host_<name>] block
each), the hosts exp:cluster:run and exp:cluster:deploy use. Check them with ./console exp:cluster:hosts --check
and php extension/exp_app_store/bin/php/appstore.php nodes. Without the file the App Store installs on this
installation only. See INSTALLING_APPS.md.