Settings
Overview
The server's Settings page groups the general settings of a server:
- Swap: change the size of the swap memory.
- Change IP or Host: update the address FlashPanel uses to connect to the server.
- Update Name: rename the server.
- Update Timezone: change the system timezone.
To open the page, select Settings in the server menu. This item is only available after the server has finished installing.
INFO
This page covers server settings. Settings for each website are on the website Settings page.
How to use
Swap
Swap is disk space used as extra memory when RAM is nearly full, which helps prevent services from stopping suddenly due to lack of memory. When a server is connected, FlashPanel creates a 1 GB swap if the server does not already have one.
The Swap card shows the server's Current swap size.
- Pick a preset: 512 MB, 1 GB, 2 GB, 4 GB or 8 GB. Or enter a value in MB in the Swap size field (from 256 to 65536 MB).
- Click Save.
The change runs in the background as an event, takes effect as soon as it completes, and persists across reboots. The Save button is only enabled when the new value is valid and differs from the current size.
WARNING
- The new swap is created before the old one is replaced, so the disk needs at least as much free space as the new swap size.
- While swapping over, data held in the old swap is moved back into RAM. If the server is short on RAM and using a lot of swap, do this at a quiet time.
- Swap is much slower than RAM. If the server regularly uses a lot of swap, consider upgrading RAM instead of only increasing swap.
Change IP or Host
This card updates the address FlashPanel uses to connect to the server. It does not change anything on the server; it only changes the information stored in FlashPanel.
Use it when:
- Your provider changes the server's IP address.
- You move this same server to a new IP address (for example by restoring a snapshot onto a different IP).
- You want to connect with a domain (for example DDNS or a tunnel) instead of an IP, or the other way around.
Steps:
- Enter the new address in the Server IP or domain field. IPv4, IPv6 and domain names are supported.
- Click Change.
The change takes effect immediately. When you connect with a domain, the field shows the IP the domain Currently points to, and FlashPanel automatically updates the server IP from the domain every few minutes. Entering an IP address again removes the stored domain.
After changing the IP:
- DNS records of websites using a free domain are updated to the new IP automatically.
- DNS records of your own domains are not updated automatically. Change the
A/AAAArecord of each domain to the new IP at your DNS provider (or on the DNS management page if you have connected a DNS provider). Otherwise your websites will be unreachable and Let's Encrypt certificates cannot be renewed.
WARNING
- The new address must point to this same server (with the same data). If you enter a wrong address or the address of a different server, FlashPanel will not be able to connect to or manage the server.
- Private and reserved IP addresses are not accepted. A domain must resolve to a public IP address.
- You cannot use an address already used by another server in your account with the same SSH port.
Update Name
- Enter the new name in the Server Name field. The name may only contain lowercase letters a-z, numbers and
-, up to 64 characters. - Click Update.
When you update the name, FlashPanel:
- Renames the server in FlashPanel immediately.
- Changes the hostname on the server. This runs in the background as an event, visible on the Events page.
- Renames the server (label) at the provider if the server was created through the API of a provider that supports it.
Update Timezone
The timezone determines the times shown in system logs and when CronJobs run on the server. If you have never changed the timezone through FlashPanel, the field shows Etc/UTC.
- Select a timezone from the list. You can type to search, for example
Asia/Ho_Chi_Minh. - Click Update.
The change runs in the background as an event. The Update button is only enabled when you select a timezone different from the current one.
Notes & warnings
- Note: Swap, hostname and timezone changes run in the background on the server. Check the result on the Events page. If the event fails, the setting has not been applied on the server.
- Note: Changing the timezone does not change the actual time, only how time is shown on the server. Review your CronJob schedules after changing the timezone, because they will run in the new timezone.
- Warning: Only use Change IP or Host when the server's address has really changed. A wrong address makes every action on the server fail until you correct it.