Internal Server Error after fresh install

Hi all,
I just tried to install nextcloud via the community installation script and ran into “Internal Server Error” error after logging in.
After some testing i tried to log in with an incorrect password and it seems it is connected to the database (mariadb) just fine.

I’ve got nextcloud install on apache on my debain server.

Things i’ve tried since getting the error:

  • chown folder to www-data:www-data recursivly after install
  • Wiping everything and running the setup php script again
  • Logging in with a user that doesn’t exist to test db connection (db connected ok)
  • adding the below from the sample config to the regular config.php file:
'openssl' => [
        'config' => '/absolute/location/of/openssl.cnf',
],

this was the error on the page

Internal Server Error
The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details
Remote Address: HOMEIP
Request ID: ZxoBbezbkNFOcOU39PcWsgAAAAM

below is my virtual server config file

<VirtualHost *:80>
        ServerName filemanager.redacted.com.au
        DocumentRoot /mnt/drives/big/web_servers/filemanager

<Directory /mnt/drives/big/web_servers/filemanager>
        Options Indexes MultiViews FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
ErrorLog /var/log/apache2/filemanager-error.log
CustomLog /var/log/apache2/filemanager-access.log combined

RewriteEngine on
RewriteCond %{SERVER_NAME} =filemanager.redacted.com.au
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

Steps to reproduce

  1. Installing via the community installation script
  2. Try to log in after setup

Expected behavior

the dashboard to load

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "filemanager.redacted.com.au"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.1.2",
        "overwrite.cli.url": "https:\/\/filemanager.redaced.com.au",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true
    }
}

List of activated Apps

Enabled:

  • activity: 3.0.0
  • app_api: 4.0.0
  • bruteforcesettings: 3.0.0
  • circles: 30.0.0-dev
  • cloud_federation_api: 1.13.0
  • comments: 1.20.1
  • contactsinteraction: 1.11.0
  • dashboard: 7.10.0
  • dav: 1.31.1
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_downloadlimit: 3.0.0
  • files_pdfviewer: 3.0.0
  • files_reminders: 1.3.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • firstrunwizard: 3.0.0
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • nextcloud_announcements: 2.0.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • password_policy: 2.0.0
  • photos: 3.0.2
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • recommendations: 3.0.0
  • related_resources: 1.5.0
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • support: 2.0.0
  • survey_client: 2.0.0
  • systemtags: 1.20.0
  • text: 4.1.0
  • theming: 2.5.0
  • twofactor_backupcodes: 1.19.0
  • updatenotification: 1.20.0
  • user_status: 1.10.0
  • viewer: 3.0.0
  • weather_status: 1.10.0
  • webhook_listeners: 1.1.0-dev
  • workflowengine: 2.12.0
    Disabled:
  • admin_audit: 1.20.0
  • encryption: 2.18.0
  • files_external: 1.22.0
  • suspicious_login: 8.0.0
  • twofactor_nextcloud_notification: 4.0.0
  • twofactor_totp: 12.0.0-dev
  • user_ldap: 1.21.0

Nextcloud Signing status

cant log in :frowning:

Nextcloud Logs

{"reqId":"Zxn_zx9RSt0zKI36qxicXwAAAAo","level":2,"time":"2024-10-24T08:05:35+00:00","remoteAddr":"HOMEIP","user":"--","app":"no app in context","method":"POST","url":"/index.php/login","message":"Login failed: a (Remote IP: HOMEIP)","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36","version":"30.0.1.2","data":[]}
{"reqId":"ZxoBbezbkNFOcOU39PcWsgAAAAM","level":3,"time":"2024-10-24T08:12:30+00:00","remoteAddr":"HOMEIP","user":"user","app":"no app in context","method":"POST","url":"/index.php/login","message":"Something is wrong with your openssl setup: error:FFFFFFFF80000002:system library::No such file or directory, error:10000080:BIO routines::no such file, error:07000072:configuration file routines::no such file, error:FFFFFFFF80000002:system library::No such file or directory, error:10000080:BIO routines::no such file, error:07000072:configuration file routines::no such file","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36","version":"30.0.1.2","data":[]}
{"reqId":"ZxoBbezbkNFOcOU39PcWsgAAAAM","level":3,"time":"2024-10-24T08:12:30+00:00","remoteAddr":"HOMEIP","user":"user","app":"index","method":"POST","url":"/index.php/login","message":"OpenSSL reported a problem","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36","version":"30.0.1.2","exception":{"Exception":"RuntimeException","Message":"OpenSSL reported a problem","Code":0,"Trace":[{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Token/PublicKeyTokenProvider.php","line":106,"function":"newToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Token/Manager.php","line":53,"function":"generateToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/User/Session.php","line":650,"function":"generateToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/mnt/drives/big/web_servers/filemanager/lib/public/AppFramework/Db/TTransactional.php","line":45,"function":"OC\\User\\{closure}","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/User/Session.php","line":648,"function":"atomic","class":"OC\\User\\Session","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/CreateSessionTokenCommand.php","line":48,"function":"createSessionToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/ALoginCommand.php","line":22,"function":"process","class":"OC\\Authentication\\Login\\CreateSessionTokenCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/CompleteLoginCommand.php","line":30,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/ALoginCommand.php","line":22,"function":"process","class":"OC\\Authentication\\Login\\CompleteLoginCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/LoggedInCheckCommand.php","line":41,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/ALoginCommand.php","line":22,"function":"process","class":"OC\\Authentication\\Login\\LoggedInCheckCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/EmailLoginCommand.php","line":51,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/ALoginCommand.php","line":22,"function":"process","class":"OC\\Authentication\\Login\\EmailLoginCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/UidLoginCommand.php","line":36,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/ALoginCommand.php","line":22,"function":"process","class":"OC\\Authentication\\Login\\UidLoginCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/UserDisabledCheckCommand.php","line":39,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/ALoginCommand.php","line":22,"function":"process","class":"OC\\Authentication\\Login\\UserDisabledCheckCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/PreLoginHookCommand.php","line":34,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Login/Chain.php","line":90,"function":"process","class":"OC\\Authentication\\Login\\PreLoginHookCommand","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/core/Controller/LoginController.php","line":326,"function":"process","class":"OC\\Authentication\\Login\\Chain","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"tryLogin","class":"OC\\Core\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/mnt/drives/big/web_servers/filemanager/lib/base.php","line":1001,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/mnt/drives/big/web_servers/filemanager/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/mnt/drives/big/web_servers/filemanager/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":462,"message":"OpenSSL reported a problem","exception":{},"CustomMessage":"OpenSSL reported a problem"}}

Do you have a link to that script and where did you find it?


ernolf

I went here:

and at the bottom of the page there was Community projects
and this was the link:
https://download.nextcloud.com/server/installer/setup-nextcloud.php

That script is not maintained since a loooong time. It still assumes a PHP version of 7.3!

However, the steps taken are OK, so that shouldn’t be the problem.

Since the error according to the log file has something to do with openssl:

… I suspect that the cause of the problem is related to this::

Just to be sure: you didn’t literally copy it with ‘/absolute/location/of/openssl.cnf’, did you?

Why do you think you need this?


Much and good luck,
ernolf

Sorry, I didn’t use that exact string but had something like etc/openssl/openssl.cnf.
i saw in another forum someone did that and it fixed their openssl log error

but it made no different with or without this in the config

Then the error must be somewhere else in the system.

Since the interaction with SSL is done by PHP, you have to check your PHP configuration carefully. Your information is not enough to be able to make a clear statement.

I am happy to help, but would need the following information:

  • which OS exactly:
    sed -n 's/^PRETTY_NAME="\(.*\)"$/\1/p' /{etc,usr/lib}/os-release 2>/dev/null | sort -u
    

If it is a Ubuntu or Debian system (as you stated):

  • the output of these commands:
    find /etc/php \( -name "*.ini" -o -name "*.conf" \) ! -type l | while read -r file; do echo "Filename: $file"; sed -E '/^\s*($|;|#|\[)/d;/=\s*$/d' "$file"; echo; done
    
    grep php <(update-alternatives --get-selections)
    
    grep mpm <(sudo apachectl -M 2>/dev/null)
    
    and
  • this php-updater output:
    php-updater --list-installed
    

ernolf

1 Like

Thank you :slight_smile:

my OS:
Debian GNU/Linux 12 (bookworm)

output of first command:

Filename: /etc/php/8.2/apache2/php.ini
engine = On
short_open_tag = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
serialize_precision = -1
zend.enable_gc = On
zend.exception_ignore_args = On
zend.exception_string_param_max_len = 0
expose_php = Off
max_execution_time = 30
max_input_time = 60
max_input_vars = 2000
memory_limit = 256M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = Off
display_startup_errors = Off
log_errors = On
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 20M
default_mimetype = "text/html"
default_charset = "UTF-8"
enable_dl = Off
file_uploads = On
upload_max_filesize = 500M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
cli_server.color = On
SMTP = localhost
smtp_port = 25
mail.add_x_header = Off
mail.mixed_lf_and_crlf = Off
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.default_port = 3306
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
bcmath.scale = 0
session.save_handler = files
session.use_strict_mode = 0
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.serialize_handler = php
session.gc_probability = 0
session.gc_divisor = 1000
session.gc_maxlifetime = 2592000
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.sid_length = 26
session.trans_sid_tags = "a=href,area=href,frame=src,form="
session.sid_bits_per_character = 5
zend.assertions = -1
tidy.clean_output = Off
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
ldap.max_links = -1

Filename: /etc/php/8.2/mods-available/gd.ini
extension=gd.so

Filename: /etc/php/8.2/mods-available/pdo_mysql.ini
extension=pdo_mysql.so

Filename: /etc/php/8.2/mods-available/pdo.ini
extension=pdo.so

Filename: /etc/php/8.2/mods-available/phar.ini
extension=phar.so

Filename: /etc/php/8.2/mods-available/xmlreader.ini
extension=xmlreader.so

Filename: /etc/php/8.2/mods-available/mysqli.ini
extension=mysqli.so

Filename: /etc/php/8.2/mods-available/sysvsem.ini
extension=sysvsem.so

Filename: /etc/php/8.2/mods-available/tokenizer.ini
extension=tokenizer.so

Filename: /etc/php/8.2/mods-available/iconv.ini
extension=iconv.so

Filename: /etc/php/8.2/mods-available/posix.ini
extension=posix.so

Filename: /etc/php/8.2/mods-available/zip.ini
extension=zip.so

Filename: /etc/php/8.2/mods-available/sysvshm.ini
extension=sysvshm.so

Filename: /etc/php/8.2/mods-available/shmop.ini
extension=shmop.so

Filename: /etc/php/8.2/mods-available/xml.ini
extension=xml.so

Filename: /etc/php/8.2/mods-available/readline.ini
extension=readline.so

Filename: /etc/php/8.2/mods-available/bz2.ini
extension=bz2.so

Filename: /etc/php/8.2/mods-available/exif.ini
extension=exif.so

Filename: /etc/php/8.2/mods-available/xsl.ini
extension=xsl.so

Filename: /etc/php/8.2/mods-available/mbstring.ini
extension=mbstring.so

Filename: /etc/php/8.2/mods-available/ctype.ini
extension=ctype.so

Filename: /etc/php/8.2/mods-available/ftp.ini
extension=ftp.so

Filename: /etc/php/8.2/mods-available/calendar.ini
extension=calendar.so

Filename: /etc/php/8.2/mods-available/gettext.ini
extension=gettext.so

Filename: /etc/php/8.2/mods-available/dom.ini
extension=dom.so

Filename: /etc/php/8.2/mods-available/imagick.ini
extension=imagick.so

Filename: /etc/php/8.2/mods-available/intl.ini
extension=intl.so

Filename: /etc/php/8.2/mods-available/mysqlnd.ini
extension=mysqlnd.so

Filename: /etc/php/8.2/mods-available/sockets.ini
extension=sockets.so

Filename: /etc/php/8.2/mods-available/fileinfo.ini
extension=fileinfo.so

Filename: /etc/php/8.2/mods-available/xmlwriter.ini
extension=xmlwriter.so

Filename: /etc/php/8.2/mods-available/sysvmsg.ini
extension=sysvmsg.so

Filename: /etc/php/8.2/mods-available/opcache.ini
zend_extension=opcache.so
opcache.jit=off

Filename: /etc/php/8.2/mods-available/ffi.ini
extension=ffi.so

Filename: /etc/php/8.2/mods-available/simplexml.ini
extension=simplexml.so

Filename: /etc/php/8.2/mods-available/curl.ini
extension=curl.so

Filename: /etc/php/8.2/fpm/php-fpm.conf
pid = /run/php/php8.2-fpm.pid
error_log = /var/log/php8.2-fpm.log
include=/etc/php/8.2/fpm/pool.d/*.conf

Filename: /etc/php/8.2/fpm/php.ini
engine = On
short_open_tag = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
serialize_precision = -1
zend.enable_gc = On
zend.exception_ignore_args = On
zend.exception_string_param_max_len = 0
expose_php = Off
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = Off
display_startup_errors = Off
log_errors = On
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
default_mimetype = "text/html"
default_charset = "UTF-8"
enable_dl = Off
file_uploads = On
upload_max_filesize = 2M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
cli_server.color = On
SMTP = localhost
smtp_port = 25
mail.add_x_header = Off
mail.mixed_lf_and_crlf = Off
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.default_port = 3306
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
bcmath.scale = 0
session.save_handler = files
session.use_strict_mode = 0
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.serialize_handler = php
session.gc_probability = 0
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.sid_length = 26
session.trans_sid_tags = "a=href,area=href,frame=src,form="
session.sid_bits_per_character = 5
zend.assertions = -1
tidy.clean_output = Off
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
ldap.max_links = -1

Filename: /etc/php/8.2/fpm/pool.d/www.conf
user = www-data
group = www-data
listen = /run/php/php8.2-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3

Filename: /etc/php/8.2/cli/php.ini
engine = On
short_open_tag = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
serialize_precision = -1
zend.enable_gc = On
zend.exception_ignore_args = On
zend.exception_string_param_max_len = 0
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = -1
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = Off
display_startup_errors = Off
log_errors = On
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
default_mimetype = "text/html"
default_charset = "UTF-8"
enable_dl = Off
file_uploads = On
upload_max_filesize = 2M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
cli_server.color = On
SMTP = localhost
smtp_port = 25
mail.add_x_header = Off
mail.mixed_lf_and_crlf = Off
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.default_port = 3306
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
bcmath.scale = 0
session.save_handler = files
session.use_strict_mode = 0
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.serialize_handler = php
session.gc_probability = 0
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.sid_length = 26
session.trans_sid_tags = "a=href,area=href,frame=src,form="
session.sid_bits_per_character = 5
zend.assertions = -1
tidy.clean_output = Off
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
ldap.max_links = -1

grep php <(update-alternatives --get-selections)

php                            auto     /usr/bin/php8.2
php-fpm.sock                   auto     /run/php/php8.2-fpm.sock

grep mpm <(sudo apachectl -M 2>/dev/null)
mpm_prefork_module (shared)

php-updater --list-installed:
php-updater: command not found

OK. So PHP is connected to apache2 by the libapache2-mod-php8.2, while php-fpm is installed as well. Those two SAPIs are mutually exclusive. You should definitely uninstall any SAPIs you don’t need to avoid confusion and to avoid unnecessary resource consumption:

sudo apt-get purge php*-fpm

So the relevant php-ini is:

It is almost not configured as described in the Manual.

Here are some values ​​that need to be adjusted:

output_buffering:
it is set to 4096 and needs to be turned off, which is the default. So the first step would be to simply comment out this line:

;output_buffering=4096

this step is not very important though, as it is already overridden by the .user.ini file in the root of your Nextcloud installation

max_execution_time is set to 30 seconds and max_input_time to 1 minute which is way too short for a Nextcloud server. You should change it to something larger. 1 hour is good:

max_execution_time = 3600
max_input_time = 3600

the same as for max_execution_time applies to default_socket_timeout (which is also set to 60)

max_input_vars is not required and can be commented out:

;max_input_vars = 2000

session.gc_maxlifetime is set to 2592000 which is approx. 1 month, but the garbage collector is already turned off by session.gc_probability = 0. So what was your intention in setting this value?

Then there are still some PHP modules missing for an optimally functioning server:

sudo apt-get install php8.2-{apcu,bcmath,gmp,igbinary}

but they are all not the reason for your internal server error.

Under the name of the script there was a link with installation instructions, but that doesn’t help here as far as I can see…


Unfortunately, I still can’t say with any certainty what the cause of your internal server error is, as there can be many different reasons for this.

Did you already check your openssl installation?


Much and good luck,
ernolf

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.