For all official information and updates regarding COVID-19, visit the South African Department of Health's website at www.SAcoronavirus.co.za - Read More

Archive

How to Edit or Delete Cronjob via cPanel?

How to Edit Cronjob?
1. Log into your cPanel account.

2. In the “Advanced” section, click on “Cron Jobs” Icon.

3. Scroll down to the end of page and under “Current Cron Jobs”, locate your cronjob and then click on the “Edit” button.

4. Make appropriate changes and then click on the “Edit Line” button.

How to Delete Cronjob?
1. Under “Current Cron Jobs”, locate your cronjob and then click on “Delete” button
2. Under “Delete this cron job?” text, click the “Delete” Button.

How to change PHP version on your domain using cPanel?

Some software requires older version of PHP like 5.6 while other asks for PHP7. If it happens you need either of the versions, you can switch to it from cPanel.

1. Log into your cPanel account.
2. In the “Software” section, click on the “MultiPHP Manager” Icon.

3. Scroll down to the bottom of the page, select your domain from the left side of the screen and you will see an option “PHP Version” with a drop-down menu on the right side. Select the appropriate PHP version from it and click the Apply button.

If will take a few seconds and then your PHP version will change to your selected version.

 

How to Reset the PHP Version to the Default Version, Using cPanel?

If you wish to reset the PHP version to the default version, follow these instructions:

1. Log into your cPanel account.
2. In the “Software” section, click on the “MultiPHP Manager” Icon.

3. Scroll down to the end of the page, select your domain from the left side and you will see the option “PHP Version” with a drop-down on the right side. Select the “inherit” option from the drop-down menu and click the Apply button.

If will take a few seconds, after which your PHP version will reset to the default version.

 

How to Set the PHP Version per Domain, Using cPanel?

Do you have multiple domains and you wish to set the PHP version per domain? For example, you have the domains Example1 and Example2 and you want to set PHP7 on Example2 domain and PHP 5.6 on Example1. You will need to do this from the cPanel.

1. Log into your cPanel account.
2. In the “Software” section, click on the “MultiPHP Manager” Icon.

3. Scroll down to the end of page, select your domain from the left side and you will see the option “PHP Version” with a drop-down list on the right side. Select the appropriate PHP version from the drop-down menu and then click on Apply.

4. Now that you want to set PHP 5.6 on Example2, scroll down and select the example2 domain. Then set the PHP version to 5.6.

Congratulations, both of your domains use different different PHP versions now.

 

How to Set the PHP Version per Folder?

Do you have a single domain or wish to use  different PHP version per folder? Do you have an installed PHP 5.x software in a folder/blog and want to use a PHP 7.x instead? If so, you can do this using cPanel and the .htaccess file.

1. Log into your cPanel account.
2. In the “Software” section, click on the “MultiPHP Manager” icon.

3. Assume that we are new to this and the first thing we will need to do is to get the code generated by cPanel.

4. Scroll down to the end of page, select your domain from the left side and you will see the option “PHP Version” with a drop-down list on the right side. Select the appropriate PHP version from the drop-down menu and click the Apply button.

5. Now open the /public_html/.htaccess file in the cPanel File Manager or in your FTP client and you will find the code generated by cPanel.

6. After you copy the code, you will wish to set the PHP version to version 7 in the folder/forum, which means you will need to create a .htaccess file in the folder /forum/ and paste the code which was generated in the previous step in it.

7. Congratulations, now your folder/forum uses PHP 7, and if you wish to set any other folder to use the same version of PHP as well, you will only need to copy the code from the .htaccess file and paste it into that folder.

Reset your PHP version from your main domain. If you wish to use a different PHP version on any folder, you will need to follow steps 5 and 6, generate the code, copy that code from /public_html/.htaccess and paste it into any folder where you wish to set your selected PHP version.

How to add A Record in cPanel using DNS Zone Editor?

A Record is a DNS record and is used to point a domain or subdomain to an IP address. You can add “A Record” using the cPanel”s Zone Editor option.

1. Log into your cPanel account. (eg: www.example.com/cPanel )
2. In the “Domains” section, click on the “Zone Editor” Icon.

Under “Domains”, you can see many options below the “Actions” text.

3. Click on “A Record” and a small window will pop open. Enter the required details in it.

Name: Enter the name you wish to add, for example, add “blog” and the cPanel will automatically add a domain name like blog.example.com.
Address: Enter the IP Address of the server.

Now click on the “Add an A Record” button.

If the record is added successfully, you will see a success message. The DNS propagation can take up to 24 hours.

Note: It may take anywhere from 12 to 24 hours for the changes to take effect worldwide.

How to add a MX Record in cPanel using DNS Zone Editor?

A mail exchanger record (MX record) is a type of resource record in the Domain Name System that specifies a mail server responsible for accepting email messages. You can add a “MX Record” using the cPanel”s Zone Editor option.

1. Log into your cPanel account. (eg: www.example.com/cPanel )
2. In the “Domains” section, click on the “Zone Editor” Icon.

Under “Domains”, you can see many options below the “Actions” text.

3. Click on the “MX Record” and a small window will open. Enter the required details in it.

Priority: The MX record you use for mail routing should have the lowest preference number, typically 0. You can use 0 for your mail routing record, and 10 for the record validating that you own your domain.

Destination:  Enter the domain name of your Mail Exchange. If you use an external mail server, enter the domain name of the external mail server. Alternatively, if you use a local mail server, enter your local domain.

Now click the “Add a MX Record” button.

If the record is added successfully, you will see a success message. The DNS propagation can take up to 24 hours.

Note: It may take anywhere from 12 to 24 hours for the changes to take effect worldwide.

How to edit or remove MX Record in cPanel using the DNS Zone Editor?

You can edit or remove MX Record from cPanel using the cPanel DNS Zone Editor which allows you to manage, remove or modify DNS records.

1. Log into your cPanel account. (eg: www.example.com/cPanel )
2. In the “Domains” section, click on the “Zone Editor” Icon.

Under “Domains”, you can see many options below the “Actions” text.

3. Click on “Manage” and the DNS records will be loaded on page.

4. Locate MX Record you wish to edit or remove. Should you wish to edit a MX record, click the “Edit” option, modify the details and then click on “Save Record”. Removing a record can be done with the “Delete” option.

Note: It may take anywhere from 12 to 24 hours for the changes to take effect worldwide.

How to add CNAME Record in cPanel using the DNS Zone Editor?

CNAME records are referred to as alias records since they map an alias to its canonical name. You can add “CNAME Record” using the cPanel Zone Editor option.

1. Log into your cPanel account. (eg: www.example.com/cPanel )
2. In the “Domains” section, click on the “Zone Editor” Icon.

Under “Domains”, you can see many options below the “Actions” text.

3. Click on “CNAME Record” and a small window will open. Enter the required details in it.

Name: Enter the name you wish to add, such as “www” and cPanel will automatically add a domain name like www.example.com.
CNAME: Enter domain name.

Now click on the”Add a CNAME Record” button.

If the record is added successfully, you will see a success message. The DNS propagation can take up to 24 hours.

Note: It may take anywhere from 12 to 24 hours for the changes to take effect worldwide.