@@ -10,13 +10,13 @@ import TabItem from '@theme/TabItem';
1010This documentation includes instructions for upgrading your system to the latest version of PHP. Please reference the
1111table below to check what PHP version you need for your version of Pelican.
1212
13- | Panel Version | PHP Version |
14- | ---------------| ---------------|
15- | 1.0.0+ | 8.2, 8.3, 8.4 |
13+ | Panel Version | PHP Version |
14+ | ---------------| -------------------- |
15+ | 1.0.0+ | 8.2, 8.3, 8.4, 8.5 |
1616
1717## Install PHP
1818
19- In order to install PHP 8.4 , you will need to run the following commands. Please keep in mind different operating systems
19+ In order to install PHP 8.5 , you will need to run the following commands. Please keep in mind different operating systems
2020may 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
2828sudo apt -y purge php*
2929
30- # Install PHP 8.4
31- sudo apt -y install php8.4 php8.4 -{gd,mysql,mbstring,bcmath,xml,curl,zip,intl,sqlite3,fpm}
30+ # Install PHP 8.5
31+ sudo apt -y install php8.5 php8.5 -{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.4 , you will most likely need to update your NGINX configuration. Your configuration file
38+ After upgrading to PHP 8.5 , 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.4 -fpm.sock/' /etc/nginx/sites-available/pelican.conf
45+ sed -i -e ' s/php[7|8].[0-9]-fpm.sock/php8.5 -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.4 php8.4-{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.4 when serving requests.
55+ Run the commands below to disable all previous PHP versions and enable PHP 8.5 when serving requests.
5656
5757 ``` bash
5858 a2dismod php*
59- a2enmod php8.4
59+ a2enmod php8.5
6060 ```
6161 </TabItem >
6262 <TabItem value = ' Caddy' >
63- After upgrading to PHP 8.4 , you will most likely need to update your Caddy configuration. Your configuration file
63+ After upgrading to PHP 8.5 , 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.4 -fpm.sock/' /etc/caddy/Caddyfile
69+ sed -i -e ' s/php[7|8].[0-9]-fpm.sock/php8.5 -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.
0 commit comments