Applications

How to create a web application

~2 min read

Each website or app you host on a server is called an application. Creating one sets up a virtual host, a document root directory, and a dedicated PHP-FPM pool.

Before you start

  • Stack (Nginx/Apache + PHP + MySQL) already installed on the server

Steps

  1. 1

    Open Applications

    Open your server and click "Applications" in the sidebar. Then click "Create Application".

  2. 2

    Enter the domain name

    Type your domain without the http:// prefix (e.g. myblog.com). DeployFly also automatically handles www.myblog.com as an alias.

  3. 3

    Choose the PHP version

    Select the PHP version this application should use. You can change this later per-app without affecting other applications on the same server.

  4. 4

    Create the application

    Click "Create". DeployFly generates the Nginx (or Apache) virtual host config, creates /var/www/yourdomain.com/, and sets up a PHP-FPM pool just for this app.

  5. 5

    Point your domain's DNS to this server

    In your domain registrar or DNS provider, add an A record pointing yourdomain.com to your server's IP address. DNS propagation can take up to 24 hours.

  6. 6

    Upload your code or use a 1-click installer

    Use the File Manager to upload files, connect a Git repository for automatic deployments, or use a 1-click installer (WordPress, Laravel, etc.) to get started instantly.

Watch out

  • SSL certificate issuance (Let's Encrypt) will fail until your domain's DNS actually points to this server. Always verify DNS first.

Tips

  • The document root is /var/www/yourdomain.com/public/ — upload your index.php or put your framework's public folder contents here.
  • You can add extra domain aliases (e.g. www.myblog.com, blog.myblog.com) from the application settings after creation.

Related guides