Archives

Working with cron jobs – create, edit and delete them with cPanel

Cron jobs allow you run a command or script on your site at user-defined time intervals.

To create a cron job in cPanel:

    1. Login to your cPanel account
    2. Go to Cron Jobs (ADVANCED Section)
    3. If you want to receive the output of the cron job then enter the email in the Email field and click the Update Email button
    4. Go to the Add New Cron Job section, select the Common Settings from the drop-down list. You can choose from the predefined values or you can enter your own values.
    5. Enter the command you wish to run. For example, to run a php file, use the command : home/username/public_html/test.php
    6. Click the Add New Cron Job button
    7. The new cron job will appear in the Current Cron Jobs Section

For the Common Settings you can choose from :

-Once Per Minute (* * * * *)

-Once Per Five Minutes (*/5 * * * *)

-Twice Per Hour (0,30 * * * *)

-Once Per Hour (0 * * * *)

-Twice Per Day (0 0,12 * * *)

-Once Per Day (0 0 * * *)

-Once Per Week (0 0 * * 0)

-On the 1st and 15th of the Month (0 0 1,15 * *)

-Once Per Month (0 0 1 * *)

-Once Per Year (0 0 1 1 *)

To delete a cron job in cPanel:

  1. Login to your cPanel account
  2. Go to Cron Jobs (ADVANCED Section)
  3. On the Current Cron Jobs Section, click the Delete link on the row with the cron job you want to delete.
  4. Click the Delete button when the cPanel is asking “Delete this cron job?
  5. The cron job is deleted now.

To edit a cron job in cPanel:

  1. Login to your cPanel account
  2. Go to Cron Jobs (ADVANCED Section)
  3. On the Current Cron Jobs Section, click the Edit link on the row with the cron job you want to edit.
  4. Make the necessary changes. When done, click the Edit Line button.
cPanel Cron Jobs
cPanel Cron Jobs
Many web hosting providers will block your cron job if the running interval is too short. Ask your host what is the minimum value.
A cron job must include Minute, Hour, Day, Month, Weekday and Command fields.
Share this post:

How to check server information in cPanel

Ever wanted to check your web hosting account details? Like Apache Web Server, MYSQL, PHP versions? cPanel allow you to examine these details. The steps are:

  1. Log into your cPanel account (you can find the cPanel username and password in the Welcome email you received from your host)
  2. On the right side of the cPanel click the Server Information link
  3. A new page will load where you can see a lot of details about your web hosting account, like: Apache, PHP, MySQL, PERL, cPanel versions; server load, status of the server services.
cPanel Server Information
cPanel Server Information

An example of some server details for your web hosting account that you can see in cPanel:

Item Detail
Hosting Package default
Server Name w08
cPanel Version 62.0 (build 17)
Apache Version 2.4.25
PHP Version 7.0.17
MySQL Version 10.1.22-MariaDB
Architecture x86_64
Operating System linux
Shared IP Address 162.255.100.100
Path to Sendmail /usr/sbin/sendmail
Path to Perl /usr/bin/perl
Perl Version 5.16.3
Kernel Version 2.6.32-042stab117.14

Check out the video we made to show you how easy is to check the server information in cPanel:

All our shared and reseller plans comes with cPanel. cPanel is a tool that allows you to manage many aspects of your web hosting account.
Share this post:

How to copy and paste in Putty

If you are using SSH, there is a big chance that you are using PuTTY. Sometimes, PuTTY users have difficulties to copy/paste shell commands. So, we will explain how to copy/paste text.

 

PuTTY Configuration Window
PuTTY Configuration Window
Secure Shell (SSH) is a network protocol that allows you to login and communicate with a remote computer system in a secured way. You can read more on the Wikipedia page.

Copy text to the clipboard
1. Click left mouse button in the terminal window
2. Keep the left mouse button down and drag the text you want to copy
3. Let go the left button. The text will be automatically copied to the clipboard.

If you are using PuTTY under Windows OS, do not try to use the CTRL-C command to copy text as it will not work. In most cases this command will interrupt a process.

Paste text from the clipboard
1. Here there is just one step: click the right mouse button. The text from the clipboard will be pasted into the PuTTY terminal window.

Useful PuTTY Shortcuts
Shift-Insert – will paste the clipboard content to the PuTTY terminal window
CTRL+Right mouse button and then select Paste option from the menu – will also paste the text from the clipboard
Left mouse button double-click/ double click and drag – a whole word or a sequence of whole words will be copied
Left mouse button triple-click/ triple-click and drag – PuTTY will copy a whole line or sequence of lines.

More information about the copy/paste options can be found on Section 3.1.1 Copying and pasting text of the Help File.
Share this post: