System Administration & Services Management¶
Environment variables¶
Instances come with preset environment variables, that you can list using:
env | grep 'APP'
# Example:
# APP_ENV=prod
# APP_INDEX_HOSTS=localhost:9200
# APP_DATABASE_PASSWORD=UjNRiyc9YgHcvVsACePXKofn
# APP_DATABASE_HOST=localhost
# APP_SECRET=6d40b1ed-6ce0-6ca7-f1c9-256c2241edc9
PIM Location¶
/home/akeneo/pim
Database access¶
Connect to the database by using mysql
, with no need to provide credentials. They are read from ~/.my.cnf.
$ mysql
Akeneo database dump¶
In order to dump the akeneo
database, one could run the command:
$ mysqldump akeneo_pim
Warning
Please add the option --no-tablespaces
to the mysqldump
command if you noticed such an error
mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
Privilege escalation¶
Note
akeneo is an unprivileged user, but you can use the aliases below to perform system operations.
Alias |
Argument |
Action |
---|---|---|
|
|
Show status or start/restart mysql daemon |
|
|
Show status or start/restart elasticsearch daemon |
|
|
Show status or start/restart php-fpm daemon (Command name can vary depending on your version of PHP) |
|
Clear PIM cache properly. Stops php-fpm and job consumers, deletes PIM cache folder, warms up PIM cache and restarts php-fpm and job consumers |
|
|
|
Show status, start/stop/restart or enable/disable job consumers. Refer to this page for more details |
Third-party Software Installation¶
Third-party packages can’t be installed, with the exceptions of PHP packages.
Found a typo or a hole in the documentation and feel like contributing?
Join us on Github!