Monthly Archives: June 2017

How to create custom error pages – DirectAdmin

This KB article is for DirectAdmin for shared hosting (end-users).

 

Error pages are HTML pages that are displayed to your site visitors on special occasions. For example if the visitor tries to access a page that doesn’t exist, the server can load a custom made 404 error page.

DirectAdmin Custom Error Pages
DirectAdmin Custom Error Pages Window

To set up a custom error page in DirectAdmin:

  1. Log into your DirectAdmin panel
  2. Locate and click the Custom Error Pages link 
  3. Here you can edit four error types:
    – 401 Unauthorized
    – 403 Forbidden
    – 404 Not Found
    – 500 Internal Server Error
  4. Let’s say you want to edit the 404 file. Click 404.shtml link.
  5. A simple HTML editor will open. Make the desired changes. At the end save the page by clicking the Save As button. Do not change the file name.
  6. Test it by accessing a file that doesn’t exist on your server, like domain.com/test1234.html
The video tutorial for this post:
Share this post:

How to filter emails in DirectAdmin

This KB article is for DirectAdmin for shared hosting (end-users).

With this DirectAdmin tool you can filter emails. Probably you will want to filter unwanted SPAM emails. This tool will help you configure email filters.

DirectAdmin Email Filters
DirectAdmin Email Filters Window

How to configure an email filter in DirectAdmin:

  1. You are connected to your account
  2. Look for SPAM Filters
  3. You can configure some blocks here:
    – Block a specific e-mail address: ____ Click the Block button to apply.
    – Block mail from an entire domain: ____ Click the Block button to apply.
    – Block all e-mail containing the word: ____ Click the Block button to apply.
    – Block all e-mail larger than: ____ KB Click the Block button to apply.
  4. There is also an Adult Filter option. Click the Enable button to enable it.
  5. Choose an action if the filter matches one of your conditions: drop email or send to spambox. Click the Save button to confirm.
The video tutorial for this KB post:
Share this post:

Manage MySQL databases with DirectAdmin

This KB article is for DirectAdmin for shared hosting (end-users).

Sooner or later, you will need databases for your site. You can configure MySQL databases and users very easily from the DirectAdmin interface.

DirectAdmin MySQL Management
DirectAdmin MySQL Management Window

To create a new database and a new user for it in DIrectAdmin:

  1. Log into DirectAdmin
  2. Navigate to MYSQL Management
  3. Click the Create new Database link
  4. Enter the database name, the database user you want to add to it, and the password for the user.
    Notice that database names and user names will begin with the DirectAdmin username followed by an underscore, like directadminusername_dbname, directadminusername_dbusername
  5. Click the Create button. The database and user will be created, you will see a confirmation message: Database Created

With this tool you can also Repair, Check and Optimize databases. Just select the database(s) and click the button for your intended action.

You can use this tool for both MySQL and MariaDB servers.

Youtube tutorial for this post:

Share this post:

Create email forwarders in DirectAdmin

This KB article is for DirectAdmin for shared hosting (end-users).

A forwarder will forward email messages received by an account to another account. The destination email can be a local email or a remote email.

DirectAdmin Forwarders
DirectAdmin Forwarders Window

 

To create a forwarder in DirectAdmin do:

  1. Login to DirectAdmin
  2. Go to Forwarders
  3. Click the Create new E-Mail Forwarder link
  4. Enter the details. First, enter the Forwarder Name. This is the email username you want to forward.

    You can also specify multiple entries in the “Forwarder Name” field: fred,bob This will simply add multiple forwarders.

  5. Enter the Destination Email. 

    Note, you can specify multiple email addresses in the “Destination Email” field if you wish: email1@domain.com,email2@domain.com

  6. Click the Create button. The new forwarder(s) will be created.

The video tutorial for this post:

Share this post:

Add a site redirect in DirectAdmin

This KB article is for DirectAdmin for shared hosting (end-users).

A site redirection will redirect URLs to one folder to another folder/domain. For example redirect http://domain.com/test1 to http://domain.com/test2

DirectAdmin Site Redirection
DirectAdmin Site Redirection Window

To create a new redirect in DirectAdmin:

  1. You should be logged in DirectAdmin
  2. Navigate to Site Redirection
  3. Here, select:
    Local URL Path – this is the path that will be redirected. It can be a file or directory.
    Redirect Type – you have three options here: 301 Permanent, 302 Temporary and 303 Replaced.
    Destination URL – the new/destination URL.
  4. Test the new redirect in your web browser to check if it works as intended.

This DirectAdmin tool will make changes to the .htaccess file from your public_html/ directory. If you want to manually configure the redirect, you can edit this files via DirectAdmin file manager(Files).

Video tutorial for this article:

Share this post:
Page 2 of 11
1 2 3 4 11