Privacy Policyfree Hosting With Cpanel



This tutorial will show you how to password protect a directory on your website using cPanel. Password protection allows you to control access to content that you do not want to be publicly available, and it prevents Google and other search engines from discovering and indexing the content. This feature of cPanel allows us to protect certain directories with a username and password. If a directory is protected by this, then if somebody from the front end of your website tries to access the file, they will be prompted to provide a username and password, if username of password does not match, then the user will not be able to see the content of that directory.

Topics

  • MySQL Database Wizard

This tutorial provides step-by-step examples of creating a database and database user using the cPanel MySQL Database Wizard tool.

Login to your site Login to your site

Login to your hosting control panel (cPanel) with information provided by your host company.

With

MySQL Database Wizard MySQL Database Wizard

Under the Database section, click on the MySQL Database Wizard icon.

Step 1. Create a Database Step 1. Create a Database

Step 1 in the wizard is creating the database. Simply give your database a name. The actual database name will be prepended by your hosting account name. In this example, after clicking Next Step, the database michaelh_demowp will be created.

Step 2. Create Database Users Step 2. Create Database Users

The next step in the wizard requires creating a database user and assigning that user a password. When entering the password, make sure the password strength meter registers Very Strong for your selected password. Also remember the password you enter as you will need that information later. In this example, dbuser is entered in the Username field, but when the Create User button is clicked, the database user ultimately will be named michaelh_dbuser.

Step 3. Add User to Database Step 3. Add User to Database

In Step 3, you assign the user to the database and you assign the necessary database privileges. In this case, click the All Privileges checkbox and click the Next Step button to assign all privileges to the database user.

Step 4. Complete the task Step 4. Complete the task

In this step, you are notified that the user was addeed to the database. You have successfully created the database, created the user, and assigned privileges to that user.

Editing the WordPress Config File Editing the WordPress Config File

Open the file wp-config-sample.php using a text editor.
There are the four pieces of information you need to complete in the file. The following is an example; yours may look slightly different:

Free Cpanel Hosting With Ssl

Note that the prefix michaelh_ assigned by that cPanel is part of the database and database user. Also note, the DB_HOST value for almost all cPanel hosts is localhost.

Important!!!! Save the completed file as wp-config.php.

Continuing the Installation Continuing the Installation

The database is created, and user is created and assigned to the database with the proper privileges. And the wp-config.php is updated with the database information. At this point it is okay to move to Step 4 of the Installation process.

Free

Table of Contents

  • Overview
  • Applications
  • Create an application
  • Register an application
  • Environment Variables
  • Add environment variables
  • Edit an application
  • Unregister an application

Table of Contents

  • Overview
  • Applications
  • Create an application
  • Register an application
  • Environment Variables
  • Add environment variables
  • Edit an application
  • Unregister an application

Application Manager

Valid for versions 94 through the latest version

Last modified: January 18, 2021

Overview

This interface allows you to deploy applications with the Phusion Passenger® application server. A Phusion Passenger server functions as a process manager, reverse proxy, and provides operations tools to its users.

This interface works on servers that run Apache and Nginx.

Privacy

Your hosting provider must select the Application Manager feature in WHM’s Feature Manager interface and install the one of the following Apache modules:

  • ea-ruby24-mod_passenger
  • ea-ruby27-mod_passenger

Ruby 2.7 is not compatible with systems that run CentOS 6. CentOS 7 supports both Ruby 2.4 and Ruby 2.7.

Privacy Policy Free Hosting With Cpanel No Ads

If your system runs CentOS 8, you can only use Ruby 2.7.

If needed, your provider should also install the following packages: After download torrent access denied my cloud.

  • ea-apache24-mod_env — This module allows your application configuration to set environment variables for your application.
  • ea-nodejs10 — This module supports NodeJS applications.
  • python — Install the appropriate version of python for your applications.

The Application Manager uses /usr/bin/python3 by default if it exists. If it does not exist, the Application Manager uses /usr/bin/python by default. If you want to use another version by default, add the path to your preferred version with the following command:

Privacy Policy Free Hosting With Cpanel 11

