How to Fix the Error While Starting a New VPS?


Cheap reseller Hosting


This document will help to learn the techniques to overcome the errors that come when starting a new VPS. VPS is an excellent option when it comes to speed, scalability, and execution. Usually, when your website swells a shared hosting plan, you need to upgrade it to a VPS hosting plan. There are several ways to tackle an error when starting a new VPS. Here’s a breakdown of some key steps:

Part I

  1. Identify the culprit:

Error message: The first step is to examine any error messages displayed during startup. These messages often pinpoint the problem area.

  1. Resource limitations:

Check resource allocation: Make sure your VPS has enough CPU, RAM, and disk space to run the chosen operating system and applications. You can usually adjust resource allocation through your VPS provider’s control panel. If resources are limited, consider an upgrade or optimizing resource usage.

  1. Network blues:

Inspect network configuration: Verify that your VPS has the correct network settings, including IP address, subnet mask, gateway, and DNS servers. However, incorrect settings can prevent the VPS from starting properly.

  1. Delving deeper:
  • Access console (if available): Some providers offer a console where you can see detailed boot logs that might reveal the startup issue.
  • Examine logs: System logs often contain valuable information about errors during startup. The specific location may vary depending on your provider and operating system, but commonly they reside in the /var/log/ directory.
  1. Seeking help:

Contact VPS provider: If the above steps don’t solve the problem, contact your VPS provider’s support team. They have access to specific details about your VPS configuration and can offer tailored guidance.

Remember, these are general steps. The specific troubleshooting process might differ depending on the error message and your VPS provider’s setup.

Part II

While working with this process you will come across an error as mentioned below- “setlocale: No such file or directory error: failed to connect to the hypervisor error- Failed to connect socket to ‘/var/run/libvirt/libvirt-sock’: No such file or directory”

Follow the steps mentioned below to overcome the error:

  1. Firstly, you have to monitor the server status.

2. Then, run the below command to monitor the server status:
systemctl status libvirtd.service

3. If the server fails or stops, the below status will be seen:
<strong><em>systemctl start libvirtd.service</em></strong>

4. After running this command, you have to start the VPS server from the admin panel and you will see the error has been eliminated.

In conclusion, troubleshooting steps can be taken to resolve errors encountered when starting a new VPS, ensuring a smooth and successful setup process.


Cheap web Hosting


How to Enable LiteSpeed Web Cache Manager on cPanel?


Cheap reseller Hosting


LiteSpeed is a built-in caching engine that allows to boost website performance. This guide will describe the steps to enable LiteSpeed web cache manager in cPanel.Initially, you have to log in to your cPanel account with a username and password.

  1. Initially, you have to log in to your cPanel account with a username and password.

2. Once you have logged in to your cPanel the cPanel dashboard will be shown, scroll down and go to the Advanced section > LiteSpeed Web Cache Manager.

3. After logging in, you have to click on the WordPress cache icon.

4. The next step is to click on the Scan button. This will highlight all the active WordPress installations.

5. Eventually, once all the WordPress installations are discovered, you have to select the ones you want to activate and then click on Enable.

This is how you can implement these steps to use LiteSpeed web cache manager for WordPress sites on your cPanel server.

In conclusion,

enabling LiteSpeed Web Cache Manager on cPanel can significantly enhance website performance and speed, ultimately improving user experience and search engine rankings.

By following the simple steps outlined in this guide, website owners can harness the power of caching to optimize their site’s performance.

Embracing LiteSpeed Cache can lead to tangible benefits, such as reduced server load and faster page load times. Stay ahead in the digital landscape by leveraging this powerful tool to deliver a seamless and efficient web experience for your visitors.


Cheap web Hosting


How do I Create and Delete Cron Jobs/?


Cheap reseller Hosting


In this guide, you will find a technique to delete and create Cron jobs in cPanel and with Crontab. Check the two main ways to create and delete cron jobs:

1. Using cPanel:

cPanel is a web hosting control panel that allows you to manage your account. Most web hosting providers offer cPanel access. Here’s how to create and delete cron jobs using cPanel:

Creating a Cron Job:

  1. Log in to your cPanel account.
  2. In the “Advanced” section, click on the “Cron Jobs” icon.
  3. Under “Cron Email,” ensure a valid email address is entered to receive notifications about cron jobs.
  4. You can either choose a predefined schedule from the “Common Settings” dropdown menu or set a specific schedule using the individual time unit dropdown menus (Minute, Hour, Day, Month, Day of Week).
  5. In the “Command” field, enter the exact command you want to run at the scheduled time. This could be a script path or a specific command-line instruction.
  6. Click “Add New Cron Job” to save the cron job.

Deleting a Cron Job:

  1. Within the “Cron Jobs” section of cPanel, scroll down to “Current Cron Jobs.”
  2. Locate the cron job you want to delete.
  3. Under the “Actions” column, click “Delete.”

2. Using Crontab:

Crontab is a command-line utility for managing cron jobs on Linux/Unix systems. If you have direct access to the server shell, You can use crontab commands to create and delete cron jobs.

Creating a Cron Job:

  1. Open a terminal window.
  2. Use the following command to edit your crontab:

crontab -e

This command will open your crontab file in a text editor. Be cautious while editing the crontab file, as syntax errors can prevent cron jobs from running.

  • In the opened editor, add a new line with the cron expression followed by the command you want to run. The cron expression defines the schedule for the job.

For reference, you can find cron expression examples online https://www.ibm.com/docs/en/db2oc?topic=task-unix-cron-format

  • Save and close the editor.

Deleting a Cron Job:

  1. There are two ways to delete cron jobs using crontab:
  2. Delete all cron jobs:

crontab -r

  • Delete a specific cron job:

This method involves editing the crontab file and removing the specific line corresponding to the desired cron job. However, this might be not easy to identify for beginners. An alternative way is to:

  1. Use crontab -l to list all your cron jobs.
  2. Copy the remaining lines (excluding the one you want to delete) into a new file.
  3. Delete the old crontab using crontab -r
  4. Edit the new file containing the desired cron jobs (remove unnecessary lines).
  5. Use crontab – to install the new crontab containing the filtered jobs.

Remember, using crontab requires some familiarity with the command line and cron expressions. If you’re unsure, it’s recommended to use cPanel for managing cron jobs on your web hosting account.


Cheap web Hosting


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


1 2 3 4 5 27