Tag Archives: cPanel

How To Monitor Website Traffic & Logs Using cPanel Stats?

Monitoring website traffic and analyzing logs are crucial for understanding user behavior, diagnosing issues, and optimizing your website’s performance. cPanel provides a suite of tools that make this process simple and efficient, even for beginners. In this article, we’ll walk you through the steps to monitor website traffic and access logs using cPanel stats.

Why Monitor Website Traffic?

Tracking your website’s traffic is essential for:

  1. Understanding User Behavior: Learn who your visitors are, where they come from, and which pages they engage with.
  2. Optimizing Performance: Identify high-traffic pages and ensure they load quickly.
  3. Improving Security: Spot unusual traffic spikes or patterns indicating potential cyber threats.
  4. Planning Growth: Use traffic data to refine your marketing strategies.
Accessing cPanel Stats Tools

cPanel offers various built-in tools for monitoring website traffic and logs:

  1. AWStats: A detailed traffic analysis tool showing visitors, duration, referrers, and more.
  2. Webalizer: Provides visual graphs of traffic patterns.
  3. Raw Access Logs: Offers unprocessed logs for deeper analysis.
  4. Errors Logs: Helps identify and troubleshoot website issues.
How To Monitor Traffic Using AWStats?

AWStats is one of the most powerful tools in cPanel for analyzing traffic. Here’s how to access it:

  1. Log In to cPanel – Use your domain URL (e.g., yourdomain.com/cpanel) and log in with your credentials.
  2. Locate the ‘Metrics’ Section – Find the AWStats icon under the “Metrics” category.
  3. Select Your Domain – Click on the domain you want to monitor.
  4. Analyze Your Data – View traffic trends, unique visitors, referrers, and user agents. Use this data to improve your site’s performance and target audience better.
Monitoring Logs With cPanel

Logs provide raw information about your site’s activity. Here’s how you can use them:

The Raw Access Logs:
  • Go to the “Metrics” section in cPanel and click on Raw Access.
  • Download the logs to view visitor details such as IP addresses, requested files, and timestamps.
The Error Logs:
  • Navigate to Metrics -> Errors to see a list of recent errors encountered by your website.
  • Common errors include broken links or missing files, which you can resolve for a smoother user experience.
Tips For Effective Traffic Monitoring
  1. Set Up Analytics: Combine cPanel stats with tools like Google Analytics for deeper insights.
  2. Review Regularly: Make traffic monitoring a routine task to stay on top of trends.
  3. Optimize High-Traffic Pages: Focus on improving the performance of pages receiving the most visitors.
  4. Automate Reports: Use cPanel’s email notifications for logs and stats to stay informed.

cPanel makes it simple to monitor website traffic and logs with tools like AWStats, Webalizer, and raw logs. Regularly analyzing these stats helps you optimize your website, understand visitor behavior, and troubleshoot issues effectively. By mastering these cPanel features, you can enhance your website’s performance and achieve your business goals.

How To Use Leech Protection Effectively To Protect Your Website?

Leech Protection is a security feature in cPanel designed to prevent the misuse of shared credentials or unauthorized access to password-protected directories on your website. When enabled, it safeguards against multiple logins from a single user, which could indicate that credentials have been shared or compromised.

It ensures that sensitive areas of your website remain secure by limiting failed login attempts and taking appropriate action when these limits are breached.

This feature is particularly useful for websites with restricted content, membership portals, or sensitive information. By setting login attempt limits and redirecting violators to a custom warning page, Leech Protection ensures that your site remains secure and that user access is carefully controlled. It’s an essential tool for maintaining the integrity and privacy of your protected directories.

Here’s how you can enable and use Leech Protection effectively.

Step-1 Log In To cPanel

Begin by logging into your cPanel dashboard. You can access this through your hosting account interface.

Step-2 Find The Leech Protection Tool

In your cPanel dashboard, navigate to the Security section and locate the Leech Protection option. Click on it to open the configuration settings.

Step-3 Choose The Directory to Protect

Browse your file structure and select the directory that requires protection. This is typically a password-restricted section of your website, such as a member-only area.

Step-4 Set Login Attempt Limits

Specify the maximum number of login attempts allowed within a certain time frame. For instance, you might allow only three failed attempts within an hour. This restriction helps prevent password abuse.

Step-5 Enable & Configure Leech Protection

Activate Leech Protection for the selected directory. Define what action should be taken when the login limit is exceeded, such as redirecting users to a warning page, disabling compromised accounts, or sending email notifications.

Step-6 Customize Advanced Options

If needed, whitelist trusted IP addresses to exempt them from Leech Protection. You can also configure an email address to receive alerts whenever leeching attempts are detected.

Step-7 Save & Test Your Settings

Save your changes to enable Leech Protection. Test the feature by attempting to exceed the login limit yourself, ensuring it performs as expected.

Leech Protection is a valuable tool for maintaining the security and integrity of your website’s protected directories. Regularly review and adjust its settings to stay ahead of potential threats.

How To Prevent Hotlinking On Website Files Using cPanel?

Protecting your website’s files from hotlinking is essential for preserving bandwidth and securing your content, and cPanel makes this process straightforward. Hotlinking occurs when other sites link directly to your images, videos, or other files, causing them to load on external pages without your permission, which can drain resources and slow down your site.

With cPanel’s built-in hotlink protection, you can quickly set restrictions to block unauthorized websites from accessing and displaying your files. This guide will walk you through the steps to enable hotlink prevention on cPanel, helping you safeguard your content, reduce bandwidth theft, and maintain optimal website performance.

Start by logging into your Sangkrit.net account and then launch your hosting’s cPanel

Scroll down to ‘Security’ section and click ‘HotLink Protection’ icon.

Hotlinks Protection

This will direct you to a page showing you option for enabling and disabling hot links. By default it provides you a list including all domains and URLs of your websites where you can turn on hotlinking.

Hotlinks Protection 2

The list is editable, you can manually include or exclude domains and URLs to prevent hot links. It also provides you a text area to block access for selected file types and extensions like .jpg, .png etc.

