Android and Desktop version work but not webapp

Hi all,

Nextcloud version: 11.0.2
Operating system and version: Centos 7
Server: Nginx
PHP version: 7.1

Can you reliably replicate it? (If so, please outline steps):
From a fresh Nextcloud installation 11.0.2 or 11.0.1, on your web browser go to login page of your nextcloud, login.

The issue you are facing:
After login, I’m back on the login page with this URL: /login?redirect_url=/apps/files/

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):
<?php
$CONFIG = array (
‘instanceid’ => ‘ocqwa9qw6hbx’,
‘passwordsalt’ => ‘password’,
‘secret’ => ‘Secret’,
‘trusted_domains’ =>
array (
0 => ‘cloud.domain.my’,
),
‘datadirectory’ => ‘/home/nextcloud’,
‘overwrite.cli.url’ => ‘https://cloud.domain.my’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘11.0.2.7’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘nextcloud’,
‘dbpassword’ => ‘password’,
‘logtimezone’ => ‘UTC’,
‘installed’ => true,
‘theme’ => ‘’,
‘loglevel’ => 0,
‘maintenance’ => false,
);

The output of your nginx log: nothing in error.log

What I don’t understand is that I can use the Android, Windows and Linux client without any issue, even the caldav. Only the web app does work as expected.

Hi,

Do you need more information to help me on this issue?

Hi @tetienne,

Yes more information would be helpful.
Can you first check if no browser plugin is blocking anything from your NC server and even try a different browser?
Can you make that you enter the correct URL manually with https://sub.yourdomain.you/ without login.php and so on (will be added automatically though).
After your login attempts, please post the nextcloud log and the web server access log.

Hi,

I finally succeed to made the webapp works. For history, here my solution for Centos 7 and PHP71 from IUS.

In /etc/php-fpm/www.conf, identify your pfm-user, mine was nginx. Look also for

php_value[session.save_path] = /var/lib/php/fpm/session
php_value[soap.wsdl_cache_dir] = /var/lib/php/fpm/wsdlcache

Give access to php-fpm to these folders: chown root:nginx -R /var/lib/php/fpm

Restart nginx and php-fpm.

Thx @Schmu.

1 Like