Skip to main content

Web hosting

Everything you need to run a website on shared web hosting: uploading files, working with databases and PHP, redirects, scheduled tasks, backups, and moving a site from another host.

Guides in this topic

  • Upload files with SFTP

    Connect to your hosting with SFTP or FTPS, find the right folder for your website, upload files and set safe file permissions.

  • Databases explained

    What a website database does, the four details a site needs to connect to it, and how to create, export and import a MySQL or MariaDB database.

  • PHP versions and settings

    Why your website's PHP version matters, how to switch versions safely, and what memory, upload and time limit settings do.

  • Redirects and .htaccess

    Choose between 301 and 302 redirects and use .htaccess rules to force HTTPS, pick www or non-www, and move single pages safely.

  • Cron jobs

    Run website tasks on a schedule with cron, read the five time fields, log the output and replace WordPress wp-cron with a real cron job.

  • Backups and restores

    What to back up on your website, how automatic and manual backups differ, the 3-2-1 rule, and how to test and restore a backup.

  • Resource limits

    What CPU, memory, process, inode, disk and bandwidth limits mean on shared hosting, how to tell when you reach one, and how to use less.

  • Plan a website migration

    A step-by-step checklist for moving a website and its email to a new host, testing it before you switch, and keeping downtime to a minimum.