Skip to content

Commit 4a52364

Browse files
authored
Add php 8.4 (#122)
* Update getting-started.mdx * Update webserver-config.mdx * Update update.mdx * Update php-upgrade.mdx
1 parent acc1832 commit 4a52364

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

docs/guides/php-upgrade.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ table below to check what PHP version you need for your version of Pelican.
1212

1313
| Panel Version | PHP Version |
1414
|---------------|---------------|
15-
| 1.0.0+ | 8.2, 8.3 |
15+
| 1.0.0+ | 8.2, 8.3, 8.4 |
1616

1717
## Install PHP
1818

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
2020
may have slightly different requirements for how this commands are formatted.
2121

2222
```bash
@@ -27,22 +27,22 @@ sudo apt -y update
2727
# Optional: Remove old PHP versions
2828
sudo apt -y purge php*
2929

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}
3232
```
3333

3434
## Webserver Configuration
3535

3636
<Tabs>
3737
<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
3939
is most likely called `pelican.conf` and located in the `/etc/nginx/sites-available/` directory, or if on CentOS,
4040
`/etc/nginx/conf.d/`.
4141

4242
Make sure to update the path in the command below to reflect the actual location of your configuration file.
4343

4444
``` 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
4646
```
4747

4848
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
5252
```
5353
</TabItem>
5454
<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.
5656

5757
``` bash
5858
a2dismod php*
59-
a2enmod php8.3
59+
a2enmod php8.4
6060
```
6161
</TabItem>
6262
<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
6464
is most likely called `Caddyfile` and located in the `/etc/caddy/` directory.
6565

6666
Make sure to update the path in the command below to reflect the actual location of your configuration file.
6767

6868
``` 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
7070
```
7171

7272
Once you have edited the file run the command below to restart Caddy and apply your changes.

docs/panel/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Ubuntu 20.04 & Debian 11 do not meet this requirement.
4040

4141
### Dependencies
4242

43-
For the Panel you need to install **PHP `8.3` (recommended) or `8.2`**, with the following **extensions**:
43+
For the Panel you need to install **PHP `8.4` (recommended), `8.3` or `8.2`**, with the following **extensions**:
4444
`gd`, `mysql`, `mbstring`, `bcmath`, `xml`, `curl`, `zip`, `intl`, `sqlite3` and `fpm`.
4545

4646
You will also need a Webserver. Currently, **Apache, NGINX or Caddy** are supported.

docs/panel/update.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ is required for it to run.
1414
Please see the chart below for how these versions line up. In
1515
most cases your base Wings version should match that of your Panel.
1616

17-
| Panel Version | Wings Version | Supported | PHP Version |
18-
| :-----------: | :------------: | :-------: | :----------: |
19-
| 1.x | 1.x | ✅︎ | 8.2/ 8.3 |
17+
| Panel Version | Wings Version | Supported | PHP Version |
18+
| :-----------: | :------------: | :-------: | :-----------: |
19+
| 1.x | 1.x | ✅︎ | 8.2/ 8.3/ 8.4 |
2020

2121
### Enter Maintenance Mode
2222

docs/panel/webserver-config.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import TabItem from '@theme/TabItem';
1212
<Tabs>
1313
<TabItem value="nginx" label="Nginx">
1414
<Admonition type="warning" title="php & fpm">
15-
If you're **not** using php8.3, you will need to edit the config file to point to the proper php fpm socket.
15+
If you're **not** using php8.4, you will need to edit the config file to point to the proper php fpm socket.
1616

1717
The line is highlighted below.
1818
</Admonition>
@@ -75,7 +75,7 @@ import TabItem from '@theme/TabItem';
7575
7676
location ~ \.php$ {
7777
fastcgi_split_path_info ^(.+\.php)(/.+)$;
78-
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
78+
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
7979
fastcgi_index index.php;
8080
include fastcgi_params;
8181
fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
@@ -125,7 +125,7 @@ import TabItem from '@theme/TabItem';
125125
126126
location ~ \.php$ {
127127
fastcgi_split_path_info ^(.+\.php)(/.+)$;
128-
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
128+
fastcgi_pass unix:/run/php/php8.4-fpm.sock;
129129
fastcgi_index index.php;
130130
include fastcgi_params;
131131
fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
@@ -230,15 +230,15 @@ import TabItem from '@theme/TabItem';
230230
Once you've created the file above, simply run the commands below.
231231

232232
<Admonition type="warning" title="php & fpm">
233-
If you're **not** using php8.3, you will need to edit the command to point to enable the correct mod.
233+
If you're **not** using php8.4, you will need to edit the command to point to enable the correct mod.
234234

235235
The line is highlighted below.
236236
</Admonition>
237237

238238
```sh {3}
239239
sudo a2ensite pelican.conf
240240
sudo a2enmod rewrite
241-
sudo a2enmod php8.3
241+
sudo a2enmod php8.4
242242
```
243243

244244
#### You need to restart apache to load the new config file.
@@ -250,7 +250,7 @@ import TabItem from '@theme/TabItem';
250250
</TabItem>
251251
<TabItem value="caddy" label="Caddy">
252252
<Admonition type="warning" title="php & fpm">
253-
If you're **not** using php8.3, you will need to edit the config file to point to the proper php fpm socket.
253+
If you're **not** using php8.4, you will need to edit the config file to point to the proper php fpm socket.
254254

255255
The line is highlighted below.
256256
</Admonition>
@@ -281,7 +281,7 @@ import TabItem from '@theme/TabItem';
281281

282282
file_server
283283

284-
php_fastcgi unix//run/php/php8.3-fpm.sock {
284+
php_fastcgi unix//run/php/php8.4-fpm.sock {
285285
root /var/www/pelican/public
286286
index index.php
287287

@@ -334,7 +334,7 @@ import TabItem from '@theme/TabItem';
334334

335335
file_server
336336

337-
php_fastcgi unix//run/php/php8.3-fpm.sock {
337+
php_fastcgi unix//run/php/php8.4-fpm.sock {
338338
root /var/www/pelican/public
339339
index index.php
340340

0 commit comments

Comments
 (0)