Support intro
Nextcloud stopped running when I changed php configuration.
Under Archlinux, I used to run Nextcloud with PHP7.3/Apache, simply with
php7_module libphp7.so and AddHandler php7-script .php. However, after
the latest update, I have got PHP7.4 instead of 7.3, and Nextcloud not being compatible
with PHP7.4, I decided to use PHP7.2 that I run parallel using fpm
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php72-fpm/php-fpm.sock|fcgi://localhost/"
</FilesMatch>
But this leads to
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Nextcloud version (eg, 12.0.2): $OC_Version = array(17,0,1,1)
Operating system and version (eg, Ubuntu 17.04): Archlinux
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.41
PHP version (eg, 7.1): 7.2.17
The issue you are facing:
Trying to log in leads to an internal server error. Clients also get internal server error
requesting status.php
Is this the first time you’ve seen this error? (Y/N):
Yes, but this is the first time I’ve run nextcloud with this configuration.
Steps to replicate it:
- Install and run nextcloud with libphp7.so
- stop the http server
- change the configuration of php to use fpm
- restart the http server
The output of your Nextcloud log in Admin > Logging:
I can't log in to Nextcloud, so I can't possibly get the output
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
...
'datadirectory' => '/mnt/archive/nextcloud-data',
'overwrite.cli.url' => 'http://stone.local/nextcloud',
'dbtype' => 'mysql',
'version' => '17.0.1.1',
'installed' => true,
'maintenance' => false,
'simpleSignUpLink.shown' => false,
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'theme' => '',
'datadirectory' => '/mnt/archive/nextcloud-data',
'overwrite.cli.url' => 'http://stone.local/nextcloud',
'dbtype' => 'mysql',
'version' => '17.0.1.1',
'installed' => true,
'maintenance' => false,
'simpleSignUpLink.shown' => false,
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbuser' => '.......',
'dbpassword' => ........',
'theme' => '',
'loglevel' => 0,
'defaultapp' => 'apporder',
'memcache.local' => '\\OC\\Memcache\\APCu',
'app_install_overwrite' =>
array (
0 => 'admin_notifications',
1 => 'piwik',
2 => 'tasks',
3 => 'mindmaps',
4 => 'spgverein',
5 => 'documents',
6 => 'spreed',
7 => 'event_update_notification',
8 => 'dropit',
9 => 'ownpad',
10 => 'polls',
11 => 'dashboard',
12 => 'theming_customcss',
13 => 'apporder',
),
'has_rebuilt_cache' => true,
);
The output of your Apache/nginx/system log in /var/log/____
:
``
In ettor log
`[Sat Nov 30 21:41:09.562798 2019] [proxy_fcgi:error] [pid 2581] [client 192.168.1.1:52472] AH01071: Got error ‘Primary script unknown\n’
access log has full of 500 error.