Cosmoner Docs
Guides

Web Hosting

How web hosting is laid out, how to run several websites and domains on it, and how to reach your files.

Overview

Web hosting runs PHP websites on Apache, the way a classic LAMP host does. You create one hosting, and it can serve many websites at once: its own address, the domains you attach, and subdomains of those domains. They share the tier's storage, PHP workers and memory.

Every hosting includes:

  • Several websites, domains and subdomains served from folders you control
  • SFTP and SSH access on every tier
  • A file manager in the control panel for quick edits and uploads
  • Unmetered bandwidth

Tiers

TierStoragePHP workersPHP memory per requestDomains
Starter10 GB2128 MB1
Growth25 GB4256 MB5
Scale50 GB8256 MB25

The wizard shows the monthly price beside each tier. Bandwidth is not metered on any tier.

Extra storage

If a tier's disk is not enough, add storage on top of it in 10 GB blocks, at USD 1 per block per month. You can add up to 50 GB for now. Larger sizes are on the way.

Extra storage is chosen when the hosting is created.

How your files are laid out

Your hosting has one home folder. Each address it answers on gets a folder named after it, with the public files in public_html inside:

/var/www/<user>/
├── <your-address>/
│   └── public_html/          # your hosting's own address
├── example.com/
│   ├── public_html/          # example.com, once attached
│   └── shop/                 # shop.example.com, once attached
└── tmp/                      # PHP sessions and uploads

Only a folder that an address points at is served. Anything next to public_html, such as configuration files or backups, stays private until you decide otherwise. A folder is never served because of its name alone.

Your hosting's address

Every hosting is given an address on cosmoner.com, shown on its page in the control panel. It serves the public_html inside the folder named after it.

Domains

Attach your own domain from the Domains tab. By default it is served from <domain>/public_html, and the folder is created for you. You can point it at any other folder instead.

After attaching, add the DNS record the panel shows at your DNS provider.

Subdomains

Subdomains are available on domains you attach, not on your hosting's own cosmoner.com address.

A subdomain of your own domain, such as shop.example.com, is attached from the Domains tab like any other domain and counts as one. When example.com is already attached, it defaults to a folder inside it, beside public_html: example.com/shop.

A folder you already have can be turned into a subdomain from the file manager: open its menu and choose Serve as domain. The form suggests the subdomain the folder's name implies.

Redirects and parked domains

A domain does not have to serve a folder. When you attach it, or later from its Change button, choose one of:

  • Website serves a folder, as above.
  • Redirect sends every visitor to another address and keeps the path they asked for, so old.example.com/about lands on https://example.com/about. Pick 301 for a permanent move or 302 for a temporary one. The target is a full address without a query string.
  • Parked shows a placeholder page. Use it to hold a domain, with its DNS and certificate already in place, until the website is ready.

Switching between them keeps the domain attached, so there are no DNS records to change. Redirects and parked domains count against the tier like any other attached domain.

Uploading files

SFTP

Connect with any SFTP client, such as FileZilla, Cyberduck or WinSCP. The host, port and username are on the hosting's page, and the password can be revealed there. The host and port are the same for every hosting: sftp.cosmoner.com on port 2022. Your username is what picks your hosting.

SFTP does not run on port 22. Use port 2022: connecting on port 22 blocks your address for a day.

Five failed logins from one address block that address for an hour.

Plain FTP and FTPS are not offered.

SSH

Every tier also includes a shell on the same host, port and credentials, for tools like composer, wp-cli or git.

File manager

The Files tab in the control panel lists, uploads, downloads, renames and deletes files, and opens text files in an editor. Each transfer is limited to 64 MB.

How PHP runs

Each hosting runs in its own isolated container, so other customers cannot reach your files or processes.

  • PHP version. Choose 8.1, 8.2 or 8.3. All websites on the hosting use the same version.
  • PHP workers are how many PHP requests run at the same time. Further requests wait for a free worker. If your sites slow down under traffic, a higher tier adds workers.
  • Memory per request is PHP's memory_limit, set by the tier. It cannot be raised from .htaccess.
  • Defaults. Uploads and form posts up to 64 MB, a 120 second execution limit, and OPcache enabled.
  • .htaccess works for rewrites, redirects, access rules and authentication, so WordPress, Laravel and similar applications run as expected.

Changing tiers

Change tier from the hosting's page. New PHP workers, memory and domain limits apply straight away. The disk size is set when the hosting is created.

On this page