Tag: cPanel

This short article is to give an idea on how you can install latest version of wordpress on your hosting account.

You need to have,

Filezilla click here to get it ( or any other FTP client )
A cPanel hosting account. Get it here

Step 1

Download latest wordpress version. Click here to get it.

Step2

Uncompress latest.zip file.

Step3

Use Filezilla to upload the uncompressed files to the desired hosting account location. You can upload to public_html or any other location inside.

Uploading with filezilla

Uploading with filezilla


 

 

 

 

 

 

 

Step 4

Create database and users with your cPanel, Please see this article,

Step 5

Access the url were wordpress files are uploaded. You will get a screen as below . Click on create a configuration file.

Wordpress Installation

 

 

 

 

Step 6

Give the database and user details you have created with cPanel on the below stepWordPress Installation 2. Click on submit button.

 

 

 

 

 

 

On next screen click on run the install

 

Wordpress Installation 3

 

 

 

Step 7

Give site name, user name password and your email address on the next screen and click Install

Wordpress Installation 4

 

 

 

 

 

 

 

All set login and go !!!

WordPress is one of the best CMS and blog engines available today, and you can used it to power anything from your personal site. But the great thing about WordPress is that you can either get a free hosted blog or you can download the software and run it on your own server for free.  Many webhosts today offer scripts that make installing WordPress as easy as possible, so here we’re going to look at how you can install WordPress in only a few steps in cPanel with Softaculous. Installing WordPress manually isn’t too hard, but with Softaculous, it’s so easy anyone could do it.

This article will give you a step by step guide on how to install WordPress from your cPanel using Softaculous.

Step 1 : Login to your website’s admin panel to get started installing WordPress on your site. Usually, you can locate it at yourwebsite.com/cpanel or yourwebsite.com:2082.

cpanel_login

Step 2 : Scroll down to the Software/Services section, and click the Softaculous link.

software_services

Step 3 : To install WordPress, click the WordPress link on the left-hand sidebar in Softaculous.

WordPress_link_in_softaculous

Step 4 : This page will give you some information about WordPress, including ratings and reviews from other users.  Click the Install link above the header to start the installation.

WordPress_info

Step 5 : Now you’ll need to enter some information about your site.  Softaculous will automatically fill in default settings, but you may want to customize them.

WP_set-up_page

At the top of the page, you will have to select the domain where you wish to install WordPress. Select the directory to install WordPress on. By default, it will install to yourdomain.com/wp, but if you want yourdomain.com to go directly to WordPress, then leave this field blank.

Step 6 : Now enter a name and description for your site, as well as an administrative username, password, and email.  If you’d like a more secure password, click the key logo and a random generated password will be entered in the field.

wordpress_database

If you’d like a record of your site’s settings, enter your email in the bottom field under the Install button.  Finally, when you’re finished, click Install.

Step 7 : You will then get a confirmation page of your installation.

WordPress_installation_confirmation_page

Step 8 : Click the link to go to the WordPress admin page, or simply browse to yourdomain.com/wp-login.php. You must now use the login name (username) and password that you had set during the installation.

wordpress_login_page

Step 9 : The first time you login, WordPress may prompt you to change your password.  Since you just choose the password for your site, this step is unnecessary. Click No Thanks, Do not remind me again to chose this notification.

change_password_WordPress

Step 10 : Now you can add posts and pictures, change the theme, and customize the settings of your WordPress site directly from the WordPress Dashboard:

wordpress_dashboard

Step 11 : Here is new WordPress site after installing with Softaculous and submitting first post:

wordpress_blog

Create MySQL database and user with cPanel

MySQL Database Wizard can be used to set up MySQL database, create database user and assign needed privileges. A MySQL Databases allow you to store lots of information in an easy to access manner.

1) Click on the “MySQL database Wizard” button on the home page under Databases.

2) To set up a MySQL database,

a) Enter a name for the database in the text box ” New Database”.

b) Click the button Next Step”.

3) On Next step Create user , who have access to the new database.


a) Enter a name for the user allowed to manage the database in the text box “Username”.

b) Enter a strong password for the user to login or use “Password Generator” to generate a strong password.

c) Click ” Create User” to create the new MySQL user.

3) The next step is to give privileges to the user.


a) Select the privileges you wish to grant the user.

b) For full privilege click the check box ALL PRIVILEGES”.

c) Click “Next Step” to save the privileges.

You will get a message stating that the database and user account were successfully set up. The page will also have the following options.

  • Add another database – To Create a New Database.
  • Add another user for your MySQL Database – To add additional user for the created database.
  • Return to Home – To go to home screen of cPanel.

 

The Index Manager allows you to customize the way a directory will be viewed on
the web.

1) Click on the Index Manager button on the home page.

2) Click on the name of the directory you wish to change the indexing options.

3) Click on the radio button next to the option that you want to use for this folder.

Default System Setting – The default defined by your web host will be used.

No Indexing – The contents of the directory are not listed.

Standard Indexing (filename only) – Contents appear only as filenames.

Fancy Indexing (filename and description) – Information about the files, such as the size and time last modified, appear.

