Roundcube Community Forum

 

[Solved ] :Upgrade help - PHP ?

Started by chewiesw, July 25, 2023, 10:35:03 AM

Previous topic - Next topic

chewiesw

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?

Dmitry42

   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;
    }

Dmitry42

check
/etc/php/7.4/fpm/pool.d/www.conf


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

chewiesw

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.