Installed Nextcloud a while back and ran into some issues. I immediately ran into some health/family issues so I left if as it was and am now just getting back to it..
I feel like it could be something to do with mysql, but I'm not proficient enough with it to just go rooting around in there without at least a little guidance.. But I can tell you that the DB as well as the user are installed..
Any help would be greatly appreciated...
When I check the log file I get: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: 192.168.1.64
Request ID: Ip1MyqQwtuZ5Wmb4QLaZ
Some info for the minds here to help:{"reqId":"WSQml18ZaPJcbi819YWl","level":3,"time":"2021-12-25T21:55:19+00:00","remoteAddr":"192.168.1.64","user":"--","app":"index","method":"GET","url":"/nextcloud/index.php/csrftoken","message":"Failed to connect to the database: An exception occurred in the driver: could not find driver","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0","version":"","exception":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Failed to connect to the database: An exception occurred in the driver: could not find driver","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1486,"function":"connect","class":"OC\\DB\\Connection","type":"->"},{"file":"/usr/local/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1014,"function":"getWrappedConnection","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/DB/Connection.php","line":231,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/usr/local/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php","line":210,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":287,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppConfig.php","line":344,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppConfig.php","line":109,"function":"loadConfigValues","class":"OC\\AppConfig","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/AppConfig.php","line":300,"function":"getApps","class":"OC\\AppConfig","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/App/AppManager.php","line":127,"function":"getValues","class":"OC\\AppConfig","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/App/AppManager.php","line":216,"function":"getInstalledAppsValues","class":"OC\\App\\AppManager","type":"->"},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_Template.php","line":283,"function":"isEnabledForUser","class":"OC\\App\\AppManager","type":"->"},{"file":"/usr/local/www/nextcloud/index.php","line":44,"function":"printErrorPage","class":"OC_Template","type":"::"}],"File":"/usr/local/www/nextcloud/lib/private/DB/Connection.php","Line":87,"CustomMessage":"--"}}
FreeBSD Bender 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr 9 04:24:09 UTC 2021 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
root@Bender:/usr/local/etc/mysql # pkg info | grep next
nextcloud-php80-22.2.0 Personal cloud which runs on your own server
root@Bender:/usr/local/etc/mysql # pkg info | grep mysql
mysql80-client-8.0.26 Multithreaded SQL database (client)
mysql80-server-8.0.26 Multithreaded SQL database (server)
php80-pdo_mysql-8.0.12 The pdo_mysql shared extension for php
root@Bender:/usr/local/etc/mysql # pkg info | grep apache
apache24-2.4.51 Version 2.4.x of Apache web server
root@Bender:/usr/local/etc/mysql # pkg info | grep php
mod_php80-8.0.12 PHP Scripting Language
nextcloud-php80-22.2.0 Personal cloud which runs on your own server
php80-8.0.12 PHP Scripting Language
php80-bcmath-8.0.12 The bcmath shared extension for php
php80-bz2-8.0.12 The bz2 shared extension for php
php80-ctype-8.0.12 The ctype shared extension for php
php80-curl-8.0.12 The curl shared extension for php
php80-dom-8.0.12 The dom shared extension for php
php80-exif-8.0.12 The exif shared extension for php
php80-fileinfo-8.0.12 The fileinfo shared extension for php
php80-filter-8.0.12 The filter shared extension for php
php80-gd-8.0.12 The gd shared extension for php
php80-gmp-8.0.12 The gmp shared extension for php
php80-iconv-8.0.12 The iconv shared extension for php
php80-intl-8.0.12 The intl shared extension for php
php80-ldap-8.0.12 The ldap shared extension for php
php80-mbstring-8.0.12 The mbstring shared extension for php
php80-opcache-8.0.12 The opcache shared extension for php
php80-openssl-8.0.12 The openssl shared extension for php
php80-pcntl-8.0.12 The pcntl shared extension for php
php80-pdo-8.0.12 The pdo shared extension for php
php80-pdo_mysql-8.0.12 The pdo_mysql shared extension for php
php80-pecl-APCu-5.1.20 APC User Caching
php80-posix-8.0.12 The posix shared extension for php
php80-session-8.0.12 The session shared extension for php
php80-simplexml-8.0.12 The simplexml shared extension for php
php80-xml-8.0.12 The xml shared extension for php
php80-xmlreader-8.0.12 The xmlreader shared extension for php
php80-xmlwriter-8.0.12 The xmlwriter shared extension for php
php80-xsl-8.0.12 The xsl shared extension for php
php80-zip-8.0.12 The zip shared extension for php
php80-zlib-8.0.12 The zlib shared extension for php
root@Bender:/usr/local/etc/apache24 # cat httpd.conf
#
# This is the main Apache HTTP server configuration file. It contains the
...
ServerRoot "/usr/local"
...
Listen 192.168.1.10:80
...
LoadModule mpm_prefork_module libexec/apache24/mod_mpm_prefork.so
...
LoadModule authn_file_module libexec/apache24/mod_authn_file.so
...
LoadModule authn_core_module libexec/apache24/mod_authn_core.so
LoadModule authz_host_module libexec/apache24/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache24/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache24/mod_authz_user.so
...
LoadModule authz_core_module libexec/apache24/mod_authz_core.so
...
LoadModule access_compat_module libexec/apache24/mod_access_compat.so
LoadModule auth_basic_module libexec/apache24/mod_auth_basic.so
...
LoadModule reqtimeout_module libexec/apache24/mod_reqtimeout.so
...
LoadModule filter_module libexec/apache24/mod_filter.so
...
LoadModule mime_module libexec/apache24/mod_mime.so
LoadModule log_config_module libexec/apache24/mod_log_config.so
...
LoadModule env_module libexec/apache24/mod_env.so
...
LoadModule headers_module libexec/apache24/mod_headers.so
...
LoadModule setenvif_module libexec/apache24/mod_setenvif.so
LoadModule version_module libexec/apache24/mod_version.so
...
LoadModule unixd_module libexec/apache24/mod_unixd.so
...
LoadModule status_module libexec/apache24/mod_status.so
LoadModule autoindex_module libexec/apache24/mod_autoindex.so
...
<IfModule !mpm_prefork_module>
#LoadModule cgid_module libexec/apache24/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
#LoadModule cgi_module libexec/apache24/mod_cgi.so
</IfModule>
...
LoadModule dir_module libexec/apache24/mod_dir.so
...
LoadModule alias_module libexec/apache24/mod_alias.so
...
LoadModule php_module libexec/apache24/libphp.so
# Third party modules
IncludeOptional etc/apache24/modules.d/[0-9][0-9][0-9]_*.conf
<IfModule unixd_module>
...
User www
Group www
</IfModule>
# 'Main' server configuration
...
ServerAdmin you@example.com
...
<Directory />
AllowOverride none
Require all denied
</Directory>
...
DocumentRoot "/usr/local/www/apache24/data"
<Directory "/usr/local/www/apache24/data">
...
Options Indexes FollowSymLinks
...
AllowOverride None
...
Require all granted
</Directory>
[B][COLOR=rgb(44, 130, 201)]#[/COLOR][/B]
[COLOR=rgb(44, 130, 201)][B]# Nextcloud alias
#
Alias /nextcloud /usr/local/www/nextcloud
AcceptPathInfo On
<Directory /usr/local/www/nextcloud>
AllowOverride All
Require all granted[/B][/COLOR]
[B][COLOR=rgb(44, 130, 201)] </Directory>[/COLOR][/B]
...
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
...
<Files ".ht*">
Require all denied
</Files>
...
ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"
</IfModule>
<IfModule cgid_module>
...
</IfModule>
...
<Directory "/usr/local/www/apache24/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule headers_module>
...
</IfModule>
<IfModule mime_module>
...
TypesConfig etc/apache24/mime.types
...
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
...
</IfModule>
...
<IfModule proxy_html_module>
Include etc/apache24/extra/proxy-html.conf
</IfModule>
...
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Include etc/apache24/Includes/*.conf
I feel like it could be something to do with mysql, but I'm not proficient enough with it to just go rooting around in there without at least a little guidance.. But I can tell you that the DB as well as the user are installed..
root@localhost [(none)]> SELECT User FROM mysql.user;
+------------------+
| User |
+------------------+
| mysql.infoschema |
| mysql.session |
| mysql.sys |
| [B][COLOR=rgb(44, 130, 201)]nextcloud_user[/COLOR][/B] |
| root |
+------------------+
5 rows in set (0.00 sec)
root@localhost [(none)]> show databases
-> ;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| [B][COLOR=rgb(44, 130, 201)]nextcloud_db[/COLOR][/B] |
| performance_schema |
| sys |
+--------------------+
5 rows in set (0.00 sec)
Any help would be greatly appreciated...