The last text field allows you to redirect hotlink requests to a custom URL, may be your website’s home page or whatever you like.

If you are running your website over WordPress then you may also try Hotlink Protection plugin which is an easy step script coded to stop others from stealing images from your website. Another plugin called Hot Link Prevention offers you a tick-mark option to prevent images from hotlinking.

How To Configure ModSecurity To Protect Website From Cyber Attacks?

ModSecurity is a robust open-source web application firewall (WAF) designed to detect and prevent attacks on websites by monitoring and filtering HTTP traffic.

It acts as a layer of defense, helping to guard against security threats such as SQL injections, cross-site scripting (XSS), and other common vulnerabilities in web applications. By blocking or logging malicious requests, ModSecurity enhances your website’s security and helps protect your server from being compromised.

In cPanel, ModSecurity can be easily configured to meet the security needs of your site. Here’s a step-by-step guide on how to configure it:

Step-1 Log in to cPanel

Start by accessing your cPanel account.

Step-2 Locate ModSecurity

In the Security section, find and click on the ModSecurity icon. This will bring up the ModSecurity configuration panel.

Step-3 Enable Or Disable ModSecurity

ModSecurity can be enabled or disabled for individual domains on your account. Choose the domain(s) you want to configure. By default, enabling ModSecurity offers a baseline level of protection.

Step-4 Configure Rules

Many cPanel providers allow you to configure specific security rules for ModSecurity, either by uploading custom rule sets or by using pre-configured rules. If you have the option to edit or add rules, you can tailor ModSecurity’s responses to match your security needs, increasing or decreasing the sensitivity as needed.

Step-5 Test Your Configuration

Once ModSecurity is configured, it’s essential to test your website for functionality. Sometimes, ModSecurity rules can be too strict, inadvertently blocking legitimate traffic. Check your site thoroughly to ensure that all pages load correctly and that no critical functions are affected.

