Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Nextcloud 16 failed to add primary storage as digital ocean spaces
I got a problem. I can not set digital ocean spaces as nextcloud 16 primary storage. I don’t want to use it as external storage. When I follow nextcloud instructions, I have modified
config.php file, and then after change it I can see this error on my all nextcloud 16 web pages
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 web server log.
Then I have checked the error log on nextcloud 16 error login showing this error.
[03-Jul-2019 11:55:52 UTC] PHP Parse error: syntax error, unexpected ',' in /home/xxxxxx/public_html/dash/config/config.php on line 27
config.php file sample contents.
<?php $CONFIG = array ( 'instanceid' => 'passwordsalt' => 'secret' => 'trusted_domains' => array ( 0 => 'xxxxxxxxxxxx', 1 => 'fra1.digitaloceanspaces.com', 2 => 'xxxxx.fra1.digitaloceanspaces.com', 3 => 'digitaloceanspaces.com', ), 'datadirectory' => '/home/xxxxxx/nextdata', 'dbtype' => 'mysql', 'version' => '126.96.36.199', 'overwrite.cli.url' => 'https://xxxxxxxx', 'dbname' => 'xxxxxx', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'xxxxxxxxxx', 'dbpassword' => 'xxxxxxx', 'installed' => true, ), 'objectstore' => array( 'class' => '\\OC\\Files\\ObjectStore\\S3', 'arguments' => array( 'bucket' => 'xxxxxxx', 'key' => 'xxxxxxxxxx', 'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'hostname' => 'fra1.digitaloceanspaces.com', 'port' => 443, 'use_ssl' => true, 'region' => 'fra1', // required for some non Amazon S3 implementations 'use_path_style'=>true ), ), );
I’m exhausted about seeking solutions from other web sites and videos. I’m looking for some expert help about the issue
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×