Click ” Save”, to save the entire setting.

Add a MIME Type using cPanel

MIME types tell browsers how to handle specific extensions. Adding MIME types is useful for enabling visitors’ browsers to handle new technologies as they come out.

1) Click on the MIME Types button on the home page.

2) To add a MIME type

a) Enter the name of the file type’s handler into the text box “Mime Type” .

b) Enter the file extension, separate each entry with a space in the text boxExtension(s)started with a dot (“.”).

3) Existing MIME Types are listed under “User Defined MIME Types”.

Click on the Remove button of appropriate handler to delete an existing MIME Types.

Here is an example of the cPanel interface.

mimetype

The above example tells Apache to treat my .html and .htm files as PHP files. This is helpful if your .html files have PHP code inside, but you cannot rename the files to the .php extension

Add a Apache Handlers with cPanel

Apache handlers tells the server how to handle files having specific extension. Apache handlers control how your site’s  Apache web server software manages certain file types and file extensions.

You can configure Apache  to handle a new file type with the help of “Apache handlers” on cPanel.

1) Click on the Apache handlers button on the home page.

2) To add an Apache handler


a) Enter the handler name into the text box “Handler”.

b) Enter the file extension, separate each entry with a space in the text boxExtension(s)started with a dot (“.”).

c) ClickAdd” to add the new appache handler.

3) Existing user-defined handler are seen under “User Defined Apache Handlers”


a) Click on the Remove button of appropriate handler to delete an existing handler.

The file extension automatically supported by the Apache server are seen under “System Apache Handlers”


How to schedule a Cron job with cPanel

You can use cPanel to set the cronjobs for your application or any other task. Cron jobs are scheduled tasks that take place at predefined times or intervals on the server.

1) Click on the Cron jobs button on the home page.

2) The first one is for adding a cron email.

Cron Email is used to send notifications whenever your cron jobs are run.

a) Enter the email address at which you wish to receive the notifications in the text box “Email“.

b) Click the “Update Emailbutton.

3) To set up a cron job

Configure any interval at which you wish to run the cron job

a) Common Settings The First menu allows you to select a commonly used interval without having to specify settings for the minute, hour, day, month.

b) Minute – Select the number of minutes between running the cron job, or the minute each hour on which you wish to run the cron job.

c) HourSelect the number of hours between running the cron job, or the hour each day on which you wish to run the cron job.

d) Day – Select the number of days between running the cron job, or the day of the month on which you wish to run the cron job.

e) Month – Select the number of months between running the cron job, or the month of the year in which you wish to run the cron job.

f) Weekday – select the day or days of the week on which you wish to run the cron job.

Type the command you wish the system to run in the text box “Command”.

The current cron jobs are listed under “Current Cron Jobs”.

4) You can edit / delete the current cron jobs.

a) To edit a current cron job.

Locate the cron job and click “Edit”.

Edit the settings you wish to change.

Click “Edit Line” to save the edited cron job.

b) To delete a current cron job.

Click Delete” in corresponding cron job that you want to delete.

With cPanel, you can create customized error pages for 400, 401,403, 404, 500 errors. An error page informs a visitor when there is a problem accessing your site.

1) Click on the Error pages button on the home page.

2) Select a domain from the combo box “Managing” to manage the error pages.


3) Click the error code for the page you wish to edit.

For more error code click on the tab ” Show All HTTP Error Status Codes” .


4) Enter the HTML code for the error page. You can use the buttons at the top of the page to insert variables into the displayed code.

Click “Save” to save the HTML code for the error page.

How to Create a Redirect with cPanel

Redirects allow you to make a specific web page redirect to another page and display the contents of that page.

1) Click on the Redirects button on the home page.

2) To add a new Redirect

a) Select the type of redirection needed, either temporary or permanent  from the combo box “Type”.

b) Enter the URL you would like to redirect in the combo box and corresponding text box “http://(www.)?”.

c) Enter the URL to which you would like to redirect users in the “redirects to” text box .(Specify a address with a protocol ie, http://, https://  or ftp:// ) .

d) Select any one of the option listed below.

Only redirect with www – Only users who type “www” in front of the page name will be redirected.

Redirect with or without www – Redirect all users regardless of whether the “www” prefix is included with the URL.

Do Not Redirect www – users who type ” www” with the URL will not be redirected.

e) Click the check box , to redirect all files to the same filename in the redirected URL.

f) Click the button “Add” to add the new redirects.

You may test the redirect by clicking the link under ” Directory “ in the Current Redirects.


a) Click the corresponding redirect link under remove, to remove a redirect.

 

 

Remote MySQL option is to allow an external web server to access your MySQL databases.

1) Click on the “Remote MySQL” in the home screen under Databases.

2) To allow a remote server to access your databases

a) Type the host’s name or IP address into the text field “(% = wildcard , with % all external servers will be able to access your databases )”.

b) Click on “Add Host” to add a specified host to access the MySQL databases.

3) To disallow a host from accessing databases on your server.

Click the button below Remove of the corresponding host’s name or IP address.