[email protected] | 3F Hanston Bldg., Ortigas Center, Pasig City | +632 8876-1925 |
| | |
iManila Help Center

Month: April 2020

cPanel – Cron Jobs

If you want to run a command or a php program on a specified time interval like once a day or once a week, you can setup cron jobs in this interface. Cron jobs allow you to run a specific command or program automatically. This is often required, if you are using a software like CRM or Billing Software. Setting up cron jobs more often may degrade your server’s performance.

Setup Cron Job

To add a new cron job, follow these steps −

Step 1 − Open Cron Jobs by clicking Cron Jobs found in the Advanced section in cPanel.

Step 2 − Scroll down to see Add New Cron Job interface.

Step 3 − You can choose an existing setting from common settings. If you do that all the fields of cron execution time will automatically get filled. Or you can choose your custom runtime settings by specifying in the next text inputs accordingly.

Step 4 − Enter your command to run in cron job. If you are running a php file, enter full name of php file. For example −

php /home/tutorialspoint/public_html/cron.php

Step 5 − Click Add New Cron Job button to add a cron job.

Cron Email

cPanel by default sends an email each time a cron job runs. It also redirects the output of the command or file into the email. Default email for this is your system account, but you can change this email too. To change the email on which you want to receive cron email, firstly find out Cron Email interface in Cron Jobs. Then enter your new email in which you wish to get cron emails. Click Update email to update your email.

If your cron runs more frequently, then you may not want to receive emails, you can disable receiving emails by redirecting your output into null by writing >/dev/null 2>&1 at the end of the command. For example −

php /home/tutorialspoint/public_html/cron.php >/dev/null 2>&1

Edit or Delete Existing Cron Jobs

To edit or delete your existing cron jobs, you can scroll below on the Corn Jobs interface to see current cron jobs. Once you select the job, you can click either the delete link or the edit link to edit or delete a particular cron job.

 

cPanel – Error Pages

When visitors browse your website and there is some problem accessing your website, your webserver automatically provides a basic error page. A Basic error page shown by apache webserver, when an error is encountered.

A Basic page contains the error code and error message only. You can customize this error page according to your choice. Each problem your webserver encounters has a unique error code; your webserver displays the error accordingly.

To modify an error page, follow these steps −

Step 1 − Open cPanel Error Pages interface by clicking on Error Pages link found in the advanced section of the cPanel Home.

Step 2 − In Error Pages interface, select the domain or subdomain for which you want to configure the error pages from the drop down menu.

Step 3 − Select the error code of which you wish to edit the error page. You can choose from the Common Error codes or you can click All HTTP error codes to see the list of all error codes.

Step 4 − It will open an HTML editor for you in which you can enter the HTML code for the error page you selected. You can also use predefined tag in your code, click on the tag to insert it to the editor.

Step 5 − When finished inserting the code in the editor, Press Save button to save the error page. Now each time your visitor will encounter the error, he will be served your custom error page.

 

cPanel – Indexes

You can customize the way a directory looks in your website. By default, cPanel displays the list of files and directories, if there is no index file in that directory. You can choose the way it displays the list of contents in the front-end. You can also choose to disable the indexing of files in that directory by choosing No Indexing.

To manage cPanel Indexes, follow these steps −

Step 1 − Open cPanel Index Manager by clicking on Indexes found under Advanced section of cPanel Home.

Step 2 − You can select a directory of which you wish to manage indexes by clicking over the name of directory. To navigate within directories, you can click on the folder icon corresponding to that directory to open up the directory.

Step 3 − Once you have selected the directory, you will be given some options to choose form.

  • Default System Indexing − Enables the default setting your hosting provider setup for you.
  • No Indexing − This option will disable the directory listing and if there is no index file such as index.php or index.html in the directory. User will get an error.
  • Standard Indexing − This option will enable the directory listing and user will see the name of the directories.
  • Fancy Indexing − This option will enable the directory listing and user will see the name and description of the files and directories under your indexed directory

Step 4 − Click Save to save your choice for that directory. If successful, you will see a success message.

 

cPanel – MIME Types

MIME (Multi–Purpose Internet Mail Extensions) types tell the browsers how to handle certain types of files. When a file is sent to a browser of your website’s visitor, it also sends the MIME type of that file with that too. The MIME type tells the browser about the type of file and how the file will be served to the user. For example, if a .js file is sent to the browser then application/JavaScript MIME type is also sent to tell the browser that the .js file is a JavaScript file, and browser handles the file accordingly.

Most of the MIME type are defined in a system defined MIME types. But if you have a file with custom extension, you can specify MIME type for that file in this interface. This will tell the browser about your custom extension and how to handle that file.

To add a custom MIME type, please follow these steps −

Step 1 − Open cPanel MIME Types by clicking on MIME Types in Advanced Section of cPanel.

Step 2 − In Create A MIME Type interface, Enter your MIME type.

Step 3 − Enter the extension for your file. If you have multiple extensions, you can add all of them at once by separating them with a space.

Step 4 − Click on Add button to save the custom MIME type.

Delete a MIME Type

You can only delete the MIME Types defined by you. As, you are not allowed to delete the MIME types, which are defined by the System automatically. To delete a MIME type, Scroll down to the User Defined MIME Types and Click Delete link corresponding to the MIME type you want to delete.

It will ask for confirmation; click Delete MIME Type to delete a user defined MIME type.

 

Let's work together!


Make the first move! Let iManila help you maximize your presence online.

Just fill out your contact details and tell us what you need, then we’ll be sure to get back to you as soon as possible.