How to configure SSH keys using cPanel


Cheap reseller Hosting


Configuring SSH keys using cPanel involves generating a key pair on the server and adding the public key to your server’s authorized keys file. Here’s a breakdown of the steps:

Generating a Key Pair on cPanel:

  1. Log in to cPanel.
  2. Navigate to the Security section and find the SSH Access tool.
  3. Click on Manage SSH Keys.
  4. Click on Generate a New Key.
  5. You can choose a name for the key pair or leave the default “id_rsa”.
  6. Optionally, set a strong password for the key and click Generate Key.

Adding the Public Key to Authorized Keys:

  1. In the Manage SSH Keys section, you need to scroll down to the Authorized Keys area.
  2. Next, you have to click on Manage next to the key you just generated.
  3. A box with the public key will be displayed. You can copy the entire contents of the box.
  4. Here you’ll need to access your server through another method (like root access or a current SSH connection) and add the copied public key to the authorized_keys file located in the .ssh directory of your home directory.

Downloading the Private Key (for SSH client):

  1. Go back to the Manage SSH Keys section in cPanel.
  2. Find the key you have created under Private Keys.
  3. Click View/Download next to the key.
  4. You’ll see the option to convert the key to PPK format (if using PuTTY). Then, you have to choose the conversion if needed.
  5. Click on Download Key and save the private key securely on your local machine. This private key will be used for SSH login with your client program.

Tips:

  • Make sure to keep your private key confidential and avoid sharing it with anyone.
  • Consult your SSH client’s documentation for specific instructions on using the private key for login.

For a more detailed walkthrough, you can refer to resources like the cPanel documentation or tutorials from web hosting providers.


Cheap web Hosting


How to Move Users Between Resellers via DirectAdmin?


Cheap reseller Hosting


Introduction:

Moving users between resellers in DirectAdmin is a straightforward process that can be done through the admin interface. Here’s how:

Steps:

  1. Log in to your DirectAdmin account with administrator privileges.
  2. Navigate to the Account Manager section.
  3. Look for the option Move Users between Resellers and click on it.
  4. You’ll see a list of all user accounts currently under various resellers.
  5. Select the users you want to transfer by ticking the checkbox next to their names.
  6. From the dropdown menu, choose the reseller who will receive these users.
  7. Once you’ve selected everything, click the button MOVE USERS.

Confirmation:

DirectAdmin will display a confirmation message once the transfer is complete. You should also see the updated list reflecting the changes in reseller assignments for the chosen users.

Additional Notes:

  • This process only works for the admin user account. Resellers cannot move users between themselves.
  • It’s recommended to back up your data before making any significant changes within DirectAdmin.

Cheap web Hosting


How to Reboot a VPS/Dedicated Server via WHM?


Cheap reseller Hosting


VPS and Dedicated servers are top-notch and result-oriented servers in terms of performance. This server requires periodic maintenance. After maintenance, the server is rebooted, where you have to restart the server. You can reboot your VPS hosting or dedicated server at your comfort with the WHM panel.

There are various other reasons you need to reboot the server, for example, for software installation or configuration purposes. Still, we suggest you only restart your server when necessary, as frequent rebooting can lead to other complications.

Steps to reboot the VPS/Dedicated Server

  1. You have to log in to your WHM panel’s root account.

  2. Find and select the System Reboot option from the navigation menu.

There are two choices that you can start with, Graceful Server Reboot and Forceful Server Reboot. In severe emergencies like a hacker attack, you should select the running applications. However, there is a risk of corruption of application files because of forceful termination.

Or, you can opt for choosing the Graceful Server Reboot as it will help running processes to end before closing. Although the process may take a long time, it’s the safer option of the two:

3. Select the two options as per the requirements:

4. Click on the Proceed button.


Cheap web Hosting


How to Disable MySQL Strict Mode in Linux and Windows


Cheap reseller Hosting


MySQL and MariaDB support strict modes that allow the controlling and handling of invalid or missing values in data-changing queries. This has the following statements INSERT, UPDATE, and CREATE TABLE.

When strict mode is enabled in MySQL then invalid or missing data may cause warnings or errors when trying to move the query.

When strict mode is disabled, a similar query would have its invalid or missing values adjusted and produce a simple warning.

This may seem like the preferred result, but though strict mode is disabled, certain actions may lead to unexpected results. For example, when the character limit is exceeded, it will be shortened to fit the limit.  

There are plenty of reasons why MySQL’s strict mode may require to be disabled. The frequent reason is when a server is operating WHMCS – a requirement of the tool.

Necessities

  • Their guide is specifically for disabling MySQL strict mode on a managed server with cPanel or a Windows server.
  • The server should be accessible to MySQL 5.X or MariaDB 10.X and higher.
  • Command line and root-level access via SSH will be compulsory to follow this tutorial on Linux servers.

Disable MySQL Strict Mode

Step 1: Backup Your Data

It’s always better to have a backup before modifying server files. You have to revert changes if something goes wrong. Backups are also needed to help track changes.

Linux

When logged into SSH with the root user on Linux, with the following Bash brace expansion command to make a backup copy of the file in its original Linux directory.  

cp -a /usr/my.cnf{,.strict.bak}
cp -a /etc/my.cnf{,.strict.bak}

Windows

Windows users must identify and take a backup of the my.ini file. In the start menu, go to Settings > Update & Security > Backup > Add a drive, and then opt for the external drive or network location where you are allowed to store the backups of your machine.

Step 2: Disable MySQL Strict Mode

Based on the server and the current configurations, you may be required to edit one, or both, of the following files on the server. Generally, relevant configuration lines are available. However, it could be in either one without causing issues, so generally, it’s good to go with both.

Linux

In Linux, you can edit the files and open the file with your favorite command line editor. This guide uses Vim:

vim /usr/my.cnf

vim /etc/my.cnf

In vim, you can type a or i to enter text insertion mode; pressing the Esc key on your keyboard will take back you to command mode. For a refresher on editing files with vim, you can check articles on the web. 

Within the file, check the following line.sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

This line is setting the sql_mode variable. Replace it with the following line to disable MySQL strict mode.

sql_mode=""



After adjusting or you’ve to confirm the file that doesn’t need an adjustment, save and close the file.  Press Esc to enter command mode and type:wq to write and end the file.

Windows

The step is similar for Windows, but don’t forgot to locate and open the my.ini file from File Explorer—the standard location for its  C:\ProgramData\MySQL\MySQL Server X.X.

The escape folder is ProgramData. To show a hidden folder, go to the view tab from the menu bar, and click the checkbox next to hidden items in the Show/hide section. Once you identify the my.ini file, open it with Notepad or Notepad ++ and search the following line.

sql-mode = “STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”

Change this line in the file to get the mode to blank.

sql-mode = “”

Step 3: Restart the MySQL Service

You have to restart the MySQL service to make these changes, as it will only read the configuration files when it initially loads up.

Linux

For CentOS 7 servers, use this command.

systemctl restart mysql

For CentOS 6 and prior, write this command,

/etc/init.d/mysql restart

After furnishing this command on the server, the MySQL service will restart and load the changes. The MySQL strict mode is now disabled.

You can operate the following command to verify that the process was done properly.

mysql -e “SELECT @@sql_mode;”

Check the example of the output:

+——————————————–+ | @@sql_mode +——————————————–+ | NO_AUTO_CREATE_USER +——————————————–+


Windows

To restart MySQL in Windows, look for and open the Administrative Tools app. Just Double – Click Services. Identify and select MySQL. You are shown the following options on the left:

Stop the service: Stop the selected service.

Pause the service: Pause the selected service.

Restart the service: Restart the selected service.

Click on Restart the service which will redirect to change back to Started.

Conclusion

Disabling Strict Mode in MySQL is a painless task, regardless of why an administrator is required to disable it. Check this article to disable the MySQL Strict Mode for Linux or Windows servers.


Cheap web Hosting


How can I buy Multiple Domains at the same time?


Cheap reseller Hosting


Are you looking to buy various domains?

Not just for fun but as you’re fascinated to get it or want to buy it and later use it for business purposes or personal growth?

Reason can be anything but the question is are you able to get multiple domains at the same time?

Then, the answer is yes.

You can purchase multiple domains at the same time. Most domain registrars offer functionalities to buy domains in bulk. Here are two common methods:

Bulk search and buy: Many registrars allow you to enter a list of desired domain names, typically up to 500 at a time, and search for the same to check its availability. You can then add the available ones to your cart and purchase them together.

Bulk registration: Some registrars provide tools like “Beast Mode” (offered by Namecheap) that let you register a large number of domains (up to 50 in the case of Namecheap) at once. This is useful if you have a predetermined list of names you want to secure.

Here are some Additional points to consider:

  • Cost: While bulk buying might seem more efficient, purchasing multiple domains at once may not always be cheaper. Some registrars offer discounts for registering domains for multiple years, but this might not apply to bulk purchases.

  • TLDs (Top-Level Domains): You can consider registering variations of your desired domain name with different extensions (like .com, .net, .org). This can help with brand protection and user experience.

  • Management: Keeping track of renewal dates and managing settings can become cumbersome with a large number of domains. It is recommended to check with your preferred domain registrar to see what bulk purchase options they offer and what are their pricing structure.

