How to enable Update now button for Awstats from cPanel.

In this article we’ll explain the process of manually updating your Awstats reports with the most current data by adding “Update Now” button.
By enabling “Update Now” button for Awstats, you can update your stats and get current visual statistics about visitors of your site.
Let see how it can be done.

Step 1. Login to your cpanel

Step 2. Go to FileManager

null

Step 3. Navigate to /home/username/tmp/awstats/

Step 4. Edit the .conf file (e.g. awstats.yourdomain.com.conf)

null

Step 5. Look for this line: AllowToUpdateStatsFromBrowser, set the value to 1 (AllowToUpdateStatsFromBrowser=1)

null

Step 6. Save the .conf file. When you refresh your statistics page. you will get β€˜update now’ button at the top of the page.

null

That’s all, you should now know how to manually update your Awstats statistical report on your own. πŸ™‚

Connect Your MySQL Database Remotely

If you need to connect to your mysql database using third party software that does not run on the server, such as a MySQL client on your desktop a remote MySQL connection can be made.
In this article we will show you how to connect your mysql database using third party software on your local PC.
To make this possible, first you will have to allow the connection from within cPanel for the IP address you are connecting from.

Adding an IP address to allow a remote MySQL connection

Step 1. Login to your Cpanel >> click on “Remote MySQL” under the Databases Section.

null

Step 2. Now, you will need to add the IP address into the field on the page and select “Add Host”. To get your local IP you can visit link : http://whatismyipaddress.com

null

Now, since you have added the IP address to remote MySQL connections you will be able to connect to the databases. You can add as many IP addresses as you need.

Allow all Ip’s using Wildcard entry

Step 3. If your IP address changes regularly, you can add a wildcard by using the % symbol. This will add all IP addresses in that range.

If you want to list all IP addresses in the range 192.168.92.1 to 192.168.92.255 you’d add the IP address 192.168.92.%

null

Here we are done with adding IP for remote MySQL connection. πŸ™‚
Now you can proceed with connecting remote MySQL using Navicat, Workbench or Dreamweaver

How to setup email forwarder and domain forwarder in cPanel

Email forwarding is a way to send an email that is delivered to one email address to a different email address.
Example: you have created webmaster@yourdomainname.com, info@yourdomainname.com, etc.
In this article we will show you how to setup Email Forwarders in your cPanel. Then, we will show you how to forward all email for a domain.

Creating a forwarder in cPanel

Step 1. To access the forwarders menu, log into your cPanel, and navigate to section Mail > Forwarders: .

null

Step 2. Click on Add Forwarder.

null

Step 3. Put the name of the email address you wish to forward from in the first blank field. For example: for user@yourdomainname.com, put user in the first blank field.

You can choose to what address the incoming mail should be forwarded. The other option is to choose a failure message which will be returned to the sender.

Step 4. Click on Add Forwarder to add the forwarder.

null

Make sure you have spelled both email addresses correctly when adding forwarders.

That’s it. We are done with Email Forwarding. πŸ˜‰

Now lets start with Forward All Emails For A Domain.

Step 1. Login to your cpanel and click on Forwarders in the Mail section.

Step 2. Click the Add Domain Forwarder button.

null

Step 3. Select the Domain you want to forward email from, in the drop-down box. Then, enter the domain you want to forward to. “Domain forwarding takes place only when a delivery is not successful. For example, a user sends an email to john@example1.com. If john@example1.com is an existing email address or auto responder, then the email will not be forwarded. The email will be forwarded if john@example1.com is not an existing email address or auto responder.”

null

You are finished when you see a message similar to: “File updated ‘/etc/vdomainaliases/example.com’ All email sent to example.com will now be copied to domain.com”

null

So, here we have completed both points. πŸ™‚

How to clear caching in Drupal 7

Everyone likes his site to be up and running faster. While setting up cache in Drupal can speed things up for your site and enhance the site’s overall performance. Caching is great as it keeps snapshots of data and pages so reload time is much quicker. Lets see how it can be done.
It is very easy to clear caching within Drupal 7 by following these simple steps.

Deleting the cache content in Drupal 7:

Step 1 . Log into your Drupal 7 admin dashboard.

Step 2 . On the top menu bar, locate the Configuration option and click on it.

null

Step 3 . This brings you to the main category screen of Configuration. Find subcategory option named “Development” and click on the “Performance” option.

Step 4. Once on the Performance screen, hit the button on the screen at the top named Clear All Caches.
Click Save Configuration button to apply/save changes.

null

You have now cleared out all caches in Drupal 7. πŸ™‚

Configure Mail Settings in Web.Config

If you have a contact form that sends messages to email accounts, there is some extra configuration that you have to make so that it can work. In this article I will give give you a step-by-step guide on how to configure mail settings in Web.Config:

1. Open your ASP.Net project.

2. Then open the Web.Config file of your project:

webconfig-open-asp-tutorials

3. We are going to use three tag elements:

The <system.net> element which contains the specifics on how the .net framework connect to the network.

The <mailSettings> element lets you configure mail sending options.

The <smtp> element lets you configure the delivery method and the email address.

4. Look for the <configuration> section:

configuration-tag-webconfig-arvixe-asp-hosting

5. Add this code in the web.config file:

===================

<system.net>
<mailSettings>
<smtp from=”emailaccount@exampleemail.com”>
<network host=”smtp.exampleemail.com”
port=”25″
userName=”emailaccount@exampleemail.com”
password=”emailpassword”
enablessl=”false”/>
</smtp>
</mailSettings>
</system.net>

===================

6. Save your changes and that’s it! The email has been configured!

This concludes Configure Mail Settings in Web.Config πŸ™‚