Building a Site
Sites on Opalstack are built from the following components:
- Shell users which own and run web applications.
- Web applications which are routed to URI paths like
/blog, et cetera to create routes.
- Domains and subdomains which are combined with routes to create a site
Read on to learn how it's done!
Click on Shell Users in the control panel sidebar and add a new shell user for your application.
Enter the username that you want for the new shell user. This is the name that you'll use when you log in to SSH and SFTP as that user.
Select the server for your new shell user. This will be the server from which your site will be served.
A notice will appear at the top of the page to notify you of the new shell user's password. Make a note of the password.
After ~1 minute (usually less) a second notice will appear to let you know that the user has been created and is ready for use.
The new shell user is assigned a random password by default. We recommend you change the shell user's password after you have created it.
Click on Applications in the control panel sidebar and add a new application.
Click on the application type that you want to use. At the present time the following applications are available:
- PHP-FPM + Apache: suitable for serving any PHP application
- Wordpress: A Wordpress installation running under our PHP-FPM + Apache setup.
- Nginx Static Only: suitable for serving static assets like images, scripts, stylesheets and other static content
- Proxy port: a generic port assignment running behind our front-end Nginx server, suitable for serving any backend server that listens on a network port.
Select the applicable options for the application type that you've selected.
Enter a name for the application. This will be the name of the filesystem directory that the panel will create for your application.
Select the shell user that you created in section 1 above.
Click 'Add Application' to install the new application.
After ~1 minute (usually less) a notice will appear to let you know that the application has been created and is ready for use.
Click on Domains in the control panel sidebar and add a new domain.
Enter the domain name in the space provided. Note that this must be a domain that you've already registered and have pointed at your server's IP address.
Click 'Save' to add the domain.
Repeat steps 1 though 3 for each additional domain and subdomain that you'll use on the site. For example, if you want to use
www.domain.com, you'll need to create both of them.
Click on Site Routes in the control panel sidebar and add a new site route.
Give the route a name to help you identify it in the control panel.
Select the IP address assigned to your server.
Under "Application Routing Info", click "Add Route".
Select the application to serve on the new route.
Enter the URI path from which you want to serve the application. For example, you might want to serve a static site from
/, or a Wordpress site from
Under "Domain Info", click "Add Domain".
Select the domain you want to use for the site.
Click 'Save' to save the new site route.
🎉 Congratulations -- you now have a site!