Yearly Archives: 2014

cPanel Tutorial: Domains – Addon Domains

cPanel Tutorial: Domains – Addon Domains

Through the Addon Domains feature you can add addon domains to your account. An addon domain allows you to reach a domain when entering the name of the addon domain into a browser. This means that you can host additional domains in your account.

Add an Addon Domain Detailed Tutorial

Step 1: To access the Addon Domains tool, click on the corresponding icon located on the main screen of your cPanel interface.

Step 2: Enter the name of the addon domain in the blank field next to New Domain Name.

Step 3: Enter the name of the directory which contains the subdomain that the addon domain will point to in the blank field next to Subdomain/FTP Username: (This directory will be the location for the addon domain’s files, just as public_html is the location for your primary domain’s files.)

Step 4: Type in the password for the new addon domain, and click on Add Domain!

You can upload files directly to this addon domain using the username and password for the addon domain to log in through FTP.

In order to use a domain name as an addon you need an addon slot. Addon slot is considered an upgrade and costs $30 per year. It can be ordered from your Customer’s area.

Addon domains will need to be registered with a valid domain name registrar before they can be added. Make sure that your account has the ability to use Addon domains before attempting to add one.

Please note that Addon slots price does not include the domain name itself. If you need domain names, please order them separately from your Customer area.
Remove an Addon Domain Detailed Tutorial

The Addon Domains allows you to remove addon domains from your account.

Step 1: To access the Addon Domains tool, click on the corresponding icon located on the main screen of your cPanel interface.

Step 2: To remove an addon domain, click on the Remove link next to it.
You can also redirect the addon domain to another URL using the Manage Redirection link.

How do I flush a computer’s DNS cache?

How do I flush a computer’s DNS cache?

The following article explains how to flush a computer’s DNS cache. When a computer visits a website for the first time, it stores the website’s DNS information in cache. The next time the computer visits a website, it looks in the cache to see if the website’s information is present to use. This can cause problems if the website’s DNS information has changed since the computer’s last visit. Flushing the cache removes all the information stored in cache, forcing the computer to find the new DNS information for the website.
To flush DNS for a computer running Windows, please follow these steps:

On your local machine, open a command prompt.

Within the prompt, type ipconfig /flushdns.

Joomla, suPHP and File Permissions

Since our new server infrastructure run with suPHP some client got error with Joomla installation, some user used to SET all files to 777.

777 permission is disabled.

What is phpSuExec and suPHP? They both do the same thing – provide an extra layer of security to PHP.
(su = switch user, allowing one user to “switch” to another if authorised)
PHPSuExec is no longer developed.

We use suPHP. The main reason for using suPHP is added security, but it also makes Joomla and other script more user friendly in terms of file permissions (not needing to set or change them). It is an Apache module that lets PHP scripts run as the owner of the script, instead of the web server.

This offers many security and usability enhancements to the world of PHP web serving. Mainly, when users create and modify files in their directory with PHP scripts they don’t need to make those files world-writable.

This isolates malicious or runaway scripts, avoiding unwanted or un-authorised scripts from running for a lengthy period of time.

The homepage for suPHP is :

777 Permissions

( the old less secure way – don’t set files to 777 on our servers)

With non- suPHP configurations, PHP runs as an Apache Module. It executes as the user/group of the webserver which is usually “nobody”, “httpd” or “apache”. Under this mode, files or directories that you require your php scripts to be able to write to need 777 permissions (read/write/execute at user/group/world level). This is not very secure because it allows the webserver to write to the file, it also allows anyone else to read or write to the file.

Under suPHP:

  • Any scripts that require 777 should use 755 instead.
  • Generally, set folders to 755.
  • Generally, set files to 644.

Files or directories that php scripts will write to no longer require 777 permissions. In fact, 777 permissions are no longer allowed. Having 777 permissions on your scripts or the directories they reside in will cause a “500 internal server error” when attempting to execute them, this is done to protect you from someone abusing your scripts. Your scripts and directories can now, only have a maximum of 755 permissions (read/write/execute by you, read/execute by everyone else).

Joomla Changes File Permissions When Saving ( eg. configuration.php and params.ini )

Joomla changes file permissions after saving some files to make sure they are left in a secure state. configuration.php (sets to 444)
and template params.ini (sets to 555)

The message sometimes displayed about files not being writable is to let you know the file has secure permissions. It is not a call to action to change file permissions. Normally you will not need to do anything.

If for some reason the message says the file is writable, it should change to unwritable after saving.

The best way to check if settings are indeed being edited is to save and then re-open to confirm the new settings have been written.

Joomla Under suPHP: File permissions Trouble Shooting

  1. Check that the php script that you are attempting to execute has permissions of no more than 755 – 644 will work just fine normally, this is not something that will need to be changed in most cases.
  2. Check that the directory permissions that the script resides within is set to a maximum of 755. This also includes directories that the script would need to have access to.
  3. Check that you do not have a .htaccess file with php_values within it. They will cause a 500 Internal server error, when attempting to execute the script. The php_values will need to be removed from your .htaccess file and a php.ini put in its place, containing the php directives as explained above.

How to Install WHMaster Reseller – Install – Uninstall

Here is the installation instructions… make sure you put ( n ) where it ask if you bought a license that will install the trial..

Execute the following commands from root ssh shell:


WHMPHP is built on top of cPanel. Therefore, cPanel is required to run WHMPHP. WHMPHP is compatible with any server running on cPanel.

cPanel 11+ preferred.
cPanelPHP must be compiled with cURL enabled.
VPS or Dedicated server with cPanel.


  1. rm f ;
  2. wget;
  3. sh

Once you installed, login to WHM and click on the WHMPHP link under the Plugins category. The first step you have to do is to enter your WHMPHP License key. Next, you have to import a Reseller ACL from Settings->Import ACL. You must have a Reseller ACL so that WHMPHP can assign correct reseller permissions.


  1. rm f ;
  2. wget;
  3. sh

Manual Update

  1. rm f ;
  2. wget;
  3. sh

How to bypass DNS propagation delay

There is a simple tweak you can do. Which will result in your system (PC) instantly propagate DNS.

Follow these steps :

Firstly you will need to find a file named “hosts” and open it using any text editor.

In windows, the file is in here;

Note : %windir% is the windows root directory like c:\windows

Then, you need to know your IP address. For Ex :

| New Account Info |
| Domain:
| Ip: (n)
| HasCgi: y

You’ll need to add these lines at the end of the “hosts” file.

*please note that you should not add the prefix “http://” infront of the domain names.

save the file, and you’ll be able to browse to your site immediately