1
1
.. _installation-ubuntu :
2
2
3
- ======================================
4
- Linux - Ubuntu 20 .04 LTS (Focal Fossa )
5
- ======================================
3
+ ==========================================
4
+ Linux - Ubuntu 24 .04 LTS (Noble Numbat )
5
+ ==========================================
6
6
7
7
Most of the configuration steps described in this document apply to any modern
8
8
Linux environment, however some of them will apply only to Ubuntu and likely to
@@ -11,7 +11,7 @@ development and testing using Ubuntu LTS releases, and cannot guarantee that
11
11
other versions, distributions, or operating systems will work as expected with
12
12
the following instructions.
13
13
14
- This document is based in `Ubuntu 20 .04 LTS (Focal Fossa ) `_. Once you have
14
+ This document is based in `Ubuntu 24 .04 LTS (Noble Numbat ) `_. Once you have
15
15
installed it, you should be able to follow the instructions described below.
16
16
In particular, we are going to use Ubuntu packages that can be found under the
17
17
`repositories `_ *main * and *universe *.
@@ -108,24 +108,20 @@ and install the public signing key used in their repository:
108
108
109
109
.. code-block :: bash
110
110
111
- wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
112
-
113
- .. IMPORTANT ::
114
-
115
- Don't miss the dash ( ``- `` ) at the end of the above command!
111
+ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
116
112
117
113
Now add their repository:
118
114
119
115
.. code-block :: bash
120
116
121
- echo " deb https://artifacts.elastic.co/packages/5 .x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5 .x.list
117
+ echo " deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/oss-6 .x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6 .x.list
122
118
123
119
Ready to be installed. Run:
124
120
125
121
.. code-block :: bash
126
122
127
123
sudo apt update
128
- sudo apt install elasticsearch
124
+ sudo apt install -y elasticsearch-oss
129
125
130
126
Start the service and configure it to start when the system is booted.
131
127
@@ -139,13 +135,14 @@ Start the service and configure it to start when the system is booted.
139
135
PHP
140
136
---
141
137
142
- Ubuntu 20 .04 bundles PHP 7.4 , which is much faster than older releases. The
143
- following command will install it along with the rest of PHP extensions
138
+ Ubuntu 24 .04 bundles PHP 8.3 , which is much faster than older releases.
139
+ The following command will install it along with the rest of PHP extensions
144
140
:ref: `required <installation-requirements >` by AtoM:
145
141
146
142
.. code-block :: bash
147
143
148
- sudo apt install php-common php7.4-common php7.4-cli php7.4-curl php7.4-json php7.4-ldap php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-mbstring php7.4-xsl php7.4-zip php-apcu php-apcu-bc
144
+ # For Ubuntu 24.04, running PHP 8.3
145
+ sudo apt install php-common php8.3-common php8.3-cli php8.3-curl php-json php8.3-ldap php8.3-mysql php8.3-opcache php8.3-readline php8.3-xml php8.3-mbstring php8.3-xsl php8.3-zip php-apcu
149
146
150
147
If you are using Memcached as cache engine, you will also need to install
151
148
`php-memcache `:
@@ -309,8 +306,13 @@ After downloading the code, you will need to compile the themes files:
309
306
Compile Bootstrap 5 Theme Files:
310
307
--------------------------------
311
308
309
+ .. note ::
310
+ When working with Bootstrap 5 themes, AtoM requires the latest LTS version of node.
311
+ Node v22 or above is required for AtoM 2.9+.
312
+
312
313
.. code-block :: bash
313
314
315
+ sudo apt install npm
314
316
sudo npm install
315
317
sudo npm run build
316
318
@@ -528,16 +530,16 @@ file :file:`/usr/lib/systemd/system/atom-worker.service`:
528
530
User=www-data
529
531
Group=www-data
530
532
WorkingDirectory=/usr/share/nginx/atom
531
- ExecStart=/usr/bin/php7.4 -d memory_limit=-1 -d error_reporting="E_ALL" symfony jobs:worker
533
+ ExecStart=/usr/bin/php8.3 -d memory_limit=-1 -d error_reporting="E_ALL" symfony jobs:worker
532
534
KillSignal=SIGTERM
533
535
Restart=on-failure
534
536
RestartSec=30
535
537
536
538
.. IMPORTANT ::
537
539
538
- If you are not using PHP 7.4 , be sure to update the `ExecStart ` filepath
539
- in the `[Service] ` section of the sample configuration block above!
540
- Currently it assumes PHP 7.4 is being used, and will not work for
540
+ If you are not using PHP 8.3 , be sure to update the `ExecStart ` filepath
541
+ in the `[Service] ` section of the sample configuration block above!
542
+ Currently it assumes PHP 8.3 is being used, and will not work for
541
543
installations using a different PHP version without modification.
542
544
543
545
Now reload systemd, enable and start the AtoM worker:
@@ -561,10 +563,10 @@ scales better than other solutions like FastCGI.
561
563
562
564
.. code-block :: bash
563
565
564
- sudo apt install php7.4 -fpm
566
+ sudo apt install php -fpm
565
567
566
568
Let's add a new PHP pool for AtoM by adding the following contents in a new
567
- file called :file: `/etc/php/7.4 /fpm/pool.d/atom.conf `:
569
+ file called :file: `/etc/php/8.3 /fpm/pool.d/atom.conf `:
568
570
569
571
.. code-block :: ini
570
572
@@ -575,7 +577,7 @@ file called :file:`/etc/php/7.4/fpm/pool.d/atom.conf`:
575
577
group = www-data
576
578
577
579
; Use UNIX sockets if Nginx and PHP-FPM are running in the same machine
578
- listen = /run/php7.4 -fpm.atom.sock
580
+ listen = /run/php -fpm.atom.sock
579
581
listen.owner = www-data
580
582
listen.group = www-data
581
583
listen.mode = 0600
@@ -630,23 +632,23 @@ The process manager has to be enabled and started:
630
632
631
633
.. code-block :: bash
632
634
633
- sudo systemctl enable php7.4 -fpm
634
- sudo systemctl start php7.4 -fpm
635
+ sudo systemctl enable php8.3 -fpm
636
+ sudo systemctl start php8.3 -fpm
635
637
636
638
If the service fails to start, make sure that the configuration file has been
637
639
has been pasted properly. You can also check the syntax by running:
638
640
639
641
.. code-block :: bash
640
642
641
- sudo php-fpm7.4 --test
643
+ sudo php-fpm8.3 --test
642
644
643
645
If you are not planning to use the default PHP pool (``www ``), feel free to
644
646
remove it:
645
647
646
648
.. code-block :: bash
647
649
648
- sudo rm /etc/php/7.4 /fpm/pool.d/www.conf
649
- sudo systemctl restart php7.4 -fpm
650
+ sudo rm /etc/php/8.3 /fpm/pool.d/www.conf
651
+ sudo systemctl restart php8.3 -fpm
650
652
651
653
.. _installation-ubuntu-serve-nginx :
652
654
@@ -704,7 +706,7 @@ contents in :file:`/etc/nginx/sites-available/atom`.
704
706
.. code-block :: nginx
705
707
706
708
upstream atom {
707
- server unix:/run/php7.4 -fpm.atom.sock;
709
+ server unix:/run/php -fpm.atom.sock;
708
710
}
709
711
710
712
server {
@@ -796,7 +798,7 @@ information on your first steps using AtoM.
796
798
:ref: `Back to top <installation-ubuntu >`
797
799
798
800
799
- .. _`Ubuntu 20 .04 LTS (Focal Fossa )` : http://releases.ubuntu.com/focal /
801
+ .. _`Ubuntu 24 .04 LTS (Noble Numbat )` : http://releases.ubuntu.com/noble /
800
802
.. _`repositories` : https://help.ubuntu.com/community/Repositories/Ubuntu
801
803
.. _`download section` : http://www.accesstomemory.org/download
802
804
.. _`public repository` : https://github.com/artefactual/atom
0 commit comments