How to Perfectly Configure Tweak Settings?
In this guide
AlmaLinux server setup series. This guide is step 8 of the series.
Fine-tuning Tweak Settings is crucial for a well-optimized server. Follow this guide to configure the most essential settings with precision.
1. Access WHM
Log in to WHM: Use your root credentials to access the WebHost Manager (WHM) interface. Open your web browser and navigate to https://your-server-ip:2087 or https://your-domain:2087.
2. Navigate to Tweak Settings
Find Tweak Settings: Once logged into WHM, go to Server Configuration in the sidebar, then click on Tweak Settings.
3. Display Tab
Number of accounts per page to display in “List Accounts”: the default is 30 accounts per page. For better visibility and easier management, increase it to 50.
4. Domains Tab
- Allow Remote Domains: off by default. Turn it on to allow hosting domains that are not registered with your server.
- Allow Unregistered Domains: also off by default. Turn it on to let users add domains without prior registration.
- Restrict document roots to public_html: enabled by default. For more flexibility, disable it to allow document roots outside the public_html directory.
- Service subdomains: enabled by default. It creates proxy subdomains (like cpanel.yourdomain.com) automatically. Adjust it to your preference.
5. Mail Tab
Max hourly emails per domain: limit the emails sent per hour to 20 or 30 on shared servers. This helps prevent abuse and ensures fair resource distribution.
- Number of emails a domain may send per day before the system sends a notification: the default is unlimited. Setting a limit such as 500 helps you monitor email usage and spot spam early.
- Action when a potential spammer is detected: the default is “Take no action”. You can change it to Hold outgoing mail or Reject outgoing mail, depending on your security needs.
6. Packages Tab
Default disk usage quota for new packages: set the default disk quota for new packages. A 1024 MB package is a practical starting point, though you can customize it as needed.
7. PHP Tab
- cPanel PHP max execution time: 90 seconds by default. Increase it if your scripts need longer.
- cPanel PHP memory limit: the default is 128 MB. Increase it to 256 MB or 512 MB depending on your needs.
- cPanel PHP max POST size: the default is 55 MB. Consider 256 MB or 512 MB for larger data submissions.
- cPanel PHP max upload size: the default is 50 MB. Increase it to 256 MB or 512 MB to allow larger uploads.
- cPanel PHP loader: ionCube and SourceGuardian are disabled by default. Enable them to support encrypted PHP files.
8. Security Tab
Cookie IP Validation: This setting is set to “Strict” by default. For increased flexibility, you can disable the “Share” option, but maintaining “Strict” ensures tighter security.
Conclusion
By carefully adjusting these Tweak Settings, you optimize your server for both performance and security. Regularly review and adjust these settings as your needs evolve.
Keep reading
How to Safely Change SSH Port in AlmaLinux (e.g., to 2022)
Changing the default SSH port (22) helps protect your server from automated attacks. In this guide, we’ll show you how to change the SSH port safely and open the new...
Counting .tar.gz Files in a Directory on AlmaLinux
Three simple command-line ways to count .tar.gz files in a directory on AlmaLinux: ls with wc, find with wc, and grep.
How to Install Imunify360 with a 15-Day Trial on AlmaLinux?
Imunify360 is a comprehensive security solution designed to protect Linux servers from various threats. This guide will take you through obtaining a trial license,...