All of the following commands should be run from the root AtoM installation directory - if you have followed our recommended installation instructions, then this is typically:
/usr/share/nginx/atom
If the commands won't run and you've confirmed you are in the right directory, try running them as the www-data user - this is the user to whom we assign all filesystem rights when installing and configuring AtoM. To do so, simply precede the commands below with sudo -u www-data.
Rebuild the nested set:
php symfony propel:build-nested-set
See: https://www.accesstomemory.org/docs/latest/admin-manual/maintenance/cli-tools/
Generate slugs
php symfony propel:generate-slugs
See: https://www.accesstomemory.org/docs/latest/admin-manual/maintenance/cli-tools/#generate-slugs
Clear the application cache
Restart PHP-FPM
This command depends on the version of PHP you have installed (which you can always check using php -version)
PHP 7.0: sudo systemctl restart php7.0-fpm
PHP 7.2: sudo systemctl restart php7.2-fpm
If you have memcached installed, it is good to clear that cache as well. This command should not have any ill effects if you don't have memcached installed, so you can always try it out:
sudo systemctl restart memcached
Repopulate the search index
php symfony search:populate
See: https://www.accesstomemory.org/docs/latest/admin-manual/maintenance/populate-search-index/
Note: If you have a lot of records, this task can take a long time to run, and will make records temporarily unavailable in the user interface as they are reindexed. Best to run this after business hours. However, you can also use some of the task options to reduce the time it takes by limiting how it runs - for example, using the --update option will not make existing records unavailable as the task progresses (it will progressively replace the index rather than deleting it first). The --exclude-types option can be used to target just certain entity types, rather than all of them, and the --slug option can be used just to target specific records, taking the slug as input. See the documentation for further details and options.
--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/dde988f0-31a2-4ebb-b775-67033ddde13an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/efb09ba4-d13e-4987-95e3-45269b900c27n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/7dd1d92b-c2b1-4564-8752-b4968654abc9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/3af7fa4d-4e81-4ca0-bb4c-21b563287fb9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/ffc92266-5473-486a-b1aa-9e580c596c52n%40googlegroups.com.