UnderHost
Knowledgebase Docs

How to create a website in aaPanel

Add a new website in aaPanel on an UnderHost VPS or dedicated server, choose the web server, assign PHP, set the domain and document root,

On this page

Creating a website in aaPanel is done through the Website section. Each site has its own domain, root directory, PHP version, SSL certificate, error logs, and configuration settings. UnderHost can provision aaPanel pre-installed on eligible VPS and dedicated servers, so many customers start at this step instead of installing the panel manually.

Before you start

Before adding a website, make sure:

  • The LNMP (Nginx) or LAMP (Apache) stack is installed-aaPanel prompts you to do this on first login
  • At least one PHP version is installed (aaPanel → App Store → PHP)
  • MySQL is installed if the site needs a database
  • Your domain is ready to point to the server IP shown in CustomerPanel

If the stack is not yet installed, go to aaPanel → App Store and install the components you need.

Add a website

  1. Open Website

    Log in to aaPanel and click Website in the left sidebar.

  2. Click Add Site

    Click the Add Site button.

  3. Configure the site

    • Domain: Enter your primary domain (e.g., yourdomain.com). Click Add domain if you also want to add www.yourdomain.com as an alias
    • Description: Optional label for your own reference
    • Root directory: aaPanel suggests a path like /www/wwwroot/yourdomain.com-you can accept the default or customise it
    • PHP version: Select the PHP version for this site
    • Database: If you want aaPanel to create a database at the same time, select MySQL and fill in the database name, username, and password. Or leave it as Do not create and create the database separately later
  4. Submit

    Click Submit. aaPanel creates the vHost configuration, directory structure, and optionally the database.

Where files are stored

By default, aaPanel stores website files at:

/www/wwwroot/yourdomain.com/

This is the web root. Upload your website files here via the aaPanel File Manager or FTP. Files in this directory are served by Nginx or Apache to visitors.

Site configuration options

After creating the site, click the site name in the Website list to access per-site settings:

TabWhat you can configure
Domain nameAdd or remove domain aliases (e.g., add www)
PHP versionSwitch PHP version for this site
SSLIssue Let's Encrypt certificate or install a custom cert
URL rewriteSelect a rewrite template (WordPress, Laravel, etc.) or write custom rules
ConfigEdit the raw Nginx/Apache config for this site
Error logView the error log for this site directly in the panel
LogsView access logs

Next steps

  1. Point the domain's A record to the server IP-see How to point a domain to an aaPanel server
  2. Upload website files via File Manager or FTP
  3. Create a database if needed
  4. Issue an SSL certificate

If this is part of a to UnderHost, gather the source host login, current DNS provider, database names, and target domain list before opening a ticket. UnderHost specialists can help move sites from cPanel, Plesk, DirectAdmin, and custom stacks.

Related: Install WordPress in aaPanel | aaPanel SSL | aaPanel DNS | aaPanel databases

Was this article helpful?

Need aaPanel hosting?

Install aaPanel on an UnderHost VPS or dedicated server when you want a simple web interface for sites, databases, SSL, and apps.

Related articles

Back to aaPanel Create a WordPress site