Nextcloud is a self-hosted alternative to Dropbox or Google Drive: you store files on your own hosting, sync them to your devices and share links with others. Softaculous can install it on cPanel hosting for personal or small-team use. This guide covers a secure installation and the settings that matter on shared hosting.
Before you start
- A subdomain such as
cloud.example.comwith a valid SSL certificate. See create a subdomain. - Enough disk space and inodes on your plan for the files you plan to store; all files count toward your quota. See inodes and quota.
- A supported PHP 8 version with extensions such as
zip,gdorimagick,intl,bcmathandgmpenabled in Select PHP Version;memory_limitat least512M.
Install Nextcloud
- Open cPanel → Software → Softaculous Apps Installer, search for Nextcloud (category File Management) and click Install.
- Installation URL:
https://, the subdomain, and an empty directory. - Data Directory: change it to a folder outside
public_htmland the subdomain's document root, for example/home/cpuser/nextcloud-data. This prevents direct web access to stored files. - Admin Account: a unique username and a strong password.
- Enable automated Softaculous backups only if your quota allows; backing up large file collections doubles disk use. Daily JetBackup already includes the data folder.
- Click Install.
After installation
- Log in and open Administration settings → Overview. Nextcloud lists security and setup warnings; work through them.
- Background jobs: choose Cron under Administration settings → Basic settings, then add a cPanel cron job every 5 minutes:Use the PHP binary matching the site's version; see cron troubleshooting.
/usr/local/bin/php -f /home/cpuser/cloud.example.com/cron.php - Email: in Basic settings → Email server, use SMTP with a mailbox on your domain (server hostname, port 465, SSL) so share notifications arrive.
- Two-factor authentication: enable the TOTP app under Apps and require it for users.
Warning: Shared hosting has CPU and memory limits. Nextcloud suits personal use and small teams. Heavy features such as large-scale syncing, video previews, Talk video calls or Office integration need a VPS.
Connect your devices
- Install the Nextcloud desktop client (Windows, macOS, Linux) and the mobile apps.
- Enter the server address
https://cloud.example.comand log in through the browser window that opens. - Choose which folders to sync; avoid syncing huge folders over a mobile connection.
Troubleshooting
- "PHP memory limit below recommended": raise
memory_limitin Select PHP Version. - Uploads of big files fail: raise
upload_max_filesizeandpost_max_size; the desktop client uploads in chunks and handles large files better than the browser. - 508 or slow interface: you are hitting resource limits; see resource usage.