You may also ModSecurity logs, they can provide insights into blocked requests and potential threats. Regularly reviewing these logs will help you understand the types of attacks your site is facing, allowing you to adjust rules or security levels if necessary.

    By configuring ModSecurity through cPanel, you’re adding an essential layer of security to your website, protecting it from many of the most common web-based attacks.

    How To Reduce Website’s Image Load Times Using cPanel?

    Image optimization is the process of reducing an image’s file size without compromising its quality, enabling faster load times and improved site performance.

    This is achieved by compressing images, choosing the right file formats (like JPEG for photos and PNG for graphics), and adjusting dimensions to fit the website’s design requirements. Optimized images lead to quicker page loads, lower bandwidth usage, and better SEO rankings, enhancing user experience and site functionality across devices.

    Optimizing images is crucial to improve site load times and overall user experience. Here’s a step-by-step guide to image compression for Faster loading directly from your cPanel.

    Step 1: Log in to Your cPanel Account

    Begin by logging into your cPanel account. You’ll need access to the Images section, so ensure you’re using an account with these permissions. Once you’re on the cPanel dashboard, locate the Images icon under the Files section.

    Step 2: Access the Optimize Website Tool

    In the Images section, look for the Optimize Website tool. This tool allows you to compress and optimize images on your site with ease. Click on it to open the options for compressing images and optimizing how they load.

    Step 3: Choose Your Optimization Level

    The Optimize Website tool provides a few different options for optimization. You’ll generally see:

    • Compress All Content: This option compresses all content on your website, including images, HTML, and scripts, which may be too aggressive for some sites.
    • Compress Static Content: This choice compresses images and other static files, leaving dynamic content untouched. This option is often recommended as it reduces the size of files without altering user-generated or dynamically generated pages.

    Select the option that best suits your needs and proceed by clicking the appropriate choice.

    Step 4: Confirm Your Selection

    After you choose your optimization level, you’ll need to confirm your selection. cPanel will apply the settings to compress your images as specified. At this point, the tool will reduce the file size of your images, helping your site load faster without any noticeable quality loss for most users.

    Step 5: Review and Test Your Website

    Once the compression is complete, it’s a good idea to test your website’s load time to observe the improvements. You can use online tools like Google PageSpeed Insights or GTmetrix to see how much your load times have improved. Testing ensures that the compression has enhanced your site’s performance effectively.

    By following these steps, you can easily compress and optimize your website’s images from cPanel, improving load times and offering a smoother experience for your users.

    How To Easily View & Edit Hidden Files On Your Web Hosting?

    Hidden files on a server or hosting are invisible by default. They start with a dot (.), such as .htaccess or .env. These files are typically not displayed as they are considered system or configuration files used by the server to manage server settings or website behavior.

    For example, .htaccess can control server rules for a website, while .env files store environment variables for web applications.

    To edit hidden files on your server or hosting, you will need to change the file manager settings to view and edit such files –

    Step 1 Access your cPanel account.

    Step 2 Locate the file manager and click the “File Manager” icon.

    Step 3 In the File Manager, click “Settings” at the top right, check the “Show Hidden Files (dotfiles)” option, and click “Save.”

    Step 4 Navigate to the directory where the hidden file (such as .htaccess) is located.

    Step 5 Right-click the file, select “Edit,” make the necessary changes, and save.

    That’s it. You may ensure the modifications work correctly on your website.

    When editing hidden files on a server, follow some precautions to avoid disrupting your website functionality or any server configurations.

    Always create a backup before making changes, so you can restore the original if needed. This can be easily done by double-clicking to download the file.

    Be cautious with syntax, as even minor mistakes can cause errors. For instance, editing .htaccess improperly could restrict the site access. So make incremental changes and test the site thoroughly after each edit. You may also use a staging environment to test changes before applying them to the live website.

    cPanel Hosting Explained: A Beginner’s Guide To Building Website

    cPanel Hosting is a user-friendly web hosting service that provides an easy control panel to manage your website’s backend, hosted on a server.

    The cPanel interface simplifies managing your website’s resources, such as files, databases, email accounts, domains, and security settings. It allows users to perform tasks like installing software, monitoring website statistics, and managing FTP accounts without requiring advanced technical skills.

    How To Use cPanel To Make Your Website?

    Step1 Register a Domain Name

    Start by purchasing a domain name from Sangkrit.net. Choose a name that aligns with your brand or business.

    Step-2 Subscribe to cPanel Hosting

    Go to the hosting section at Sangkrit.net and subscribe to a suitable cPanel hosting plan based on your requirements (disk space, bandwidth, etc.).

    There are various hosting plans at Sangkrit.net:

    1. Starter Hosting: Offers 1 website, 30 GB storage, unmetered bandwidth.
    2. Economy Hosting: Offers 1 website, 100 GB space, unlimited bandwidth, 100 email accounts, and 10 MySQL databases.
    3. Deluxe Hosting: Offers Unlimited websites, space, and bandwidth, 500 email accounts, and 25 MySQL databases.
    4. Ultimate Hosting: Offers Unlimited websites, space, bandwidth, 1000 email accounts, unlimited MySQL databases, double processing power & memory, premium DNS, and a 1-year SSL certificate.

    These options offer increasing resources and features based on the plan and its pricing.

    Step-3 Access the cPanel Dashboard

    After subscribing, you’ll be able to access your cPanel dashboard from your account’s ‘My Products’ page. It takes a minute and the automated process will let you add your domain name to your cPanel hosting and then access the cPanel admin area where you can upload or make your website.

    Step-4 Make Website With WordPress

    1. In the cPanel dashboard, locate the “Installatron” application installer.
    2. Click on WordPress and follow the prompts to install it on your domain.
    3. Select the domain name, configure the installation settings, and click “Install.”
    4. Once installed, configure WordPress settings such as the website title, permalinks, and general settings to suit your needs.
    5. To start managing your website, log in to the WordPress dashboard using your admin username and password (set during installation).
    6. Choose a theme from the “Appearance” section to define your website’s look and feel.
    7. Install plugins to add functionality (e.g., Social Sharing, SEO tools, contact forms, etc).
    8. Add pages, posts, images, and other content from the WordPress admin dashboard.

    Step-5 Ensure Website Security

    Regularly update WordPress, themes, and plugins, keep website backups, and use cPanel’s security tools to manage SSL certificates and malware scans.

    cPanel hosting at Sangkrit.net is ideal for beginners and experienced web developers. It offers a powerful and intuitive platform for website management.

    How To Prevent Online Directory Browsing Or Listing Via cPanel?

    Directory listing is a default server feature that shows the contents of a directory (folder) when there is no index file such as index.php or index.html in the folder.

    When directory listing is enabled, visitors can see a list of all files and subdirectories within that directory and they can also download any file, and that might pose a security risk as it may expose any sensitive files or configuration information.

    Disabling directory listing prevents such exposures, it forces the server to show a “403 Forbidden” error if there is no index file.

    This can either be done manually by adding a line of code on .htaccess file as shown below:

    Step-1 Open your cPanel dashboard.

    Step-2 Go to “File Manager” and open the root directory of your website (usually public_html) or any directory where you want to disable directory listing.

    Step-3 Look for the .htaccess file in the root directory.

    Step-4 If it doesn’t exist, create a new file named .htaccess.

    Step-5 Add this line inside the .htaccess file: “Options -Indexes”

    Step-6 Save the file and exit.

      Directory listing is now disabled for your site.

      Alternatively,

      Step-1 On cPanel, navigate to the “Advanced” section,

      Click the “Indexes” link or icon.

      Step-2 Click the folder icon and enter a directory

      Step-3 Click the directory name to configure a directory and turn indexing on or off.

      Step-4 Select the “No Indexing” option

      Step-5 Click the “Save” button.

        Another way of doing the same thing is:

        Step-1 Navigate to the “File Manager”

        Step-2 Right-click the directory and select “Manage Indices”.

        Step-3 This automatically takes you to the “Indexes” page (where we were in step 2 of the above method).

        Step-4 Click the folder icon and enter a directory

        Step-5 Click the directory name to configure a directory and turn indexing on or off.

        Step-6 Select the “No Indexing” option

        Step-7 Click the “Save” button.

          Following any of the above methods is going to disable the directory listing.

          How To Create And Manage SRV Records Using cPanel?

          An SRV (Service) record is a DNS record that defines the location of services on a domain, such as SIP (Session Initiation Protocol), XMPP (Extensible Messaging and Presence Protocol), or game servers. Unlike other DNS records like A records (which map domain names to IP addresses), SRV records help identify a service’s hostname, port, and priority on a domain, allowing different services to be hosted on separate servers.

          An SRV record has the following components:

          • Service: The name of the service (e.g., _sip for SIP or _xmpp for XMPP).
          • Protocol: Either TCP (Transmission Control Protocol) or UDP (User Datagram Protocol), which defines the protocol used by the service.
          • Priority: Similar to MX records, the priority dictates which server should be used first when multiple are available (lower numbers represent higher priority).
          • Weight: Specifies the relative weight for records with the same priority. It helps in load balancing, where a higher weight means more traffic should be directed to that server.
          • Port: The port number through which the service is accessible (e.g., 5060 for SIP).
          • Target: The hostname of the server providing the service (e.g., server.example.com).

          For instance, an SRV record might be used to define that a particular service (e.g., SIP) should be resolved to a specific hostname on a particular port, while also specifying which server should be tried first (via priority).

          Why You Might Use an SRV Record

          1. VoIP (Voice over IP): SRV records are frequently used to direct voice traffic for services like SIP to the correct server.
          2. XMPP/Jabber: To direct instant messaging traffic via XMPP servers.
          3. Load Balancing: Distribute network traffic across multiple servers with the same priority and weight.
          4. Game Servers: To resolve different game servers to different addresses or ports.

          How To Create An SRV Record On cPanel?

          If you’re hosting your website or services with cPanel, you can easily create an SRV record to help route traffic to specific services on your domain.

          Follow these steps to create an SRV record in cPanel:

          Step-1 Log into cPanel

          Access your cPanel control panel using your login credentials. Typically, the URL is yourdomain.com/cpanel.

          Step-2 Go to the Zone Editor

          Find and click on Zone Editor in the Domains section of the cPanel dashboard. This is where you manage DNS records for your domain.

          Step-3 Select the Domain

          Once you’re in the Zone Editor, you’ll see a list of your domains. Find the domain where you want to create the SRV record and click Manage.

          Step-4 Add SRV Record

          In the Manage section, click on + Add Record (usually near the top of the page). From the dropdown, select SRV Record.

          Step-5 Fill in the SRV Record Details:

          • Service: Enter the name of the service, starting with an underscore (e.g., _sip or _xmpp).
          • Protocol: Enter the protocol, also with an underscore (e.g., _tcp or _udp).
          • Priority: Choose a priority number (e.g., 1 for the highest priority).
          • Weight: If you want load balancing between multiple servers, set a weight (e.g., 5). If you’re not load balancing, you can set this to 0.
          • Port: Enter the port number on which the service is hosted (e.g., 5060 for SIP).
          • Target: Enter the hostname of the server (e.g., sip.example.com) where the service is running.

          Step-6 Set the Time-to-Live (TTL)

          TTL determines how long the SRV record is cached. The default value is usually fine, but you can set it lower (e.g., 300 seconds) if you want updates to propagate quickly.

          Step-7 Save the Record

          Once you’ve filled in all the necessary details, click Save or Add Record to finalize the creation of your SRV record.

          Step-8 Test Your SRV Record

          After adding the SRV record, it may take a few minutes to propagate. You can test it using tools like DNS lookup services or the command line (e.g., nslookup for Windows or dig Linux/Mac).

          Depending on the service you’re configuring (e.g., SIP server or XMPP), you may need to update the client or server settings to start using the new SRV record.

          Finally, ensure the SRV record works correctly by monitoring the service traffic to the specified target and port. Double-check the values (especially protocol, port, and target) if there are issues.

            This way, you can efficiently create an SRV record for your domain in cPanel, ensuring your services are properly routed and functioning smoothly.

            How To Quickly Start A Website On Your Domain Name?

            Here are the simple steps to register a domain name, subscribe to cPanel hosting, install WordPress, and manage your site on Sangkrit.net:

            1. Register Domain: Visit Sangkrit.net, search for your desired domain name, and complete the purchase.
            2. Subscribe to cPanel Hosting: Subscribe to a cPanel hosting plan during domain registration when the system prompts you to add hosting.
            3. Access Your Hosting: Navigate to your account’s ‘My Products’ section and click ‘Setup’ next to your hosting to enter your domain name. Next, click ‘Manage’ to access your hosting’s cPanel.
            4. Install WordPress via Installatron: On cPanel, navigate to Installatron, select WordPress, and install it.
            5. Manage Website from WordPress Admin: After WordPress installation, click the admin URL to access the admin dashboard and manage your website content.

            You can access your WordPress dashboard by visiting yourdomain.com/wp-admin, and logging in with the credentials you created during installation. From the WordPress admin area, you can customize your site, install themes, add plugins, and create content.

            How To Restore MySQL Databases Using cPanel?

            In the previous lesson, you learned how to easily generate and download MySQL database backups anytime from the cPanel. Next is how to restore them.

            To restore a MySQL database from cPanel, you need to follow these steps:

            Step 1: Log into cPanel

            Open your browser and log into your cPanel account by entering your username and password.

            Step 2: Access the Backup Feature

            Once logged in, scroll to the Files section on the cPanel dashboard. Click on Backup or Backup Wizard.

            Step 3: Choose the Database Restore Option

            Under the Restore a MySQL Database section, locate the Restore a MySQL Database Backup option. Select this to begin the process.

            Step 4: Upload Your Database Backup

            Click the Choose File button and select the .sql or .gz backup file you downloaded. After selecting the file, click on Upload or Restore to initiate the restoration process.

            Step 5: Completion

            Once the file is uploaded, cPanel will automatically restore your database. As soon as the restoration is complete, you will receive a confirmation message.

            By following these steps, your MySQL database will be successfully restored in cPanel.

            How To Backup & Download MySQL Databases Using cPanel?

            You can easily generate and download MySQL database backups anytime from the cPanel, by following these steps:

            Step 1: Log into cPanel

            Open your browser and log into your cPanel account by entering your username and password.

            Step 2: Access the Backup Feature

            Once logged in, navigate to the Files section on the cPanel dashboard. Click on Backup or Backup Wizard, both of which allow you to back up your database.

            Step 3: Choose the Database Backup

            If you’re using the Backup Wizard, choose the option to back up a specific part of your site. Under the Partial Backups section, locate the Download a MySQL Database Backup option. A list of databases will appear; select the name of the database you wish to back up.

            Step 4: Download the Backup

            After selecting the database, the backup process will begin automatically. Your browser will prompt you to download the .sql or .gz file. Save the backup file to your local computer.

            This backup file can be used for future database restoration.

            How To Use Internationalized Domain Names?

            A domain name that is in your local language or doesn’t use English alphabets or has some special characters is called Internationalized domain name. Earlier you learned about registering domain names in your local language. Once you do that, you will need to add it to your hosting so you can make a website over it.

            The process of adding an Internationalized Domain Name is different from adding a general domain name. This lesson gives you an easy step-by-step process of adding such domains to your cPanel hosting.

            To add a domain with international characters (IDN – Internationalized Domain Name) in cPanel, follow these steps:

            1. Convert the domain to Punycode: International domains with non-ASCII characters need to be converted into a format called “Punycode” to be compatible with the Domain Name System (DNS).
            2. Use Punycode Converter: Use an online converter like Punycoder or any other tool to convert your international domain (e.g., täst.com) into its Punycode equivalent (e.g., xn--tst-qla.com).
            3. Log in to cPanel: Access your cPanel dashboard by logging in through your hosting provider.
            4. Navigate to Domains Section: In cPanel, go to the “Domains” section and click on Addon Domains or Aliases, depending on how you want to manage the domain.
            5. Enter the Punycode Version of the Domain: In the “New Domain Name” field, enter the Punycode version of the domain (e.g., xn--tst-qla.com). cPanel will handle the domain using its ASCII representation.
            6. Complete the Process: Fill in the necessary details, such as the subdomain or document root, and click Add Domain.
            7. DNS Configuration: Make sure your domain’s DNS is pointed correctly to your hosting server by updating your domain’s DNS settings at your domain registrar.

            Once you’ve added the domain, you’ll be able to manage it just like any other domain in cPanel. The international version of the domain (with the special characters) will still function properly, even though cPanel recognizes it in Punycode.

            How To Auto Repair Any MySQL Database?

            Repairing a MySQL database is important when you’re facing issues like database corruption or errors on your WordPress or any other website using MySQL.

            There are many options to repair a broken MySQL database and each option depends solely on your issue with your database. This lesson explains to you the easy and automatic option you can use on your web hosting at Sangkrit.net.

            How To Fix Database Using Database Repair Function On cPanel?

            The easiest option is to use a database repair feature called Repair DB on the cPanel of your hosting account.

            Step-1 Access it by logging into your hosting’s cPanel and then navigating MySQL Databases under the databases section.

            Step-2 Here you will find another section called “Modify Databases”. From the “Repair DB” option there is a drop-down menu containing all the databases associated with your account.

            Step-3 Choose the database you need to repair and then click on the “Repair DB” button.

            Step-4 Now the system will examine your database by processing simple checks and if it finds any errors it will fix them automatically.

            Step-5 After completion, check your website or application to ensure that the issues have been resolved and everything is functioning correctly.

            How To Fix Database Using phpMyAdmin?

            Login to hosting’s cPanel, navigate to databases section, click phpMyAdmin and follow the steps:

            Step-1On phpMyAdmin administration page’s left pane, click the name of the database that you want to repair.

            Step-2 In the right pane, tick the check boxes for the tables you want to repair.

            Step-3 Finally, using the selected list box, select Repair table.

              After completion, phpMyAdmin will show you the success notification on the database repairing process.

              Repairing your MySQL database using cPanel is a quick and efficient way to resolve database-related errors and keep your website running smoothly.

              How To Install Mediawiki Using Installatron On cPanel?

              MediaWiki is a free software coded in PHP. It is among the most popular wiki applications. The cPanel of Sangkrit.net hosting allows you to install this useful software on your domain, subdomain, or subdirectory within a few clicks.

              To start, make sure you own a domain name and have a Sangkrit.net web hosting account.

              Step-1 First, log in to your Sangkrit.net account and launch your hosting cPanel. From the cPanel home screen, scroll down to the ‘Software/Services’ section and click ‘Installatron’.

              How To Start A Mediawiki Website From cPanel? 1

              Step-2 Click ‘Application Browser‘ tab.

              How To Start A Mediawiki Website From cPanel? 2

              Step-3 From the list of website building applications scroll to ‘Mediawiki’ and click it.

              How To Start A Mediawiki Website From cPanel? 3

              Step-4 It directs you to a page showing information about Mediawiki, click ‘+ install this application‘ button.

              How To Start A Mediawiki Website From cPanel? 4

              Step-5 Use the dropdown for selecting domain/subdomain wherever you like installing the Mediawiki system. If you want you can also install it on subdirectory.

              How To Start A Mediawiki Website From cPanel? 5

              For example: Let say you are already running a website on your main domain and you want to run Mediawiki website from a sub-directory like yourdomain.com/wiki address, then simply type the name of the sub-directory.

              How To Start A Mediawiki Website From cPanel? 8

              Step-6 Now scroll a little bit down and select a language for your Mediawiki website. Type a username, and password, and give your wiki website a title.

              How To Start A Mediawiki Website From cPanel? 6
              How To Start A Mediawiki Website From cPanel? 7

              Step-7 Choose your update and backup options, then finally click the ‘+Install‘ button. Installation takes a few seconds and then you can access your Mediawiki website.

              At Sangkrit.net hosting, it will take less than a minute to put your Mediawiki website online.

              How To Easily Install Mediawiki On Your Domain?

              To manually install MediaWiki on your hosting, follow these steps:

              Step-1 Download MediaWiki

              Visit the official MediaWiki website and download the latest stable version of the software. After downloading, extract the .tar.gz or .zip file on your local computer to prepare it for uploading to your server.

              Step-2 Upload MediaWiki to Your Server

              Log in to your hosting account’s cPanel or an alternative control panel. From there, access the ‘Public HTML’ or sub-directory (wherever you want to install the wiki) on File Manager.

              Alternatively, you may use an FTP client such as FileZilla to upload the extracted MediaWiki files to your server. Choose the directory where you want MediaWiki to be installed (such as the public_html folder if it will be on your main domain).

              Step-3 Create a Database

              In cPanel, locate the section labeled MySQL Databases or something similar. Create a new database, and remember the database name. Then, create a new MySQL user and assign it to the database with full privileges. Make sure to save the database name, username, and password for later use in the installation process. You may use ‘MySQL Wizard’ option on your cPanel.

              Step-4 Run the MediaWiki Installer

              Open a web browser and visit the URL where you uploaded the MediaWiki files, for example, yourdomain.com. This will lead you to the MediaWiki installation wizard. Select your preferred language and proceed by clicking Continue.

              Step-5 Database Configuration

              When you reach the database configuration page, enter the required details. Choose MySQL as the database type, provide the name of the database you created earlier, and input the username and password associated with it. Typically, the database host is localhost, but you should confirm this with your hosting provider.

              Step-6 Configure Wiki Settings

              At this stage, name your wiki, as this will be the title that appears on your site. You will also need to create an administrative account by specifying the admin username, password, and email. Adjust other settings like email notifications or file uploads as needed.

              Step-7 Complete Installation

              Once the installation finishes, you will be prompted to download the LocalSettings.php file. Upload this file back to the root directory of your MediaWiki installation, which is the same location where you uploaded the MediaWiki files earlier.

              Step-8 Verify Installation

              Finally, visit your site’s URL to check your newly installed MediaWiki. You can log in using the admin credentials that you created during the setup process, allowing you to start customizing your wiki by adding content, extensions, and themes.

                By following these steps, your MediaWiki installation will be fully functional and ready for use.

                Automatic Installation of Mediawiki

                Installing MediaWiki via Installatron on cPanel hosting is an easy process. Installatron is a popular auto-installer available in cPanel hosting, that simplifies the installation of web applications like MediaWiki and WordPress. Here’s a step-by-step guide to help you through the process.

                Step 1. Log in to cPanel

                Begin by logging into your cPanel account, To log into your Sangkrit account, visit System.Sangkrit.net and click the Sign In button in the top-right corner. From the dropdown, select Sign In again, then enter your email or username and password in the login fields.

                If you’ve enabled two-step verification, you’ll need to enter the code sent to your phone or email.

                Once signed in, you’ll be directed to your account dashboard where you can manage your domains and other services.

                Step 2. Access Installatron

                Once you’re logged into cPanel, scroll down to the Software or Web Applications section. Here, you’ll find Installatron, click its icon.

                Step 3. Search for MediaWiki

                In the Installatron dashboard, you’ll see a variety of applications that can be installed. Either search for MediaWiki in the search bar or scroll down until you find it listed under the Content Management section. Once you locate MediaWiki, click on it.

                Step 4. Start the Installation

                On the MediaWiki page in Installatron, click the Install this application button. This will open the installation configuration options.

                Step 5. Configure the Installation

                You will now be presented with several configuration options for your MediaWiki installation:

                • Domain: Choose the domain or subdomain where you want MediaWiki installed. You can select a subfolder if you want to install it at yourdomain.com/wiki, for example.
                • Version: Ensure the latest version of MediaWiki is selected.
                • Directory: If you want to install MediaWiki in a specific directory (e.g., yourdomain.com/wiki), enter the directory name here. If you leave it blank, MediaWiki will be installed on the root domain (e.g., yourdomain.com).
                • Administrator Username & Password: Set the username, password, and email address for the admin account of your MediaWiki site.
                • Website Title: Enter the name of your wiki.
                • Database Settings: You don’t need to worry about creating the database manually unless you prefer to do so, Installatron will handle this automatically.

                Step 6. Advanced Settings (Optional)

                If you want more control, you can expand the Advanced settings to configure things like automatic updates, backups, and language preferences. However, the default settings should work for most users.

                Step 7. Process the Installation

                After filling in the required details, click the Install button at the bottom of the page. Installatron will begin the installation process, which may take a few minutes.

                Step 8. Access Your MediaWiki Website

                Once the installation is complete, Installatron will provide a link to your new MediaWiki site, along with login details for the admin account. You can now visit your site and start customizing your wiki.

                This way, you can manage and update your MediaWiki installation easily through Installatron, including setting up automatic backups and updates.

                By following these steps, you’ll have MediaWiki installed and running on your cPanel hosting account in no time. Comment below if you need any additional help.

                Finding Your Hosting Or Server’s IP Address: cPanel, Plesk & More

                When you need to manually update the DNS for your domain to point it to your website or when you don’t want to change the name servers as you are using some custom MX records for email or whatever may be the reason you will need to find the IP address of your website’s hosting or server to use it on DNS settings of your domain.

                To find the IP address, simply log in to your Sangkrit.net hosting account then visit the ‘My Products’ page and follow the steps:

                Finding IP Address On Managed WordPress

                1. On Managed WordPress, click the Settings button.
                2. Click the DNS tab. Your IP address is located under Value.

                Finding IP Address On cPanel Hosting

                1. Visit your cPanel Hosting.
                2. Click Server Information from the right sidebar.
                3. You will find the hosting’s IP address.

                The above process works for cPanel Hosting’s paper lantern view, if you are using classic view then you will find your hosting’s IP address on the left sidebar.

                In case it is not there then at the bottom of the sidebar, click the ‘More Stats’ option and it will open a group of other server information and statistics where you will find the IP address.

                Finding The IP Address On Plesk Hosting

                If you are using Plesk hosting, you can find your server’s IP address there.

                1. Log in to your Plesk control panel.
                2. On the dashboard, navigate to Websites & Domains.
                3. Click on Hosting & DNS and then go to Web Hosting Access. You’ll find the IP address listed there.

                Finding The IP Address On Hosting’s Client Area

                Most hosting options have a client area or dashboard where the server’s IP address is listed.

                1. Log in to your hosting’s client area.
                2. Look for a section that provides hosting details.

                The IP address is often listed under DNS Settings, Server Details, or Account Information.

                Finding The IP Address Via SSH (Especially for Self Managed Dedicated & VPS Servers)

                If you have SSH access to your server, you can use the terminal or command prompt to find the IP address.

                Open the Command Prompt (Windows) or Terminal (Mac/Linux) and use the command to access your server via SSH:

                ssh username@yourdomain.com

                After login type:

                ifconfig

                Or

                ip a

                The output will show your server’s IP address under the inet section.

                By Contacting Online Support

                If you’re unable to find your server’s IP address through the methods above, you can always contact your support team, and they will provide you with the necessary details.

                This way you would be able to locate your hosting or server’s IP address with ease.

                How To Search And Replace Across The MySQL Database Via cPanel?

                There are several scenarios where someone might need to edit or perform a search and replace operation on MySQL database tables. The reasons for editing MySQL database can be website migration, updating URLs, migrating to HTTPS, fixing errors, replacing content, etc.

                To search and replace across a MySQL database via cPanel, follow these steps:

                Step 1: Access phpMyAdmin in cPanel

                1. Log in to cPanel: Use your username and password to access your cPanel account.
                2. Open phpMyAdmin: Scroll down to the “Databases” section and click on phpMyAdmin.

                Step 2: Select the Database

                1. Choose Your Database: In phpMyAdmin, locate the list of databases on the left-hand side. Click on the database where you want to perform the search and replace operation.
                2. Backup Your Database (Optional but recommended): Before making any changes, it’s wise to back up your database. You can do this by selecting Export at the top menu and saving the file to your local computer.

                Step 3: Execute the Search and Replace Query

                1. Go to the SQL Tab: Once your database is selected, click the SQL tab at the top of the phpMyAdmin interface.
                2. Enter the SQL Query: In the query box, enter the following SQL command and click the ‘Go’ button.

                UPDATE table_name
                SET column_name = REPLACE(column_name, ‘old_value’, ‘new_value’);

                • Replace table_name with the name of the table you want to update.
                • Replace column_name with the name of the column where the search and replace should occur.
                • Replace 'old_value' with the text you want to search for.
                • Replace 'new_value' with the text you want to replace it with.

                For example, if you want to replace all instances of “oldsite.com” with “newsite.com” in the wp_posts table under the post_content column, the query would look like this:

                UPDATE wp_posts
                SET post_content = REPLACE(post_content, ‘oldsite.com’, ‘newsite.com’);

                Clicking the Go button will execute the query. phpMyAdmin will now search for the old value and replace it with the new one.

                Step 4: Review the Changes

                1. Check the Results: After running the query, review your website or relevant database entries to ensure the search and replace operation works correctly.
                2. Restore from Backup if Necessary: If something goes wrong, you can restore your database using the backup you created earlier.

                Step 5: Repeat for Other Tables (If Necessary)

                If you need to perform the search and replace across multiple tables or columns, repeat the process, adjusting the table_name and column_name values as needed.

                Remember:

                • To be cautious when performing database operations, as they can affect your website’s functionality.
                • Always back up your database before making significant changes.
                • Consider using a WordPress plugin like Better Search Replace for more complex or extensive search and replace operations, especially if you’re dealing with serialized data.

                Easily Enable Secure Two-Factor Authentication In cPanel

                Two-factor authentication (2FA) is an essential security feature that adds an extra layer of protection to your cPanel account. By requiring a second form of verification in addition to your password, 2FA significantly reduces the risk of unauthorized access. Here’s a step-by-step guide on how to enable Two-Factor Authentication in cPanel.

                Step 1: Log in to Your cPanel Account

                • Open your web browser and log in to your Sangkrit.net account
                • Navigate to the ‘My Products’ page and open the cPanel of VPS or Server
                • Or Open your cPanel login page via its URL
                • Enter your username and password to log in

                Step 2: Access the Two-Factor Authentication Feature

                • Once logged in, locate the Security section on your cPanel dashboard.
                • Click on Two-Factor Authentication.

                Step 3: Set Up Two-Factor Authentication

                Configure 2FA:

                • Click on the Set Up Two-Factor Authentication button to begin the setup process.

                Scan the QR Code:

                • You will be presented with a QR code that needs to be scanned using an authenticator app on your smartphone. Popular authenticator apps include Google Authenticator, Authy, and Microsoft Authenticator.
                • Open your chosen authenticator app and use it to scan the QR code displayed in cPanel.

                Enter the 2FA Code:

                • After scanning the QR code, your authenticator app will generate a 6-digit verification code.
                • Enter this 6-digit code in the Security Code field provided in cPanel.
                • Click on the Configure Two-Factor Authentication button to complete the setup.

                  Step 4: Verify and Confirm

                  Confirmation:

                  • Once the 2FA is configured, you will see a confirmation message indicating that Two-Factor Authentication has been successfully enabled.

                  Backup Codes:

                  • Some systems provide backup codes during the setup process. These codes can be used to access your account if you lose access to your authenticator app. Ensure you save these codes in a secure location.

                    Step 5: Test Two-Factor Authentication

                    Log Out:

                    • Log out of your cPanel account to test the Two-Factor Authentication setup.

                    Log In Back:

                    • Enter your username and password as usual.
                    • You will now be prompted to enter a verification code from your authenticator app.
                    • Open your authenticator app, retrieve the 6-digit code, and enter it into the Two-Factor Authentication field.
                    • Click login to access your cPanel account.

                      Common Issues

                      Time Synchronization:

                      • Ensure that the time on your smartphone and the server are synchronized. Incorrect time settings can cause the verification codes to be invalid.

                      Authenticator App Issues:

                      • If you encounter issues with the authenticator app, try reinstalling it or use a different authenticator app to set up 2FA.

                      Backup Codes:

                      • If you lose access to your authenticator app, use the backup codes provided during the 2FA setup to log in and reconfigure your 2FA settings.

                      Enabling Two-Factor Authentication in cPanel is a straightforward process that greatly enhances the security of your account. By following these steps, you can ensure that your cPanel account is protected by an additional layer of security, reducing the risk of unauthorized access. Regularly updating your security settings and keeping backup codes secure helps maintain the integrity of your account.

                      How To Protect Your Website From Spam On cPanel Hosting & Server?

                      Spam can be a significant nuisance for any website owner, clogging up email inboxes, and comment sections, and even posing security risks. Fortunately, cPanel hosting & servers offer several tools and features to help you protect your site from spam. Here’s a step-by-step guide on how to use cPanel to keep your site spam-free.

                      Setting Up Email Spam Filters

                      One of the primary sources of spam is email. cPanel provides powerful spam filtering tools to keep your inbox clean.

                      Using SpamAssassin

                      SpamAssassin is a widely used email spam filter that comes with cPanel.

                      1. Log in to cPanel: Access your cPanel dashboard by entering your username and password.
                      2. Navigate to Spam Filters: Look for the “Email” section and click on “Spam Filters” or “Apache SpamAssassin”.
                      3. Enable Spam Filters: Turn on SpamAssassin if it’s not already enabled.
                      4. Configure Settings:
                        • Auto-Delete Spam: You can choose to delete emails marked as spam automatically. Be cautious with this setting to avoid losing legitimate emails.
                        • Spam Score: Adjust the spam threshold score. Lower scores may catch more spam but can also flag legitimate emails.
                      5. Create Spam Filters: Under “Additional Configurations”, create custom spam filters based on specific criteria such as keywords, sender addresses, and more.
                      Email Filtering
                      1. Navigate to Email Filters: In the “Email” section, click “Email Filters”.
                      2. Select the Email Account: Choose the email account you want to filter.
                      3. Create a New Filter: Click “Create a New Filter” and define the conditions and actions for the filter. For example, you can move emails containing specific words to a spam folder.

                      Using BoxTrapper to Reduce Spam

                      BoxTrapper is another cPanel tool that helps reduce spam by requiring all email senders to verify their identity.

                      1. Navigate to BoxTrapper: In the “Email” section, click “BoxTrapper”.
                      2. Select an Email Account: Choose the email account you want to protect with BoxTrapper.
                      3. Enable BoxTrapper: Turn on BoxTrapper for the selected account.
                      4. Configure BoxTrapper Settings: Customize the verification process, whitelist, blacklist, and ignore list to fine-tune how BoxTrapper handles incoming emails.

                      Protecting Your Site from Comment Spam

                      If your website has a blog or allows comments, protecting it from spam comments is crucial.

                      Using cPanel’s ModSecurity

                      ModSecurity is a web application firewall that helps protect your site from various threats, including spam.

                      1. Navigate to ModSecurity: In the “Security” section, click “ModSecurity”.
                      2. Enable ModSecurity: Turn on ModSecurity for your domain. This will help block spam bots and other malicious activities.
                      Using a CAPTCHA

                      Implementing a CAPTCHA on your comment forms can help prevent spam bots from submitting spam.

                      1. Log in to your CMS: Access your website’s content management system such as WordPress.
                      2. Install a CAPTCHA Plugin: Search for and install a CAPTCHA plugin. Popular options include reCAPTCHA and WPForms.
                      3. Configure the CAPTCHA: Follow the plugin instructions to add CAPTCHA to your comment forms.

                      Securing Contact Forms

                      Spam bots often target contact forms to send spam messages.

                      1. Install a Form Plugin: Use a reputable form plugin that offers spam protection features (e.g., WPForms, Contact Form 7).
                      2. Enable Anti-Spam Features: Configure the plugin to use features like CAPTCHA, honeypot fields, or Akismet integration to filter out spam submissions.

                      Implementing DNS Blackhole Lists (DNSBL)

                      DNSBLs are used to block emails from known spam sources.

                      1. Navigate to Email Filters: In the “Email” section, click “Email Filters”.
                      2. Create a New Filter: Set up a filter that uses DNSBL to block emails from known spam IP addresses.

                      Monitoring and Adjusting Settings

                      Regularly monitor your spam filters and adjust the settings as needed. Check your spam and junk folders periodically to ensure legitimate emails are not being incorrectly flagged.

                      By leveraging the tools and features available in cPanel, you can effectively protect your website from spam. Whether it’s filtering email, securing comment sections, or implementing CAPTCHA on forms, cPanel provides comprehensive solutions to keep your site spam-free. Regular monitoring and adjusting your settings will help maintain a clean and professional online presence.

                      Plesk Vs cPanel Web Hosting, Which One Is Better For You?

                      When choosing between Plesk and cPanel, several factors should be considered, as both have distinct advantages and may be better suited to different users based on their specific needs. Here is a comparison to help you decide which one might be better for you:

                      1. User Interface

                      • Plesk: Known for its modern, clean, and user-friendly interface. It’s considered more intuitive, especially for beginners.
                      • cPanel: Has a more traditional interface that some users find cluttered. However, it is also highly functional and well-organized for those familiar with it.

                      2. Operating System Compatibility

                      • Plesk: Supports both Linux and Windows operating systems, providing greater flexibility in server environment choices.
                      • cPanel: Primarily supports Linux-based servers (CentOS, CloudLinux, RHEL, AlmaLinux, and Ubuntu), with no official support for Windows.

                      3. Features and Tools

                      • Plesk:
                        • Strong in web application management, with built-in support for Docker, Git, and Node.js.
                        • Offers a variety of extensions and integrations, including a comprehensive WordPress Toolkit.
                        • Provides robust security features like Fail2Ban, built-in firewall, and automatic SSL/TLS certificate management.
                      • cPanel:
                        • Highly popular in the hosting industry, making it easy to find hosting services and support.
                        • Offers extensive features for domain, email, and database management.
                        • Integrates with WHM (Web Host Manager) for powerful reseller and server management.

                      4. Security

                      • Plesk: Offers integrated security tools such as Fail2Ban, ModSecurity, and Let’s Encrypt for SSL certificates. Security settings are easily managed through the interface.
                      • cPanel: Also provides robust security features, including Imunify360, CSF (ConfigServer Security & Firewall), and auto-SSL for easy certificate management.

                      5. Customization and Extensibility

                      • Plesk: Known for its wide range of extensions available through the Plesk Extension Catalog, allowing extensive customization.
                      • cPanel: Supports a variety of plugins and has a strong community contributing to its ecosystem, providing numerous customization options.

                      6. Ease of Use

                      • Plesk: Often preferred by beginners due to its straightforward and intuitive design.
                      • cPanel: Favored by experienced users and web hosting professionals for its comprehensive and familiar interface.

                      7. Performance and Resource Management

                      • Plesk: Offers detailed resource usage statistics and monitoring tools, making it easier to manage server resources effectively.
                      • cPanel: Also provides excellent resource management and performance monitoring, with tools to track server load, disk space usage, and more.

                      8. Support and Community

                      • Plesk: Provides comprehensive documentation, dedicated support, and a supportive community forum.
                      • cPanel: Has extensive online documentation, a large user community, and strong support channels, making it easy to find help and resources.

                      9. Cost

                      • Plesk: Generally considered slightly more expensive than cPanel, but the difference may be justified by the additional features and support for Windows servers.
                      • cPanel: Typically less expensive, especially for small to medium-sized hosting setups on Linux servers.

                      Conclusion

                      • Choose Plesk if you need a user-friendly interface, support for both Linux and Windows, robust security features, and extensive development tools.
                      • Choose cPanel if you prefer a traditional interface, need a widely-supported Linux-based hosting solution, and require strong integration with WHM for reseller hosting and server management.

                      Ultimately, the choice between Plesk and cPanel depends on your specific requirements, familiarity with the platforms, and the hosting environment you intend to use. Both are powerful and reliable control panels with their own strengths.

                      How To Subscribe To A Plesk Or cPanel Web Hosting Platform?

                      You simply need to register your domain name and then subscribe to a Plesk Hosting plan.