Skip to content

Commit ebf4eea

Browse files
authored
Merge pull request #108 from ByteInternet/physical-link-to-v6
2 parents 0e5cae8 + 15ada01 commit ebf4eea

File tree

1 file changed

+24
-29
lines changed

1 file changed

+24
-29
lines changed

docs/ecommerce-applications/akeneo/how-to-install-akeneo-6-on-hypernode.md

Lines changed: 24 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ redirect_from:
1212

1313
# How to Install Akeneo 6 on Hypernode
1414

15-
Akeneo 6 preferably requires a Hypernode Pelican L, Falcon M, Eagle M hosting plan or larger. You can either choose to install it on a seperate Hypernode instance or on the same Hypernode as your Magento or Shopware installation. If you choose the latter you have to make sure that you have enough resources (disk space, memory and CPU) left. Furthermore you need to make sure that you are already using **MySQL 8.0, PHP 8.09 and Elasticsearch 7.x**, so it won’t affect your shop negatively. Installing Akeneo version 6.x may take up to 15 minutes.
15+
Akeneo 6 preferably requires a Hypernode Pelican L, Falcon M, Eagle M hosting plan or larger. You can either choose to install it on a seperate Hypernode instance or on the same Hypernode as your Magento or Shopware installation. If you choose the latter you have to make sure that you have enough resources (disk space, memory and CPU) left. Furthermore you need to make sure that you are already using **MySQL 8.0, PHP 8.0 and Elasticsearch 7.x**, so it won’t affect your shop negatively. Installing Akeneo version 6.x may take up to 15 minutes.
1616

1717
## Enable managed_vhosts
1818

@@ -67,7 +67,7 @@ hypernode-systemctl settings mysql_version 8.0
6767

6868
## Upgrade Your PHP Version to 8.0
6969

