Adding the First Website
In ServBay, adding a new website is simple and straightforward. This article will provide a detailed guide on how to add your first website in ServBay, including steps, considerations, and solutions for common issues.
Overview
ServBay offers a user-friendly interface that makes adding and managing websites very easy. By following these steps, you can effortlessly add your first website in ServBay and configure the necessary settings to ensure the site runs smoothly.
Steps to Add a Website
Step 1: Open the ServBay Management Interface
First, locate ServBay
in the application and double-click to open it.
Step 2: Navigate to Host Management
After opening the program, you will see the main interface of ServBay. Click Website
in the navigation menu on the left. This will take you to the website management page.
Step 3: Add a New Website
On the website management page, click the +
button at the bottom of the page. This will open a new form on the right to enter basic information about the new website.
Step 4: Configure Website Settings
On the page for adding a website, you need to fill in the following information:
- Name: The name of the site for identification.
- Domain: Enter the domain of the website you want to add, like
servbay.demo
. - Protocol: The protocol supported by the website, default is HTTP/HTTPS.
- SSL Certificate Request Method: It is recommended to choose
ServBay CA
, which will automatically generate and manage SSL certificates through ServBay PKI. Users can also select certificates issued via the ACME method (such as Let's Encrypt, ZeroSSL, Google). - Website Type: The type of website, PHP, Nodejs, Static, Reverse Proxy, or Redirect
- PHP Version: Choose the PHP version to be used by the website. Make sure the chosen PHP version is installed and running.
- URL Rewrite (Pseudo-static) Rules: For example Laravel, WordPress, Discuz!
- Root Directory: Select or enter the root directory path of the website files, like
/Applications/ServBay/www/demo/servbay
.
Step 5: Complete and Save
After filling in all the necessary information, click the Add
button. ServBay will automatically create the new website's configuration and set up accordingly on the host.
Once saved successfully, you can click the browser icon in the upper-right corner to access the website.
Step 6: Quick Actions
ServBay provides a series of quick action buttons for websites, including:
- Open Website with IDE for Quick Editing
- Open Website in Browser
- View Website Logs
- Pause or Start Website
- Delete Website
Summary
Adding your first website in ServBay is a simple and intuitive process. By following the above steps, you can easily add and configure a new website. Through proper configuration and management, you can ensure the website runs stably in the ServBay environment. If you encounter issues, refer to common problems and solutions for troubleshooting and fixing.