Skip to main content

ownCloud Marketplace App

Version: ownCloud 10.12.0   |   OS: Ubuntu 20.04

Overview

The ownCloud Marketplace App provides secure file storage, collaboration, and sharing capabilities, allowing users easy cloud access from any device. ownCloud facilitates convenient file management, secure sharing, and seamless collaboration.

Included Software:

  • Apache - 2.4.41
  • MySQL - 8.0.32
  • PHP - 7.4
  • Postfix - 3.4.13
  • ownCloud - 10.12.0

Getting Started

Firewall & Access

After deploying the instance, configure your firewall or security groups to allow access only through the following ports:

PortServicePurpose
22SSH (rate limited)Secure server access
80HTTPWeb traffic
443HTTPSSecure web traffic

Always restrict access to trusted IP addresses when possible.

Initial Deployment & Setup

During the first boot, the system automatically sets the MySQL root password and executes mysql_secure_installation.

You will temporarily be disconnected from the SSH session with the message:

Please wait until the installation is completed....
Connection to $IPADDRESS closed.

Important: Wait at least 2 minutes after deployment before logging back in to ensure all initializations complete.

Accessing the ownCloud Instance

After deployment completes:

  • SSH Access: Log in as ubuntu using your configured password or SSH key, then switch to root using:
sudo su -

Accessing MySQL

  • MySQL root password is stored in /root/.mysql_root_password.

Log in to MySQL:

mysql -u root -p

(Use the password stored in the above file.)

ownCloud Credentials and Database Information

  • ownCloud database details are located at /root/.owncloud_database_details
  • ownCloud admin login credentials are located at /root/.owncloud_admin_details

ownCloud Dashboard

Access the ownCloud dashboard via the instance's IP address:

http://$IPADDRESS

Or use the configured domain name.

Configuring Trusted Domains

For IP Address Access

Add the instance IP as a trusted domain with:

sudo -u www-data php /var/www/html/occ config:system:set trusted_domains 1 --value="$IPADDRESS"

Then restart Apache:

systemctl restart apache2

For Domain Name Access

Ensure your domain's A record points to the instance IP. Then, configure as follows:

  • Modify Apache configuration by updating ServerName:
sed -i 's/#ServerName your_domain/ServerName your_domain/g' /etc/apache2/sites-available/owncloud.conf
  • Add the domain as a trusted domain:
sudo -u www-data php /var/www/html/occ config:system:set trusted_domains 2 --value="your_domain"

Restart Apache to apply changes:

systemctl restart apache2

Note: Trusted domains indexing:

  • trusted_domains 0 → localhost
  • Increment numbers (1, 2, ...) for additional trusted domains.

Configuring Postfix for Email

Set a Valid Hostname

Configure a valid hostname:

hostnamectl set-hostname your.hostname.com

Ensure the hostname has a proper A record and PTR record pointing to your IP.

Update Postfix Configuration

Edit /etc/postfix/main.cf, replacing $hostname with your valid hostname:

myhostname = your.hostname.com

Restart Postfix:

systemctl restart postfix

Testing Email

Check email functionality:

echo "Postfix test" | mail -s "Subject" test@gmail.com

Note: Emails may initially be marked as spam until your IP builds reputation through regular email usage.

Troubleshooting and Best Practices

  • Verify DNS propagation before accessing via the domain.
  • Ensure proper firewall configuration.
  • Always verify configurations before restarting services to avoid disruptions.

For further assistance, contact Cloud4India Support.