Steps for using the cPanel to Search and Register Multiple Domains

This tutorial consists of general steps to search and register a multiple domain. Hence, these steps vary depending on the domain registrar service which you are using.

  1. Navigate to the Domain Management Panel: Most of registrars will have a dedicated section for managing your domains. Look for terms like “Domain Management,” “My Domains,” or “Domain Manager” on the registrar’s website.

  2. Locate the Bulk Search Option: Once you’re in the domain management panel, look for functionalities related to bulk searching or registering domains. This could be a separate tab labeled “Bulk Registration” or “Bulk Search.”

  3. Enter Your Desired Domain Names: Depending on the registrar, you might have two options:

    Enter Each Domain Separately: Some panels have a search bar for each domain. Enter your desired domain name (e.g., “yourbusinessname”) followed by the extension (e.g., “.com”).

    Upload a List of Domains: Some registrars allow uploading a text file containing a list of domain names, that too on a separate line. This can be the faster solution if you have a large number of domains.

  4. Search Availability: You have to click on the “Search” or “Check Availability” button after entering your domains. The panel will display the availability status for each domain (available or unavailable).

  5. Select Domains for Purchase: You have to select the domain and review the availability results. For available domains you want to register, check a box next to each one or use a “Select All” option if available.

  6. Configure Additional Options (Optional): Some panels might allow you to configure additional settings for your domains during bulk registration, like:

    Registration Period: Choose the registration duration (usually 1-10 years).

Privacy Protection: Enable domain privacy protection to hide your contact information publicly.

  • Add to Cart and Checkout: Once you’ve selected your desired domains and configured any settings, click “Add to Cart” or proceed to checkout. You’ll likely need to confirm your billing information and payment method before completing the purchase.

Here are some additional things to keep in mind:

  • Not all domain registrars offer bulk registration functionalities. Check your registrar’s website for details.

  • The specific interface and functionalities within the panel will vary depending on the registrar.

  • Always review the terms and conditions before finalizing your purchase.

If you’re unsure about any steps within your domain registrar’s panel, it’s always best to consult their help documentation or contact their customer support team for assistance.


Cheap web Hosting


How to check Shared Web Hosting Server Usage?


Cheap reseller Hosting


Shared hosting is the most used and demanding web hosting solution. It’s ideal for bloggers, startups, portfolios, small business users, etc.

Shared hosting allows sharing of resources with other users on the server. Likewise, on shared hosting servers there are a finite amount of resources available for usage allocated to every user.

This tutorial will help you to check your shared web hosting server usage stats:

Steps to view your current usage in real-time:

To monitor your website’s current resource usage stats:

Note: displays may vary depending on individual usage on the server.

  1. You have to log in to your website’s cPanel.
  2. After logging, you have to scroll down to the bottom section and wait on Metrics >> Resource Usage.

After clicking on “Resource Usage”. You will be redirected to resources usage page where you’ll monitor in and out of usage.

After landing on resources usage page, you can click on “Details”.           

After clicking on details button, you’ll get the resource usage detail >> where you’ve to click on time and period to get usage information.

Last, you’ll get the diagrams and tables showing detailed usage statistics.

Legend:

These terms are all related to monitoring resource usage on a system, likely a web server. Here’s a breakdown of each:

  • cpuf (CPU faults): This indicates the average CPU usage in terms of the percentage of faults. Faults are interruptions that cause the CPU to switch tasks. A higher cpuf value suggests the CPU is busy handling requests.
  • epf (entry processes faults): This refers to the average number of concurrent web server request faults. These faults occur when the server tries to handle new requests. A high epf might indicate the server is overloaded with incoming requests.
  • vmemf (virtual memory faults): This represents the maximum amount of memory allocated by process faults. Process faults happen when a program needs memory that isn’t readily available in physical RAM. A high vmemf could suggest the system is relying heavily on virtual memory, which can slow down performance.
  • NprocF (new processes faults): This indicates the number of faults related to creating new processes. A high NprocF might signify the frequent creation of new processes, which could put a strain on system resources.
  • Pmemf (physical memory faults): This refers to faults that occur due to processes allocating too much memory, causing the system to be unable to serve new client requests. High Pmemf suggests potential memory leaks or applications using excessive memory.
  • Iof (Input/Output faults): This indicates faults related to data write operations exceeding the usual time limit. High Iof could signify slow storage devices or overloaded I/O channels.
  • Iopsf (Input/Output operations per second faults): This refers to faults that occur when the amount of data written per second surpasses the usual limits. Similar to Iof, high Iopsf suggests potential bottlenecks in storage or I/O operations.

