@@ -12,11 +12,11 @@ table below to check what PHP version you need for your version of Pelican.
12
12
13
13
| Panel Version | PHP Version |
14
14
| ---------------| ---------------|
15
- | 1.0.0+ | 8.2, 8.3 |
15
+ | 1.0.0+ | 8.2, 8.3, 8.4 |
16
16
17
17
## Install PHP
18
18
19
- In order to install PHP 8.3 , you will need to run the following commands. Please keep in mind different operating systems
19
+ In order to install PHP 8.4 , you will need to run the following commands. Please keep in mind different operating systems
20
20
may have slightly different requirements for how this commands are formatted.
21
21
22
22
``` bash
@@ -27,22 +27,22 @@ sudo apt -y update
27
27
# Optional: Remove old PHP versions
28
28
sudo apt -y purge php*
29
29
30
- # Install PHP 8.3
31
- sudo apt -y install php8.3 php8.3 -{gd,mysql,mbstring,bcmath,xml,curl,zip,intl,sqlite3,fpm}
30
+ # Install PHP 8.4
31
+ sudo apt -y install php8.4 php8.4 -{gd,mysql,mbstring,bcmath,xml,curl,zip,intl,sqlite3,fpm}
32
32
```
33
33
34
34
## Webserver Configuration
35
35
36
36
<Tabs >
37
37
<TabItem value = ' NGINX' >
38
- After upgrading to PHP 8.3 , you will most likely need to update your NGINX configuration. Your configuration file
38
+ After upgrading to PHP 8.4 , you will most likely need to update your NGINX configuration. Your configuration file
39
39
is most likely called ` pelican.conf ` and located in the ` /etc/nginx/sites-available/ ` directory, or if on CentOS,
40
40
` /etc/nginx/conf.d/ ` .
41
41
42
42
Make sure to update the path in the command below to reflect the actual location of your configuration file.
43
43
44
44
``` bash
45
- sed -i -e ' s/php[7|8].[0-9]-fpm.sock/php8.3 -fpm.sock/' /etc/nginx/sites-available/pelican.conf
45
+ sed -i -e ' s/php[7|8].[0-9]-fpm.sock/php8.4 -fpm.sock/' /etc/nginx/sites-available/pelican.conf
46
46
```
47
47
48
48
Once you have edited the file run the command below to reload NGINX and apply your changes.
@@ -52,21 +52,21 @@ sudo apt -y install php8.3 php8.3-{gd,mysql,mbstring,bcmath,xml,curl,zip,intl,sq
52
52
```
53
53
</TabItem >
54
54
<TabItem value = ' Apache' >
55
- Run the commands below to disable all previous PHP versions and enable PHP 8.3 when serving requests.
55
+ Run the commands below to disable all previous PHP versions and enable PHP 8.4 when serving requests.
56
56
57
57
``` bash
58
58
a2dismod php*
59
- a2enmod php8.3
59
+ a2enmod php8.4
60
60
```
61
61
</TabItem >
62
62
<TabItem value = ' Caddy' >
63
- After upgrading to PHP 8.3 , you will most likely need to update your Caddy configuration. Your configuration file
63
+ After upgrading to PHP 8.4 , you will most likely need to update your Caddy configuration. Your configuration file
64
64
is most likely called ` Caddyfile ` and located in the ` /etc/caddy/ ` directory.
65
65
66
66
Make sure to update the path in the command below to reflect the actual location of your configuration file.
67
67
68
68
``` bash
69
- sed -i -e ' s/php[7|8].[0-9]-fpm.sock/php8.3 -fpm.sock/' /etc/caddy/Caddyfile
69
+ sed -i -e ' s/php[7|8].[0-9]-fpm.sock/php8.4 -fpm.sock/' /etc/caddy/Caddyfile
70
70
```
71
71
72
72
Once you have edited the file run the command below to restart Caddy and apply your changes.
0 commit comments