-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 500 with NC 12 and PHP 7.1.5 #5130
Comments
Although it won't help you much, but NC 12.0 runs here flawlessly using PHP 7.1.5. |
@jamfx Can you provide the log files of your Nextcloud and web server? |
Also have a look at #5058 |
Hi everybody, thanks for your patients Nextcloud-Log: If it is absolutely necessary I would try to |
@jamfx To me this looks like a DB connection error. Have you installed |
I use a self compiled PHP 7.1. MySQL support is included. I successfully tested a mysqli connection. |
Is there anything I can do to provide more info? Any suggestions about this? |
You will also require the PHP module "pdo_mysql" |
Thank you. This hint lead me to the source of the problem. I have to use "127.0.0.1" instead of "localhost" as db host in my configuration. This seems to be an MySQL PDO issue. See https://stackoverflow.com/questions/1819592/error-when-connecting-to-mysql-using-php-pdo |
Thank you jamfx for the clear and to the point fix. |
Hi, I am Running a NC 12 with PHP-Version 5.6 .
I wanted to upgrade (update) my PHP-Version to 7.1.5. When I do so, I got an Error 500 and Nextcloud is not loading.
Steps to reproduce
Expected behaviour
Page should reload nice and smooth. :)
Actual behaviour
I get an Error 500
Server configuration
Debian
Apache2
Database:
MySQL
PHP version:
5.6. --> Error on switching to 7+
Nextcloud version:
12.0.0
Where did you install Nextcloud from:
From Nexctloud.com
List of activated apps:
Activity
Auditing / Logging
Clllaborative tags
Comments
Deleted files
Federation
Filesharing
First run wizzard
Gallery
Log Reader
Monitorein
Nexcloud Announcement
Notifications
Password Policy
PDF Viewer
Share by Mail
Text editor
Theming
Update Notification
Usage Survey
Version
Video Player
Activities for shared file downloads
Bookmarks
Brute Force Settings
Calendar
Contacts
Notizen
Tasks
Nextcloud configuration:
CONFIG: <?php
$CONFIG = array (
'instanceid' => 'MYID',
'passwordsalt' => 'MYSALTHERE',
'trusted_domains' =>
array (
0 => 'MYSERVERDOMAIN.DE',
),
'datadirectory' => '/users/MYUSERNAME/MYSERVERDOMAIN.DE/data',
'dbtype' => 'mysql',
'version' => '12.0.0.29',
'dbname' => 'MYDBNAME',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'MYDBUSER',
'dbpassword' => 'MYDBPASSWD',
'installed' => true,
'forcessl' => true,
'theme' => '',
'maintenance' => false,
'secret' => 'MYSECRET',
'forceSSLforSubdomains' => true,
'loglevel' => 0,
'trashbin_retention_obligation' => 'auto',
'overwrite.cli.url' => 'https://MYSERVERDOMAIN.DE',
);
Are you using external storage, if yes which one: local/smb/sftp/...
No.
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
Client configuration
Firefox / Chrome
Hopefully I did not forget anything. Please let me know, what I can do.
Thanks.
JamFX
The text was updated successfully, but these errors were encountered: