By geekyboy
Hi,
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
This is 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' => '16.0.1.1',
'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
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You have an error in your configuration, remove the ), part before ‘objectstore’ => array(
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.