If you need this feature, contact your hosting provider.

Applications

This table contains the following information:

  • Name — The application’s name.
  • Domain — The application’s domain.
  • Path — The file where the application’s source code resides, relative to the home directory.
  • Status — Whether the application is enabled or disabled.
  • Actions — Use the items in this column to perform the following actions:
    • Edit — Edit the application.
    • Unregister — Unregister the application.
    • Enable Dependencies — Confirm and, if necessary, install an application’s Node.js package manager (npm) dependencies.

Create an application

You must create an application before you register it in the Application Manager interface. For example, you could perform one of the following actions:

  • Clone an existing application from GitHub with our Git Version Control interface (cPanel >> Home >> Files >> Git™ Version Control).
  • Create a new application on your server. For an examples of how to do this, read the following documentation:

Anything you create in these interfaces won’t work with the Application Manager feature:

  • cPanel’s Ruby on Rails interface (cPanel >> Home >> Software >> Ruby on Rails).
  • cPanel’s RubyGems interface (cPanel >> Home >> Software >> RubyGems).
  • The Ruby Gem installer section of WHM’s Module Installers interface (WHM >> Home >> Software >> Module Installers).

We plan to remove these interfaces in a future cPanel & WHM version.

Free Hosting

Register an application

Cpanel

This feature configures new applications with the most recent version of Ruby on your system. The installed version of Passenger determines which version of Ruby the system uses. You can’t have more than one version of Passenger installed.

Existing applications will not change their Ruby version. If you uninstall an application’s version of Ruby, your applications will no longer function.

To register an application, perform the following steps:

  1. Click Register Application. A new interface will appear.
  2. Enter the application’s name in the Application Name text box.
  3. From the Deployment Domain menu, select the main domain, addon domain, or subdomain to which to deploy the application.
  4. Enter the application’s base URL in the Base Application URL text box. After you register the application, enter this URL in a web browser to access the application.
  5. Enter the path to your source code directory, relative to the home directory, in the Application Path text box.
  6. Select a deployment environment. This sets the server environment that the application runs in.
    • Click Development if you’re still developing your application.
    • Click Production if you’re ready to deploy and use your application.
  7. If you want to add environment variables, click Add Variable in the Environment Variables section.
  8. Click Deploy.

Environment Variables

To add environment variables, your system administrator must install the ea-apache24-mod_env RPM Apache module.

Environment variables allow you to configure the processes that the application runs on multiple systems. The Environment Variables table contains the following information:

  • Variable Name — The environment variable’s name.

    An environment variable name must meet the following criteria:

    • The name can only contain letters, numbers, underscores, and dashes.
    • The name must contain 256 characters or fewer.
    • The name cannot begin with a number.
  • Value — The environment variable’s value.
    An environment variable value must contain 1024 or fewer ASCII-printable characters.
  • Actions — Use the items in this column to perform the following actions:
    • Edit — Edit the environment variable.
    • Unregister — Delete the environment variable.

For more information about environment variables, read Phusion Passenger’s Environment Variables documentation.

Privacy Policyfree Hosting With Cpanel

Add environment variables

To add an environment variable to the application’s configuration file, perform the following steps:

  1. In the Environmental Variables section, click Add Variable.
  2. Enter the variable’s name in the Environment Variable Name text box in the Variable Name column.
  3. Enter a value for the variable in the Environment Variable Value text box in the Value column.
  4. Click Save in the Actions column.

Edit an application

To edit an application’s configuration file, perform the following steps:

  1. In the table of applications, find the application that you want to edit.
  2. In the Actions column, click Edit. A new interface will appear.
  3. Make the desired changes.
  4. Click Deploy.

Unregister an application

Best Cpanel Hosting Sites

Unregistering an application removes it from the list and deletes its configuration file. It does not delete the application.

To unregister an application, perform the following steps:

  1. In the table of applications, locate the application that you wish to unregister.
  2. Click Unregister. A confirmation message will appear.
  3. Click Unregister to completely unregister the application. A success message will appear.

Best Cpanel Hosting

Additional Documentation