<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on 0xtheM7</title><link>http://tech.himansu.com.np/post/</link><description>Recent content in Posts on 0xtheM7</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 15 Dec 2024 00:00:00 +0000</lastBuildDate><atom:link href="http://tech.himansu.com.np/post/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Create a Webmail Account in cPanel</title><link>http://tech.himansu.com.np/p/how-to-create-webmail-account-in-cpanel/</link><pubDate>Sun, 15 Dec 2024 00:00:00 +0000</pubDate><guid>http://tech.himansu.com.np/p/how-to-create-webmail-account-in-cpanel/</guid><description>&lt;img src="http://tech.himansu.com.np/p/how-to-create-webmail-account-in-cpanel/cover.png" alt="Featured image of post How to Create a Webmail Account in cPanel" />&lt;h3 id="how-to-create-a-webmail-account-in-cpanel">How to Create a Webmail Account in cPanel
&lt;/h3>&lt;p>Creating a webmail account in cPanel is an essential task for managing email addresses associated with your domain. It allows you to send and receive emails using professional domain-based email accounts (e.g., &lt;code>info@yourdomain.com&lt;/code>). In this guide, we will walk you through the steps to create a webmail account in cPanel.&lt;/p>
&lt;h4 id="step-by-step-guide-to-creating-a-webmail-account">Step-by-Step Guide to Creating a Webmail Account
&lt;/h4>&lt;ol>
&lt;li>
&lt;p>&lt;strong>Log in to Your cPanel Account&lt;/strong>&lt;/p>
&lt;p>First, log in to your cPanel account using your username and password. You can access cPanel by navigating to &lt;code>yourcooldomain.com/cpanel&lt;/code> in your web browser.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Navigate to the Email Accounts Section&lt;/strong>&lt;/p>
&lt;p>Once you&amp;rsquo;re logged in, scroll down to the &amp;ldquo;Email&amp;rdquo; section and click on &amp;ldquo;Email Accounts.&amp;rdquo; This is where you can create and manage your webmail accounts.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Click on &amp;ldquo;Create&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>In the Email Accounts interface, click the &amp;ldquo;Create&amp;rdquo; button to start the process of setting up a new email account.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Enter the Account Information&lt;/strong>&lt;/p>
&lt;p>Fill in the required details for your new email account:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Domain&lt;/strong>: Select the domain for which you want to create the email account (e.g., &lt;code>yourdomain.com&lt;/code>).&lt;/li>
&lt;li>&lt;strong>Username&lt;/strong>: Enter the desired email address username (e.g., &lt;code>info&lt;/code>, &lt;code>sales&lt;/code>).&lt;/li>
&lt;li>&lt;strong>Password&lt;/strong>: Set a strong password for the account or use the password generator provided.&lt;/li>
&lt;li>&lt;strong>Storage Space&lt;/strong>: Specify the mailbox size (in MB) or select &amp;ldquo;Unlimited.&amp;rdquo;&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Click &amp;ldquo;Create&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>After filling in the necessary details, click the &amp;ldquo;Create&amp;rdquo; button. Your new email account will be created and listed under the &amp;ldquo;Email Accounts&amp;rdquo; section.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Access Your Webmail&lt;/strong>&lt;/p>
&lt;p>To access your webmail, click on &amp;ldquo;Check Email&amp;rdquo; next to the newly created account in the &amp;ldquo;Email Accounts&amp;rdquo; section. You can choose from the available webmail interfaces like Roundcube or Horde to start using your email.&lt;/p>
&lt;p>Alternatively, you can access webmail directly by navigating to &lt;code>yourcooldomain.com/webmail&lt;/code> in your browser and logging in with your email credentials.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Configure Email Client (Optional)&lt;/strong>&lt;/p>
&lt;p>If you prefer to use an email client (e.g., Outlook, Thunderbird) or a mobile device, you can configure it using the settings provided under &amp;ldquo;Connect Devices.&amp;rdquo; cPanel provides the IMAP, SMTP, and POP3 settings required to set up your email account.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h4 id="conclusion">Conclusion
&lt;/h4>&lt;p>Creating a webmail account in cPanel is simple and allows you to maintain a professional image with domain-based email addresses. By following the steps outlined in this guide, you can easily set up and start managing your email accounts effectively.&lt;/p>
&lt;p>Get started today and make the most of your web hosting by creating webmail accounts tailored to your business needs!&lt;/p></description></item><item><title>How to Remotely Access MySQL Database Over cPanel</title><link>http://tech.himansu.com.np/p/how-to-remotely-access-mysql-database-over-cpanel/</link><pubDate>Sun, 08 Dec 2024 00:00:00 +0000</pubDate><guid>http://tech.himansu.com.np/p/how-to-remotely-access-mysql-database-over-cpanel/</guid><description>&lt;img src="http://tech.himansu.com.np/p/how-to-remotely-access-mysql-database-over-cpanel/cover.png" alt="Featured image of post How to Remotely Access MySQL Database Over cPanel" />&lt;h3 id="how-to-remotely-access-mysql-database-over-cpanel">How to Remotely Access MySQL Database Over cPanel
&lt;/h3>&lt;p>Accessing your MySQL database remotely can be useful for managing your data from anywhere. cPanel provides an easy way to set this up. This guide will walk you through the steps to remotely access your MySQL database via cPanel.&lt;/p>
&lt;h4 id="step-by-step-guide-to-remotely-accessing-mysql-database">Step-by-Step Guide to Remotely Accessing MySQL Database
&lt;/h4>&lt;ol>
&lt;li>
&lt;p>&lt;strong>Log in to Your cPanel Account&lt;/strong>&lt;/p>
&lt;p>Start by logging into your cPanel account using your username and password. You can typically access cPanel by navigating to &lt;code>yourcooldomain.com/cpanel&lt;/code> in your web browser.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Navigate to the MySQL Databases Section&lt;/strong>&lt;/p>
&lt;p>Once logged in, scroll down to the &amp;ldquo;Databases&amp;rdquo; section. Here, you&amp;rsquo;ll find the option for &amp;ldquo;MySQL Databases.&amp;rdquo; Click on it to open the MySQL database management interface.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Allow Remote MySQL Access&lt;/strong>&lt;/p>
&lt;p>In the MySQL Databases interface, you will find the option for &amp;ldquo;Remote MySQL.&amp;rdquo; This is where you can allow access to your MySQL database from remote servers. Click on &amp;ldquo;Remote MySQL&amp;rdquo; to open the settings.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Add Your IP Address&lt;/strong>&lt;/p>
&lt;p>To enable remote access, you need to add the IP address or range of IP addresses that will be accessing the MySQL database. In the &amp;ldquo;Host&amp;rdquo; field, enter the IP address or domain name of the machine that will be connecting to your MySQL database. If you&amp;rsquo;re unsure about your IP address, you can easily find it by searching &amp;ldquo;What is my IP&amp;rdquo; in a search engine.&lt;/p>
&lt;p>Once you&amp;rsquo;ve entered the IP address, click the &amp;ldquo;Add Host&amp;rdquo; button.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Create a MySQL User&lt;/strong>&lt;/p>
&lt;p>If you haven&amp;rsquo;t already created a MySQL user for remote access, you can do so from the &amp;ldquo;MySQL Databases&amp;rdquo; section. Scroll down to the &amp;ldquo;MySQL Users&amp;rdquo; section and add a new user with a secure username and password. Make sure to record these details, as you will need them for remote connection.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Grant Privileges to the User&lt;/strong>&lt;/p>
&lt;p>After creating the MySQL user, scroll down to the &amp;ldquo;Add User to Database&amp;rdquo; section. Select the user you created from the dropdown list, and then select the database you want the user to access. Click &amp;ldquo;Add&amp;rdquo; and grant the user the necessary privileges.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Connect to MySQL Remotely&lt;/strong>&lt;/p>
&lt;p>Once you&amp;rsquo;ve allowed remote access and set up the user, you can connect to your MySQL database using a MySQL client like MySQL Workbench, phpMyAdmin (remotely), or any other compatible database management tool.&lt;/p>
&lt;p>To connect, use the following details:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Host&lt;/strong>: Your server’s IP address or domain name&lt;/li>
&lt;li>&lt;strong>Username&lt;/strong>: The MySQL username you created&lt;/li>
&lt;li>&lt;strong>Password&lt;/strong>: The MySQL password for the user&lt;/li>
&lt;li>&lt;strong>Database Name&lt;/strong>: The database you want to access&lt;/li>
&lt;/ul>
&lt;p>For example:
Host: yourserver.com&lt;br>
Username: yourusername&lt;br>
Password: yourpassword&lt;br>
Database: yourdatabase&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>Use these details to set up a remote connection in your preferred MySQL client.&lt;/p>
&lt;h4 id="conclusion">Conclusion
&lt;/h4>&lt;p>Remotely accessing your MySQL database over cPanel is a straightforward process. By following the steps in this guide, you can enable secure remote access and manage your databases from anywhere. Whether you&amp;rsquo;re using MySQL Workbench or another client, cPanel&amp;rsquo;s remote MySQL feature makes it easy to connect and manage your data.&lt;/p></description></item><item><title>How to Set Up Webmail with Gmail</title><link>http://tech.himansu.com.np/p/how-to-set-up-webmail-with-gmail/</link><pubDate>Fri, 06 Dec 2024 00:00:00 +0000</pubDate><guid>http://tech.himansu.com.np/p/how-to-set-up-webmail-with-gmail/</guid><description>&lt;img src="http://tech.himansu.com.np/p/how-to-set-up-webmail-with-gmail/cover.png" alt="Featured image of post How to Set Up Webmail with Gmail" />&lt;h3 id="how-to-set-up-webmail-with-gmail">How to Set Up Webmail with Gmail
&lt;/h3>&lt;p>Integrating webmail with Gmail allows you to manage emails from your custom domain within Gmail. This feature is useful for accessing your webmail and Gmail accounts seamlessly in one interface. Follow these steps to set up your webmail with Gmail.&lt;/p>
&lt;h4 id="step-by-step-guide-to-setting-up-webmail-with-gmail">Step-by-Step Guide to Setting Up Webmail with Gmail
&lt;/h4>&lt;ol>
&lt;li>
&lt;p>&lt;strong>Log in to Your Gmail Account&lt;/strong>&lt;/p>
&lt;p>Open &lt;a class="link" href="https://mail.google.com/" target="_blank" rel="noopener"
>Gmail&lt;/a> and log in with your Gmail credentials.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Access Gmail Settings&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Click the &lt;strong>gear icon&lt;/strong> in the top-right corner.&lt;/li>
&lt;li>Select &lt;strong>See all settings&lt;/strong> from the dropdown menu.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Add Your Webmail as a Sending Account&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Navigate to the &lt;strong>Accounts and Import&lt;/strong> tab.&lt;/li>
&lt;li>In the &lt;strong>Send mail as&lt;/strong> section, click &lt;strong>Add another email address&lt;/strong>.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Configure the following:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Name&lt;/strong>: Enter your display name.&lt;/li>
&lt;li>&lt;strong>Email&lt;/strong>: Enter your webmail address (e.g., &lt;code>info@yourdomain.com&lt;/code>).&lt;/li>
&lt;li>&lt;strong>SMTP Server&lt;/strong>: Typically &lt;code>mail.yourdomain.com&lt;/code> or as provided by your hosting provider.&lt;/li>
&lt;li>&lt;strong>Port&lt;/strong>: Use &lt;code>465&lt;/code> for SSL or &lt;code>587&lt;/code> for TLS.&lt;/li>
&lt;li>&lt;strong>Username&lt;/strong>: Your webmail email address.&lt;/li>
&lt;li>&lt;strong>Password&lt;/strong>: Your webmail password.&lt;/li>
&lt;/ul>
&lt;p>Gmail will send a confirmation email to your webmail address. Log in to your webmail, open the email, and click the verification link to complete this step.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Add Your Webmail as a Receiving Account&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Go to the &lt;strong>Accounts and Import&lt;/strong> tab.&lt;/li>
&lt;li>Under &lt;strong>Check mail from other accounts&lt;/strong>, click &lt;strong>Add a mail account&lt;/strong>.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Configure the following:&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Email Address&lt;/strong>: Enter your webmail address (e.g., &lt;code>info@yourdomain.com&lt;/code>).&lt;/li>
&lt;li>&lt;strong>POP Server&lt;/strong>: Typically &lt;code>mail.yourdomain.com&lt;/code> or as provided by your hosting provider.&lt;/li>
&lt;li>&lt;strong>Port&lt;/strong>: Use &lt;code>995&lt;/code> (SSL) or &lt;code>110&lt;/code> (non-SSL).&lt;/li>
&lt;li>&lt;strong>Username&lt;/strong>: Your webmail email address.&lt;/li>
&lt;li>&lt;strong>Password&lt;/strong>: Your webmail password.&lt;/li>
&lt;li>Check the box for &lt;strong>Leave a copy of retrieved messages on the server&lt;/strong> (optional).&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Test the Setup&lt;/strong>&lt;/p>
&lt;p>Send a test email from Gmail using your webmail address as the sender. Verify that emails sent to your webmail address appear in your Gmail inbox.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h4 id="conclusion">Conclusion
&lt;/h4>&lt;p>Setting up webmail with Gmail simplifies managing emails across platforms. By following these steps, you can seamlessly integrate your webmail with Gmail for easier communication and better productivity.&lt;/p>
&lt;hr></description></item><item><title>How to Enable HTTPS from .htaccess</title><link>http://tech.himansu.com.np/p/how-to-enable-https-from-htaccess/</link><pubDate>Sun, 28 Jul 2024 00:00:00 +0000</pubDate><guid>http://tech.himansu.com.np/p/how-to-enable-https-from-htaccess/</guid><description>&lt;img src="http://tech.himansu.com.np/p/how-to-enable-https-from-htaccess/cover.png" alt="Featured image of post How to Enable HTTPS from .htaccess" />&lt;h2 id="introduction">Introduction
&lt;/h2>&lt;p>Enabling HTTPS for your website is essential to ensure secure communication between the server and the clients. This guide will show you how to force HTTPS using the &lt;code>.htaccess&lt;/code> file.&lt;/p>
&lt;h2 id="prerequisites">Prerequisites
&lt;/h2>&lt;ul>
&lt;li>Access to your cPanel account or FTP to edit the &lt;code>.htaccess&lt;/code> file.&lt;/li>
&lt;li>An SSL certificate installed on your server.&lt;/li>
&lt;/ul>
&lt;h2 id="steps-to-enable-https-from-htaccess">Steps to Enable HTTPS from .htaccess
&lt;/h2>&lt;h3 id="1-access-your-htaccess-file">1. Access Your .htaccess File
&lt;/h3>&lt;ol>
&lt;li>&lt;strong>Via cPanel&lt;/strong>:
&lt;ul>
&lt;li>Log in to your cPanel account.&lt;/li>
&lt;li>Navigate to the &lt;strong>File Manager&lt;/strong>.&lt;/li>
&lt;li>Locate and edit the &lt;code>.htaccess&lt;/code> file in the root directory of your website (usually the &lt;code>public_html&lt;/code> directory).&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;p>&lt;img src="http://tech.himansu.com.np/p/how-to-enable-https-from-htaccess/locate-htaccess.png"
width="1540"
height="415"
srcset="http://tech.himansu.com.np/p/how-to-enable-https-from-htaccess/locate-htaccess_hu21aa8adf695a67027a4f53444eab5be7_39228_480x0_resize_box_3.png 480w, http://tech.himansu.com.np/p/how-to-enable-https-from-htaccess/locate-htaccess_hu21aa8adf695a67027a4f53444eab5be7_39228_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="File Manager"
class="gallery-image"
data-flex-grow="371"
data-flex-basis="890px"
>&lt;/p>
&lt;ol start="2">
&lt;li>&lt;strong>Via FTP&lt;/strong>:
&lt;ul>
&lt;li>Connect to your server using an FTP client.&lt;/li>
&lt;li>Download the &lt;code>.htaccess&lt;/code> file from the root directory of your website.&lt;/li>
&lt;li>Open it in a text editor.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h3 id="2-add-rewrite-rules">2. Add Rewrite Rules
&lt;/h3>&lt;p>Add the following code snippet to your &lt;code>.htaccess&lt;/code> file to redirect all HTTP traffic to HTTPS:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;span class="lnt">5
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-apache" data-lang="apache">&lt;span class="line">&lt;span class="cl">&lt;span class="nt">&amp;lt;IfModule&lt;/span> &lt;span class="s">mod_rewrite.c&lt;/span>&lt;span class="nt">&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">RewriteEngine&lt;/span> &lt;span class="k">On&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">RewriteCond&lt;/span> %{HTTPS} &lt;span class="k">off&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">RewriteRule&lt;/span> ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nt">&amp;lt;/IfModule&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>&lt;img src="http://tech.himansu.com.np/p/how-to-enable-https-from-htaccess/edited-htaccess.png"
width="1114"
height="419"
srcset="http://tech.himansu.com.np/p/how-to-enable-https-from-htaccess/edited-htaccess_hu040784c83de90c648632e04b62878ee8_28664_480x0_resize_box_3.png 480w, http://tech.himansu.com.np/p/how-to-enable-https-from-htaccess/edited-htaccess_hu040784c83de90c648632e04b62878ee8_28664_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Edited htaccess"
class="gallery-image"
data-flex-grow="265"
data-flex-basis="638px"
>&lt;/p>
&lt;h3 id="3-save-and-upload-the-htaccess-file">3. Save and Upload the .htaccess File
&lt;/h3>&lt;ul>
&lt;li>If you edited the &lt;code>.htaccess&lt;/code> file via cPanel, simply save the changes.&lt;/li>
&lt;li>If you edited it locally via FTP, upload the modified &lt;code>.htaccess&lt;/code> file back to your server.&lt;/li>
&lt;/ul>
&lt;h3 id="4-verify-the-redirection">4. Verify the Redirection
&lt;/h3>&lt;p>Visit your website using &lt;code>http://&lt;/code> and ensure it redirects to &lt;code>https://&lt;/code>. You should see the padlock icon in the browser&amp;rsquo;s address bar, indicating a secure connection.&lt;/p>
&lt;h2 id="troubleshooting">Troubleshooting
&lt;/h2>&lt;ul>
&lt;li>Ensure &lt;code>mod_rewrite&lt;/code> is enabled: If the redirection is not working, make sure the &lt;code>mod_rewrite&lt;/code> module is enabled on your server.&lt;/li>
&lt;li>Check for syntax errors: Verify that there are no syntax errors in the &lt;code>.htaccess&lt;/code> file, as they can cause server issues.&lt;/li>
&lt;/ul>
&lt;h2 id="conclusion">Conclusion
&lt;/h2>&lt;p>Forcing HTTPS using the &lt;code>.htaccess&lt;/code> file is a simple yet effective way to secure your website. This redirection ensures that all traffic to your site is encrypted, providing better security for your users.&lt;/p></description></item><item><title>How to Enable CORS in cPanel</title><link>http://tech.himansu.com.np/p/how-to-enable-cors-in-cpanel/</link><pubDate>Thu, 30 May 2024 00:00:00 +0000</pubDate><guid>http://tech.himansu.com.np/p/how-to-enable-cors-in-cpanel/</guid><description>&lt;img src="http://tech.himansu.com.np/p/how-to-enable-cors-in-cpanel/cover.png" alt="Featured image of post How to Enable CORS in cPanel" />&lt;h2 id="introduction">Introduction
&lt;/h2>&lt;p>Enabling Cross-Origin Resource Sharing (CORS) is essential for web applications that need to request resources from different domains. This guide will walk you through the steps to enable CORS in cPanel, ensuring your web application can securely interact with external APIs and services.&lt;/p>
&lt;h2 id="step-by-step-guide">Step-by-Step Guide
&lt;/h2>&lt;h3 id="1-access-cpanel">1. Access cPanel
&lt;/h3>&lt;p>First, log in to your cPanel account using your username and password.&lt;/p>
&lt;p>&lt;img src="http://tech.himansu.com.np/p/how-to-enable-cors-in-cpanel/cPanel-login.png"
width="1462"
height="780"
srcset="http://tech.himansu.com.np/p/how-to-enable-cors-in-cpanel/cPanel-login_hub20eab0fb6a50f387ead9f159c57c1df_33675_480x0_resize_box_3.png 480w, http://tech.himansu.com.np/p/how-to-enable-cors-in-cpanel/cPanel-login_hub20eab0fb6a50f387ead9f159c57c1df_33675_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="cPanel Login"
class="gallery-image"
data-flex-grow="187"
data-flex-basis="449px"
>&lt;/p>
&lt;h3 id="2-open-file-manager">2. Open File Manager
&lt;/h3>&lt;p>Navigate to the &lt;strong>File Manager&lt;/strong>. This is typically found in the &lt;strong>Files&lt;/strong> section of the cPanel dashboard.&lt;/p>
&lt;p>&lt;img src="http://tech.himansu.com.np/p/how-to-enable-cors-in-cpanel/filemanager.png"
width="1871"
height="566"
srcset="http://tech.himansu.com.np/p/how-to-enable-cors-in-cpanel/filemanager_huc099d2e920591cfefd9941934f816fa6_128446_480x0_resize_box_3.png 480w, http://tech.himansu.com.np/p/how-to-enable-cors-in-cpanel/filemanager_huc099d2e920591cfefd9941934f816fa6_128446_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="File Manager"
class="gallery-image"
data-flex-grow="330"
data-flex-basis="793px"
>&lt;/p>
&lt;h3 id="3-locate-htaccess-file">3. Locate .htaccess File
&lt;/h3>&lt;ul>
&lt;li>In the File Manager, navigate to the root directory of your website. This is usually the &lt;code>public_html&lt;/code> directory.&lt;/li>
&lt;li>Look for the &lt;code>.htaccess&lt;/code> file. If you don&amp;rsquo;t see it, ensure that hidden files are visible by clicking on &lt;strong>Settings&lt;/strong> in the top-right corner and checking &lt;strong>Show Hidden Files (dotfiles)&lt;/strong>.&lt;/li>
&lt;/ul>
&lt;h3 id="4-edit-htaccess-file">4. Edit .htaccess File
&lt;/h3>&lt;ul>
&lt;li>Right-click on the &lt;code>.htaccess&lt;/code> file and select &lt;strong>Edit&lt;/strong>.&lt;/li>
&lt;li>If a dialog box appears, click &lt;strong>Edit&lt;/strong> again to proceed.&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>You may need to create a new files (.htacess), if you are unable to locate it even after enabling show hidden files&lt;/strong>&lt;/p>
&lt;h3 id="5-add-cors-configuration">5. Add CORS Configuration
&lt;/h3>&lt;p>Add the following lines to the &lt;code>.htaccess&lt;/code> file to enable CORS:&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;span class="lnt">5
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-apache" data-lang="apache">&lt;span class="line">&lt;span class="cl">&lt;span class="nt">&amp;lt;IfModule&lt;/span> &lt;span class="s">mod_headers.c&lt;/span>&lt;span class="nt">&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">Header&lt;/span> set Access-Control-Allow-Origin &lt;span class="s2">&amp;#34;*&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">Header&lt;/span> set Access-Control-Allow-Methods &lt;span class="s2">&amp;#34;GET, POST, OPTIONS, DELETE, PUT&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">Header&lt;/span> set Access-Control-Allow-Headers &lt;span class="s2">&amp;#34;Content-Type, Authorization&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nt">&amp;lt;/IfModule&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;ul>
&lt;li>Access-Control-Allow-Origin: Specifies the domains allowed to access the resources. Replace * with your specific domain if you want to restrict access.&lt;/li>
&lt;li>Access-Control-Allow-Methods: Lists the HTTP methods that are allowed.&lt;/li>
&lt;li>Access-Control-Allow-Headers: Lists the headers allowed in the actual request.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="http://tech.himansu.com.np/p/how-to-enable-cors-in-cpanel/edited-htaccess.png"
width="1067"
height="611"
srcset="http://tech.himansu.com.np/p/how-to-enable-cors-in-cpanel/edited-htaccess_hu2209627e09bde35556d3e48594a1de72_43177_480x0_resize_box_3.png 480w, http://tech.himansu.com.np/p/how-to-enable-cors-in-cpanel/edited-htaccess_hu2209627e09bde35556d3e48594a1de72_43177_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Edit .htaccess"
class="gallery-image"
data-flex-grow="174"
data-flex-basis="419px"
>&lt;/p>
&lt;h3 id="6-save-changes">6. Save Changes
&lt;/h3>&lt;p>After adding the configuration, click &lt;strong>Save Changes&lt;/strong> to apply the settings.&lt;/p>
&lt;h3 id="7-verify-cors-configuration">7. Verify CORS Configuration
&lt;/h3>&lt;p>To ensure CORS is enabled, you can use browser developer tools or an online CORS testing tool like &lt;a class="link" href="https://cors-test.codehappy.dev/" target="_blank" rel="noopener"
>CORS Test&lt;/a>. Make a request from a different origin to your server and check the response headers for the &lt;strong>Access-Control-Allow-Origin&lt;/strong> header.&lt;/p>
&lt;h2 id="conclusion">Conclusion
&lt;/h2>&lt;p>Enabling CORS in cPanel is a straightforward process that enhances the functionality of your web applications by allowing secure cross-origin requests. By following the steps outlined above, you can ensure your applications can interact with external resources seamlessly.&lt;/p></description></item><item><title>How to Add an Addon Domain in cPanel</title><link>http://tech.himansu.com.np/p/how-to-add-addon-domain-in-cpanel/</link><pubDate>Tue, 28 May 2024 00:00:00 +0000</pubDate><guid>http://tech.himansu.com.np/p/how-to-add-addon-domain-in-cpanel/</guid><description>&lt;img src="http://tech.himansu.com.np/p/how-to-add-addon-domain-in-cpanel/cover.png" alt="Featured image of post How to Add an Addon Domain in cPanel" />&lt;h3 id="how-to-add-an-addon-domain-in-cpanel">How to Add an Addon Domain in cPanel
&lt;/h3>&lt;p>Adding an addon domain in cPanel allows you to host multiple domains on a single hosting account. This is particularly useful if you want to manage multiple websites from a single control panel. In this guide, we will walk you through the steps to add an addon domain in cPanel.&lt;/p>
&lt;h4 id="step-by-step-guide-to-adding-an-addon-domain">Step-by-Step Guide to Adding an Addon Domain
&lt;/h4>&lt;ol>
&lt;li>
&lt;p>&lt;strong>Log in to Your cPanel Account&lt;/strong>&lt;/p>
&lt;p>First, log in to your cPanel account using your username and password. You can usually access cPanel by navigating to &lt;code>yourcooldomain.com/cpanel&lt;/code> in your web browser.&lt;/p>
&lt;p>&lt;img src="http://tech.himansu.com.np/p/how-to-add-addon-domain-in-cpanel/cPanel-login.png"
width="1462"
height="780"
srcset="http://tech.himansu.com.np/p/how-to-add-addon-domain-in-cpanel/cPanel-login_hub20eab0fb6a50f387ead9f159c57c1df_33675_480x0_resize_box_3.png 480w, http://tech.himansu.com.np/p/how-to-add-addon-domain-in-cpanel/cPanel-login_hub20eab0fb6a50f387ead9f159c57c1df_33675_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="cPanel Login"
class="gallery-image"
data-flex-grow="187"
data-flex-basis="449px"
>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Navigate to the Domains Section&lt;/strong>&lt;/p>
&lt;p>Once you&amp;rsquo;re logged in, Head over to the &amp;ldquo;Domains&amp;rdquo; section. Click on &amp;ldquo;Create a New Domain&amp;rdquo; to open the domain management interface.&lt;/p>
&lt;p>&lt;img src="http://tech.himansu.com.np/p/how-to-add-addon-domain-in-cpanel/addon_domain.png"
width="1591"
height="634"
srcset="http://tech.himansu.com.np/p/how-to-add-addon-domain-in-cpanel/addon_domain_hufb8baab1b7bf6443726b848d5f1f205c_49952_480x0_resize_box_3.png 480w, http://tech.himansu.com.np/p/how-to-add-addon-domain-in-cpanel/addon_domain_hufb8baab1b7bf6443726b848d5f1f205c_49952_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Domain Management"
class="gallery-image"
data-flex-grow="250"
data-flex-basis="602px"
>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Enter the New Domain Information&lt;/strong>&lt;/p>
&lt;p>In the Domains interface, you will see a form to add your new domain. You need to provide the following information:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>New Domain Name&lt;/strong>: Enter the domain name you want to add (e.g., &lt;code>example.com&lt;/code>).&lt;/li>
&lt;li>&lt;strong>Subdomain&lt;/strong>: This will be automatically filled based on the domain name you enter. You can leave it as it is.&lt;/li>
&lt;li>&lt;strong>Document Root&lt;/strong>: This is the directory where the files for your new domain will be stored. It will be automatically filled based on the domain name you enter, but you can change it if needed.&lt;br>
&lt;code>Note : Uncheck the share document root&lt;/code>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Click &amp;ldquo;Add Domain&amp;rdquo;&lt;/strong>&lt;/p>
&lt;p>After filling in all the required information, click the &amp;ldquo;Submit&amp;rdquo; button. cPanel will create the addon domain and set up the necessary directory structure.&lt;/p>
&lt;p>&lt;img src="http://tech.himansu.com.np/p/how-to-add-addon-domain-in-cpanel/domain_configuration.png"
width="934"
height="722"
srcset="http://tech.himansu.com.np/p/how-to-add-addon-domain-in-cpanel/domain_configuration_hu49c70d76f7f06ad5db5e938835aa6639_72285_480x0_resize_box_3.png 480w, http://tech.himansu.com.np/p/how-to-add-addon-domain-in-cpanel/domain_configuration_hu49c70d76f7f06ad5db5e938835aa6639_72285_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Domain Config"
class="gallery-image"
data-flex-grow="129"
data-flex-basis="310px"
>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Upload Your Website Files&lt;/strong>&lt;/p>
&lt;p>Now that the addon domain has been added, you can upload your website files to the document root directory specified earlier. You can use the cPanel File Manager or an FTP client to upload your files.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Configure DNS Settings&lt;/strong>&lt;/p>
&lt;p>If your domain is registered with a different provider, you will need to update the DNS settings to point to your hosting server. Typically, you will need to set the nameservers to those provided by your hosting provider.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h4 id="conclusion">Conclusion
&lt;/h4>&lt;p>Adding an addon domain in cPanel is a straightforward process that allows you to manage multiple websites from a single hosting account. By following the steps outlined in this guide, you can easily set up and configure an addon domain to host your new website.&lt;/p></description></item><item><title>How to install wordpress in cPanel</title><link>http://tech.himansu.com.np/p/how-to-install-wordpress-in-cpanel/</link><pubDate>Tue, 28 May 2024 00:00:00 +0000</pubDate><guid>http://tech.himansu.com.np/p/how-to-install-wordpress-in-cpanel/</guid><description>&lt;img src="http://tech.himansu.com.np/p/how-to-install-wordpress-in-cpanel/cover.png" alt="Featured image of post How to install wordpress in cPanel" />&lt;p>WordPress is one of the most popular content management systems (CMS) available today, and cPanel is a widely used control panel for web hosting. This guide will walk you through the steps to install WordPress using cPanel.&lt;/p>
&lt;h2 id="prerequisites">Prerequisites
&lt;/h2>&lt;p>Before you begin, ensure that you have:&lt;/p>
&lt;ul>
&lt;li>Access to cPanel (credentials from your web hosting provider)&lt;/li>
&lt;li>A domain name&lt;/li>
&lt;/ul>
&lt;h2 id="step-by-step-guide">Step-by-Step Guide
&lt;/h2>&lt;h3 id="step-1-log-in-to-cpanel">Step 1: Log in to cPanel
&lt;/h3>&lt;p>First, log in to your cPanel account. You can usually access it by navigating to &lt;code>yourdomain.com/cpanel&lt;/code> and entering your username and password.&lt;/p>
&lt;p>&lt;img src="http://tech.himansu.com.np/cPanel-login.png"
loading="lazy"
alt="cPanel Login"
>&lt;/p>
&lt;h3 id="step-2-find-and-open-the-wordpress-installer">Step 2: Find and Open the WordPress Installer
&lt;/h3>&lt;p>Once you&amp;rsquo;re logged in, scroll down to the &lt;strong>Software&lt;/strong> section and click on &lt;strong>WordPress&lt;/strong> under &lt;strong>Site Software&lt;/strong> or &lt;strong>Softaculous Apps Installer&lt;/strong>, depending on your hosting provider.&lt;/p>
&lt;p>&lt;img src="http://tech.himansu.com.np/p/how-to-install-wordpress-in-cpanel/wordpress-installer.png"
width="1872"
height="710"
srcset="http://tech.himansu.com.np/p/how-to-install-wordpress-in-cpanel/wordpress-installer_hub79c0a8b3a6651501012b728f8432260_107967_480x0_resize_box_3.png 480w, http://tech.himansu.com.np/p/how-to-install-wordpress-in-cpanel/wordpress-installer_hub79c0a8b3a6651501012b728f8432260_107967_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="WordPress Installer"
class="gallery-image"
data-flex-grow="263"
data-flex-basis="632px"
>&lt;/p>
&lt;h3 id="step-3-click-on-the-install-button">Step 3: Click on the Install Button
&lt;/h3>&lt;p>In the WordPress installer page, click on the &lt;strong>Install Now&lt;/strong> button.&lt;/p>
&lt;h3 id="step-4-configure-the-wordpress-installations">Step 4: Configure the WordPress Installations
&lt;/h3>&lt;p>Fill out the necessary details for your WordPress installation:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Choose Protocol&lt;/strong>: Select &lt;code>http://&lt;/code> or &lt;code>https://&lt;/code> depending on your SSL certificate.&lt;/li>
&lt;li>&lt;strong>Choose Domain&lt;/strong>: Select the domain where you want to install WordPress.&lt;/li>
&lt;li>&lt;strong>In Directory&lt;/strong>: Leave this blank to install WordPress in the root directory, or enter a folder name if you want it installed in a subdirectory.&lt;/li>
&lt;/ul>
&lt;h4 id="site-settings">Site Settings
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>Site Name&lt;/strong>: Your site&amp;rsquo;s name.&lt;/li>
&lt;li>&lt;strong>Site Description&lt;/strong>: A short description of your site.&lt;/li>
&lt;/ul>
&lt;h4 id="admin-account">Admin Account
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>Admin Username&lt;/strong>: Create a username for the WordPress admin account.&lt;/li>
&lt;li>&lt;strong>Admin Password&lt;/strong>: Create a strong password.&lt;/li>
&lt;li>&lt;strong>Admin Email&lt;/strong>: Enter your email address.&lt;/li>
&lt;/ul>
&lt;h4 id="database-settings">Database Settings
&lt;/h4>&lt;ul>
&lt;li>&lt;strong>Database Name&lt;/strong>: You can leave this as is or create a new database name.&lt;/li>
&lt;li>&lt;strong>Table Prefix&lt;/strong>: Use the default &lt;code>wp_&lt;/code> or change it for better security.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="http://tech.himansu.com.np/p/how-to-install-wordpress-in-cpanel/configurations.png"
width="1613"
height="874"
srcset="http://tech.himansu.com.np/p/how-to-install-wordpress-in-cpanel/configurations_hue4cd9c646b0720b652f4f83b2fae5d1f_97072_480x0_resize_box_3.png 480w, http://tech.himansu.com.np/p/how-to-install-wordpress-in-cpanel/configurations_hue4cd9c646b0720b652f4f83b2fae5d1f_97072_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Configuration"
class="gallery-image"
data-flex-grow="184"
data-flex-basis="442px"
>&lt;/p>
&lt;h3 id="step-5-complete-the-installation">Step 5: Complete the Installation
&lt;/h3>&lt;p>After filling out the details, scroll down and click the &lt;strong>Install&lt;/strong> button. The installation process will take a few
minutes.&lt;/p>
&lt;h3 id="step-6-access-your-new-wordpress-site">Step 6: Access Your New WordPress Site
&lt;/h3>&lt;p>Once the installation is complete, you will see a success message with the URL to your new WordPress site and the admin URL. Click on the links to visit your site and log in to the WordPress admin dashboard.&lt;/p>
&lt;p>&lt;img src="http://tech.himansu.com.np/p/how-to-install-wordpress-in-cpanel/success-message.png"
width="1506"
height="851"
srcset="http://tech.himansu.com.np/p/how-to-install-wordpress-in-cpanel/success-message_hu5ac9002d1ff7eca9b0d2b644964efbc7_90272_480x0_resize_box_3.png 480w, http://tech.himansu.com.np/p/how-to-install-wordpress-in-cpanel/success-message_hu5ac9002d1ff7eca9b0d2b644964efbc7_90272_1024x0_resize_box_3.png 1024w"
loading="lazy"
alt="Success Message"
class="gallery-image"
data-flex-grow="176"
data-flex-basis="424px"
>&lt;/p>
&lt;h2 id="conclusion">Conclusion
&lt;/h2>&lt;p>Congratulations! You&amp;rsquo;ve successfully installed WordPress using cPanel. You can now start customizing your site and creating content. If you encounter any issues, refer to the documentation provided by your hosting provider or the WordPress support forums.&lt;/p></description></item></channel></rss>