Last active
May 10, 2023 22:26
-
-
Save phpcodertop/7c84f7898c68c6967427d2b322d3449d to your computer and use it in GitHub Desktop.
Cpanel recommended configurations and tweaks after installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cpanel recommended configurations and tweaks after installation | |
# Activate license. | |
# Change Nameservers and Contact Information. | |
- Server Configuration | |
-- Basic WebHost Manager® Setup | |
# Change hostname. | |
- Networking Setup. | |
- Change Hostname. | |
# Enable Quota | |
- Server Configuration. | |
- Initial Quota Setup. | |
# Change Server TimeZone | |
- Server Configuration. | |
- Server Time. | |
# Tweak Settings | |
- Server Configuration. | |
- Tweak Settings. | |
* "Include mailman in disk usage calculation" >> off. | |
* "Enable mailman mailing lists" >> off. | |
* "Enable Boxtrapper spam trap" >> off. | |
* "initial default/catch-all forwarder destination" >> fail. | |
* "Awstats reverse DNS resolution" >> off. | |
* "Enable Analog stats" >> off. | |
* "Enable Webalizer stats" >> off. | |
* "Include databases in disk usage calculations" >> off. | |
* "Conserve memory" >> off. | |
# Install letsencrypt and install ssl for hostname. | |
- Server Configuration. | |
- Manage service ssl certificates. >> reset all existing certificates. | |
Through ssh run the following command | |
/usr/local/cpanel/bin/checkallsslcerts | |
- Install letsencrypt, Through ssh run | |
/usr/local/cpanel/scripts/install_lets_encrypt_autossl_provider | |
then from | |
- SSL/TLS | |
- Manage AutoSSL | |
change AutoSSL Providers to letsencrypt, check " Recreate my current registration with “Let’s Encrypt™”." | |
and click save. Then repeat first step if hostname ssl not working. | |
You can click on run autossl for all users buttomn. | |
# Install php and extensions and modules, don't forget ioncube | |
- Software. | |
- Easy Apchache. Customize. | |
make sure that "mod-mpm-prefork" is checked under "Apache MPM". | |
make sure that " | |
mod-env, mod-headers, mod-passenger >>> old cpanel ea-ruby27-mod_passenger, ea-apache24-mod_env, ea-nodejs16 | |
mod-proxy, mod-proxy-http, | |
mod-proxy-fcgi, mod-proxy-wstunnel, | |
mod-security2, mod-ssl, mod-unique-id" is checked under "Apache Modules". | |
# Install Softaculous for cPanel | |
- Through ssh run the following commands | |
wget -N http://files.softaculous.com/install.sh | |
chmod 755 install.sh | |
./install.sh | |
# Enable cpanel Application manager. | |
- Packages. | |
- Feature Manager. | |
- Manage Feature list, then click edit. | |
# Configure php settings. | |
- Software. | |
- MultiPHP INI Editor. | |
#Disable Allowing Anonymous Logins and Anonymous Uploads by checking no | |
- Home | |
- Service Configuration | |
- FTP Server Configuration | |
#Install spam cons | |
- Home | |
- cPanel | |
- Manage Plugins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment