Step 1: Configure file access
First, create an FTP account in cPanel that has access only to the directory where the website files are located. To do this, follow these steps:-
Log in to cPanel.
📘 Note If you do not know how to log in to your cPanel account, please see this article.
-
On the Tools page, in the Domains section, click Domains:
- Locate the domain for which you want to grant access, and note the value in the Document Root column for the domain. You will need this information in a few steps.
-
On the Tools page, in the Files section, click FTP Accounts:
-
Under Add FTP Account, in the Log in text box, type the username for the FTP account.
📘 Note FTP account usernames are in the format user@example.com, where user represents the value you type in the Login text box, and example.com represents your domain name.
- In the Password text box, type the account password.
-
In the Password (Again) text box, retype the account password.
👍 Tip
- You can click Password Generator and cPanel generates a random, strong password for you.
- We recommend backing up the password by storing it in a secure location.
- Replace the automatically generated text in the Directory text box with the document root path that you obtained in step 3.
- Specify the quota for the FTP account. By default, the quota is unlimited. To set a quota, type the number, in megabytes, for the maximum directory size.
- Click Create FTP Account. cPanel creates the account.
Step 2: Configure database access (optional)
After you configure access to the website’s files, you can configure access to the website’s MySQL database.If your website does not use a MySQL database, then this step is not necessary.
Creating a database user
First, create a new database user for the third-party contact, and allow it to access the database. To do this, follow these steps:- Get the name of the database that the website uses. The exact steps to do this vary depending on the application you are using. Most sites have a configuration file that specifies the database name. For example, WordPress uses the wp-config.php file to specify the database name.
-
Log in to cPanel.
📘 Note If you do not know how to log in to your cPanel account, please see this article.
-
On the Tools page, in the Databases section, click Manage My Databases:
📘 Note If you are using cPanel version 118 or earlier, click MySQL Databases instead:
- Under Add New User, in the Username text box, type the MySQL username that you want the third-party contact to use.
- In the Password text box, type the user password.
-
In the Password (Again) text box, retype the user password.
👍 Tip
- You can click Password Generator and cPanel generates a random, strong password for you.
- We recommend backing up the password by storing it in a secure location.
- Click Create User. cPanel creates the database user.
- Under Add User to Database, in the User list box, select the user that you just created.
- In the Database list box, select the database name you obtained in step 1.
- Click Add.
- Select the check boxes to grant the user specific privileges, or select the ALL PRIVILEGES check box to grant the user all permissions to the database.
- Click Make Changes. cPanel adds the user to the database.