By monitoring these metrics, system administrators can identify potential performance issues and resource limitations. If you’re encountering any of these terms on your server control panel, it’s a good idea to investigate further to diagnose any underlying problems.


Cheap web Hosting


How to Set up Google Tag Manager in WordPress


Cheap reseller Hosting


Understanding exactly how visitors interact with your WordPress website will teach you a lot about its workings. Whereas analytics tools will help you to monitor certain information by default.

Simultaneously, Google Tag Manager offers an easy way to develop and manage tags on your website without understating the coding This tool will guide you to create conditions for tracking particular actions on the website, like how many times a document is downloaded, how often a link is clicked on, or how many people watched an embedded video.

This document will help you learn what Google Tag Manager is, and what are the steps to set up a Google Tag Manager in WordPress.

What is Google Tag Manager?

It is a free tracking tool that allows you to manage and deploy website tags without changing the code.

It has in-build templates that are integrated with Google Ads, Google Analytics, and other tools. With the help of its preview mode, you can monitor the tags or triggers that work well before they get published.

There are two main ways to set up Google Tag Manager (GTM) in WordPress:

1. Using a Plugin:

This is the recommended method for most users as it’s easier and doesn’t require editing theme files. Here’s how to do it:

  • Install the plugin: Search for “Google Tag Manager” in the WordPress plugin directory and install the plugin by DuracellTomi.
  • Activate the plugin: Once installed, go to “Settings” and then “Google Tag Manager.”
  • Enter your GTM container ID: You can find this ID in your GTM account under “Container”.
  • Save the settings: Now, the GTM code will be automatically added to your website’s header and body sections.

2. Editing Theme Files:

This method involves manually adding the GTM code to your theme’s header.php file. It’s a less recommended approach as it requires some technical knowledge and can be overwritten when you update your theme. Here’s how to do it:

  • Access your WordPress dashboard: Go to “Appearance” and then “Theme File Editor.”
  • Locate the header.php file: Click on the theme header file (e.g., header.php).
  • Find the <head> tag: Look for the opening <head> tag in the code.
  • Copy the GTM code snippet: Go to your GTM account and copy the provided code snippet.
  • Paste the code: Paste the first part of the code snippet just below the opening <head> tag.
  • Click on the Save button: You have to click on the “Update File” button to save your changes.

Additional Tips:

  • Backup your website: It’s always recommended to back up your website before making any changes to theme files.
  • Test your website: After adding the GTM code, ensure your website still functions correctly.
  • Use a preview and debug mode: GTM offers a preview and debug mode to help you test your tags before publishing them.

Set Up Google Tag Manager Soon!

Unleashing Google Tag Manager’s full potential in WordPress has never been this simple.

From better analytics to more personalized user experiences, Google Tag Manager on your WordPress site can make a world of difference. Ready to step up your game? Check out our step-by-step guide.

Tag or share with your friend who needs this setup on their WordPress site.


Cheap web Hosting


Steps to Install ClamAV on Webuzo


Cheap reseller Hosting


Intro

Clam AntiVirus is nothing but a free software, cross–platform antimalware toolkit that helps to find various malware including viruses.  

Install ClamAV

You can install ClamAV from the apps page. To go to the apps page, click on Installing an App under Apps in the admin panel.

Admin Panel Screenshot

After installing the ClamAV, you’ll be redirected to the admin panel of ClamAV.

Over there, you’ll see the options like;

Scan the Entire Home Directory

Scan Mail

Scan Public FTP Space

Scan Public Web Space

You have to click on the Save Changes button.

Enduser Panel Screenshot

Next, is the security section in which you’ll get various alternatives those are:

Change Password

IP Block

SSH Access

Directory Privacy

ClamAV

Imnunify360

From the above options, you have to click on the ClamAV option.

Next,

Scan Entire Home Directory — Scans your server’s home directory.

Scan Mail — Scans all of your server’s mail folders.

Scan Public FTP Space — Scans all folders that FTP users can access.

Scan Public Web Space — Scans all folders that web visitors can access.

From the above-mentioned options, you’ve to click on all options and start the scanning.  

ClamAV cron job

After configuring ClamAV, it’s suggested to schedule a root cron job to access the daily routine during off–peak hours. The following example shows a command that scans the server’s accounts.

