
Nextcloud Installation
- Atul
- Self hosted
- December 8, 2024
Table of Contents
Nextcloud
The most popular open source content collaboration platform for tens of millions of users at thousands of organizations across the globe
All steps are done from here
Cannot access Apache2 server over domain so using ip
Created a new post for this #93
For this
/var/www/html/nextcloud/config/config.php
GNU nano 7.2 config.php
<?php
$CONFIG = array (
'instanceid' => 'ocva87875vux',
'passwordsalt' => 'fptPnP3XZ1IPf4sh3iFDLnPsPZKRiO',
'secret' => 'dePSgiX9VNqsL0N3e4I+/zzJaPUvUZPATJ8A7S7sPEse0hbU',
'trusted_domains' =>
array (
0 => 'cloud.thebigocommunity.org',
),
'datadirectory' => '/var/www/html/nextcloud/data',
'dbtype' => 'mysql',
'version' => '30.0.2.2',
'overwrite.cli.url' => 'http://[your-ip-address]/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextclouduser',
'dbpassword' => 'your_password',
'installed' => true,
);
Add your domain like :
array (
0 => 'cloud.thebigocommunity.org',
),
Error:
Security & setup warnings
Your data directory and your files are probably accessible from the internet. The .htaccess file that ownCloud provides is not working. We strongly suggest that you configure your webserver in a way that the data directory is no longer accessible or you move the data directory outside the webserver document root…
Solution:
Edit /etc/apache2/apache2.conf
Scroll to the directory area and change
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
To
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
The PHP memory limit is below the recommended value of 512 MB:
Change this file /etc/php/8.2/cli/php.ini
and /etc/php/8.2/apache2/php.ini
Update:
post_max_size=512M