Author Topic: [Solved ] :Upgrade help - PHP ?  (Read 5990 times)

Offline chewiesw

  • Newbie
  • *
  • Posts: 5
[Solved ] :Upgrade help - PHP ?
« on: July 25, 2023, 10:35:03 AM »
I am trying to upgrade from 1.4 (working) to 1.6.2. I am aware that I need to upgrade my PHP version before I upgrade roundcube.

Raspberry OS – Buster
NGINX


chew@mail:~ $ php -v
PHP 7.3.31-1~deb10u4 (cli) (built: Jun 19 2023 19:10:11) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.31, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.31-1~deb10u4, Copyright (c) 1999-2018, by Zend Technologies


Roundcube/installer
Checking PHP version
Version:  OK(PHP 7.0.33-0+deb9u12 detected)

NGINX
location ~ \.php$ {
   try_files $uri =404;
    fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;

I have downloaded php7.3-fpm and it is running. When I change the nginx fastcgi to :    fastcgi_pass unix:/run/php/php7.3-fpm.sock;

I get a HTTP 500 error when I open the roundcube URL.

What have I missed or what am doing wrong?
« Last Edit: July 26, 2023, 04:34:43 AM by chewiesw »

Offline Dmitry42

  • Full Member
  • ***
  • Posts: 232
Re: Upgrade help - PHP ?
« Reply #1 on: July 25, 2023, 08:36:30 PM »
   location ~ \.php(?:$|/) {
        try_files $uri = 404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        fastcgi_param HTTPS on;
        fastcgi_param modHeadersAvailable true;
        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
        fastcgi_intercept_errors on;
        fastcgi_buffers 4 256k;
        fastcgi_busy_buffers_size 256k;
   fastcgi_read_timeout 180s;
    }

Offline Dmitry42

  • Full Member
  • ***
  • Posts: 232
Re: Upgrade help - PHP ?
« Reply #2 on: July 25, 2023, 08:44:42 PM »
check
/etc/php/7.4/fpm/pool.d/www.conf


Quote
user = www-data
group = www-data
listen = /run/php/php7.4-fpm.sock

Offline chewiesw

  • Newbie
  • *
  • Posts: 5
Re: Solved :Upgrade help - PHP ?
« Reply #3 on: July 26, 2023, 04:33:32 AM »
Solved. I re-installed php 7.3 fpm and all of it modules, changed my nginx config and it worked. No HTTTP 500 error.

I must have missed a module the first time.