70-
Before installing Akeneo, make sure your [PHP version](../../hypernode-platform/php/supported-php-versions-and-how-to-change-them-on-hypernode.md#changing-the-php-version-you-use-on-hypernode) is changed to `PHP 7.4`.
70+
Before installing Akeneo, make sure your [PHP version](../../hypernode-platform/php/supported-php-versions-and-how-to-change-them-on-hypernode.md#changing-the-php-version-you-use-on-hypernode) is changed to `PHP 8.0`.
7171

7272
```bash
7373
hypernode-systemctl settings php_version 8.0
@@ -119,10 +119,7 @@ source ~/.profile
119119
### Download Akeneo 6
120120

121121
```bash
122-
mkdir ~/akeneo
123-
cd ~/akeneo
124-
COMPOSER_MEMORY_LIMIT=-1 composer2 create-project akeneo/pim-community-standard
125-
122+
composer2 create-project akeneo/pim-community-standard:"^6.0" akeneo
126123
```
127124

128125
### Create a Database
@@ -134,22 +131,21 @@ mysql -e "create database akeneo_pim;"
134131
### Composer update
135132

136133
```bash
137-
cd ~/akeneo/pim-community-standard
138-
rm composer.lock
134+
cd ~/akeneo
139135
composer2 update
140136
```
141137

142138
### Configure Your .env File
143139

144-
Edit the values of your MySQL user, password, host and Elasticsearch host in `/data/web/akeneo/pim-community-standard.env`
140+
Edit the values of your MySQL user, password, host and Elasticsearch host in `/data/web/akeneo/.env`
145141

146142
```bash
147-
sed -i "s/APP_DATABASE_PASSWORD=akeneo_pim/APP_DATABASE_PASSWORD=$(cat ~/.my.cnf | grep password | awk '{print$NF}')/" /data/web/akeneo/pim-community-standard/.env
148-
sed -i "s/APP_DATABASE_USER=akeneo_pim/APP_DATABASE_USER=$(cat ~/.my.cnf | grep user | awk '{print$NF}')/" /data/web/akeneo/pim-community-standard/.env
149-
sed -i "s/APP_DATABASE_HOST=mysql/APP_DATABASE_HOST=mysqlmaster/" /data/web/akeneo/pim-community-standard/.env
150-
sed -i "s/APP_INDEX_HOSTS=elasticsearch:9200/APP_INDEX_HOSTS=localhost:9200/" /data/web/akeneo/pim-community-standard/.env
143+
sed -i "s/APP_DATABASE_PASSWORD=akeneo_pim/APP_DATABASE_PASSWORD=$(cat ~/.my.cnf | grep password | awk '{print$NF}')/" /data/web/akeneo/.env
144+
sed -i "s/APP_DATABASE_USER=akeneo_pim/APP_DATABASE_USER=$(cat ~/.my.cnf | grep user | awk '{print$NF}')/" /data/web/akeneo/.env
145+
sed -i "s/APP_DATABASE_HOST=mysql/APP_DATABASE_HOST=mysqlmaster/" /data/web/akeneo/.env
146+
sed -i "s/APP_INDEX_HOSTS=elasticsearch:9200/APP_INDEX_HOSTS=localhost:9200/" /data/web/akeneo/.env
151147

152-
cp /data/web/akeneo/pim-community-standard/.env /data/web/akeneo/pim-community-standard/.env.local
148+
cp /data/web/akeneo/.env /data/web/akeneo/.env.local
153149
```
154150

155151
### Launch Akeneo 6
@@ -158,18 +154,18 @@ cp /data/web/akeneo/pim-community-standard/.env /data/web/akeneo/pim-community-s
158154
NO_DOCKER=true make prod
159155
```
160156

161-
### Create an Administrator User
162-
163-
Fill in the form with a Username, Password, First name, Last name, Email and local code.
157+
### Create a Symlink
164158

165159
```bash
166-
bin/console pim:user:create
160+
ln -s /data/web/akeneo/public /data/web/akeneo_public
167161
```
168162

169-
### Create a Symlink
163+
### Create an Administrator User
164+
165+
Fill in the form with a Username, Password, First name, Last name, Email and local code.
170166

171167
```bash
172-
ln -s /data/web/akeneo/pim-community-standard/public /data/web/akeneo_public
168+
bin/console pim:user:create
173169
```
174170

175171
## Setting up the job queue daemon
@@ -184,7 +180,6 @@ Before we start using Supervisor we first need to enable it on the Hypernode.
184180

185181
```bash
186182
hypernode-systemctl settings supervisor_enabled True
187-
188183
```
189184

190185
#### Create a configuration file for Supervisor
@@ -193,7 +188,7 @@ Create a file in the configuration directory of supervisor: ~/supervisor/akeneod
193188

194189
```ini
195190
[program:akeneo_queue_daemon]
196-
command=php /data/web/akeneo/pim-community-standard/bin/console messenger:consume ui_job import_export_job data_maintenance_job --env=prod
191+
command=php /data/web/akeneo/bin/console messenger:consume ui_job import_export_job data_maintenance_job --env=prod
197192
autostart=false
198193
autorestart=true
199194
stderr_logfile=/data/web/akeneo_daemon.err.log
@@ -219,11 +214,11 @@ supervisorctl start akeneo_queue_daemon
219214
Configure your crons by adding these scripts to your crontab file as recommended by Akeneo:
220215

221216
```bash
222-
30 1 * * * php /data/web/akeneo/pim-community-standard/bin/console pim:versioning:refresh
223-
30 2 * * * php /data/web/akeneo/pim-community-standard/bin/console pim:versioning:purge –more-than-days 90
224-
1 * * * * php /data/web/akeneo/pim-community-standard/bin/console akeneo:connectivity-audit:update-data
225-
20 0 1 * * php /data/web/akeneo/pim-community-standard/bin/console akeneo:batch:purge-job-execution
226-
0 1 * * * php /data/web/akeneo/pim-community-standard/bin/console pim:asset:send-expiration-notification
227-
30 4 * * * php /data/web/akeneo/pim-community-standard/bin/console pim:volume:aggregate
228-
* * * * * php /data/web/akeneo/pim-community-standard/bin/console akeneo:batch:job-queue-consumer-daemon
217+
30 1 * * * php /data/web/akeneo/bin/console pim:versioning:refresh
218+
30 2 * * * php /data/web/akeneo/bin/console pim:versioning:purge –more-than-days 90
219+
1 * * * * php /data/web/akeneo/bin/console akeneo:connectivity-audit:update-data
220+
20 0 1 * * php /data/web/akeneo/bin/console akeneo:batch:purge-job-execution
221+
0 1 * * * php /data/web/akeneo/bin/console pim:asset:send-expiration-notification
222+
30 4 * * * php /data/web/akeneo/bin/console pim:volume:aggregate
223+
* * * * * php /data/web/akeneo/bin/console akeneo:batch:job-queue-consumer-daemon
229224
```

0 commit comments

Comments
 (0)