find /home/ -mindepth 1 -maxdepth 1 -type d! -user root -exec /usr/bin/clamscan -i -r {} \; > /root/scan_results.txt

You are allowed to set up the CPU limit to a specific percentage for clamscan process.  

Note: It is compulsory to have a limit installed in your OS.

To install CPUlimit, run the below command:

For Ubuntu:

apt-get install CPUlimit

For Centos/Almalinux:

yum install cpulimit

Note: It needs CPU resources for scanning. If you decrease the CPU limit then it will consume more time to complete the scanning.

Once CPUlimit is installed then you are allowed to set the cronjob for clamscan with CPUlimit. For example, the below set command of the CPUlimit > Clamscan process is up to 80%

cpulimit -l 80 -e clamscan & id=$!; find /home/ -mindepth 1 -maxdepth 1 -type d ! -user root -exec /usr/bin/clamscan -i -r {} \; > /root/scan_results.txt; kill $id

 

 


Cheap web Hosting


How to Manually Test if an SMTP server can Receive Email


Cheap reseller Hosting


Summary:

This document will help in troubleshooting server connectivity and steps to test if MailEnable can send to remote servers. Here are two ways you can manually test if an SMTP server can receive emails:

Using Telnet:

Note: Telnet might not be enabled by default on your system. Consider alternative methods if unavailable.

Steps:

Find the MX Record:

Open a command prompt.

Type nslookup <domain_name>.

Set type to MX: set type=mx

Press Enter

The first record is the primary mail server. Note the hostname.

Connect to the Server:

Type telnet <hostname> 25. Replace <hostname> with the server name from step 1.

Send Commands:

If connected, the server will respond with a welcome message.

Send the following commands, pressing Enter after each:

HELO yourdomain.com: Introduces you.

MAIL FROM: <your_email>: Sets sender address.

RCPT TO: <recipient_email>: Sets recipient address.

DATA: Starts message content.

Type your message body (lines starting with “.” end it).

. (on a new line) to send and quit.

Analyze Responses:

Each command should receive a response code (e.g., 250 for success, 550 for error). Successful connection and message sending will show codes like 220, 250, and 354.

2. Using Online Tools:

Several online tools offer simpler testing:

These tools generally:

  • Allow entering server details and email content.
  • Send a test email and provide delivery reports.
  • Offer additional features like spam score checks.

Choosing the method:

  • Telnet offers more control and troubleshooting details.
  • Online tools are simpler and user-friendly for basic testing.

Additional tips:

  • Remember to replace placeholders like <domain_name>, <your_email>, and <recipient_email> with your actual information.
  • Be aware that some SMTP servers might not allow connections from unknown users or may require authentication.
  • If you encounter errors during the test, research the specific error code for troubleshooting.

Cheap web Hosting


How to Install CXS on the Webuzo Control Panel


Cheap reseller Hosting


Introduction

This article will help you to learn the steps of installing Config Exploit Scanner (CXS) which safeguards your server from malware and compromise.

What is CXS?

The ConfigServer eXploit Scanner (cxs) is a server malware, exploit, and anti-virus scanner that can protect cPanel and DirectAdmin servers from security threats. It performs active scanning of files as they are uploaded to the server, and it can also scan for outdated scripts and plugins that may be vulnerable to attacks.

cxs is a commercial product that is available from ConfigServer. It is licensed on a per-server basis, and there are no monthly fees. cxs is easy to install and use, and it can be configured to scan for a wide variety of malware, exploits, and viruses. If you are looking for a way to protect your cPanel or DirectAdmin server from security threats, then CXS is a good option to consider.

Here are some of the benefits of using CXS:

Protects your server from malware, exploits, and viruses.

Scan files as they are uploaded to the server.

Scan for outdated scripts and plugins.

Easy to install and use.

No monthly fees.

Here are some of the features of CXS:

Real-time scanning of uploaded files.

Scanning of existing files.

Scheduled scanning.

Email notifications for potential threats.

Quarantine of infected files.

Requirements

You need a valid CXS license for the app to run.

Click on Install App

You need to login to your Webuzo admin panel > go to Install an App page. Now, you must look for CXS in the right menu > CXS install page.

Install CXS

After clicking on the CXS Install page, hit the tab on the install button to start the installation process.

Within a second, when CXS is installed you’ll see the success message as shown in the screenshot below.

Access CXS Panel

Once CXS is installed you can operate the CXS panel by searching it from the left menu as shown in the screenshot.  


Cheap web Hosting


1 2 3 24