Skip to Content

بلاگ

نحوه ایجاد اکانت cPanel

How to create a cPanel account

WHM allows you to create accounts for your clients quickly and easily in Account Functions section > Create a New Account menu:

To speed up account creation, we recommend adding Packages, a specific set of features for the default use during cPanel account creation:

When creating a new cPanel account, you will need to configure the following set of account features:

Domain Information

Domain: choose the main domain you are assigning to the account
Username: enter the username you are assigning to the account or leave the one created by default
Password: enter the password you are assigning to the account; passwords are case-sensitive and must be at least 6 characters in length and contain at least one number and one symbol
Email: here you need to specify contact email address which will receive server-side notification, like when you reset the password for your account


Package

Package: in this drop-down menu you can see the list of the existing hosting packages and select one for your new account
Select Options Manually: if you enable this function, you will be able to set all the limits for your account in the menu below


Settings

Dedicated IP: this option defines if the new account can use a dedicated IP address
CGI Access: by enabling this option you allow CGI scripts for this account
cPanel theme: select the theme that will be used by your new account; you can find overview for both x3 and paper_lantern theme in this guide
Locale: here you can set the language for the new cPanel

DNS Settings

In this box you can enable DKIM and SPF records used for email authentication and define the nameservers– either the ones specified on your domain’s registrar side or the ones set in Basic cPanel & WHM setupmenu.

Mail Routing Settings

Automatically Detect Configuration: this option will configure mail exchanger depending on the MX records and priority you set for them
Local Mail Exchanger: this option will configure the server to always accept mail locally whenever it is sent from the server or outside the server, select it if you wish to use your cPanel email service
Backup Mail Exchanger: this option will configure the server as a backup mail exchanger; mail will be held until a lower number mail exchanger is available
Remote Mail Exchanger: this option will configure the server not to accept mail locally and send mail to the lowest MX record, select it if you wish to use a third-party email service

Once ready, click on  Create. If the account creation has been successful, you will see this message:

That’s it!

ادامه مطلب

نحوه مدیریت امکانات WHM

How to manage features in WHM

If you have a Reseller hosting plan, VPS or Dedicated server, you can adjust the number of tools available in cPanel for your resold account via WHM > Packages Feature manager menu:

You can either create a new Feature list or edit the existing one by checking/unchecking boxes with corresponding features in the cPanel menu for accounts where the selected Feature list is applied.

NOTE: It is recommended to configure a hosting package and feature list prior to creating a new cPanel account in WHM to simplify further cPanel accounts management process.

NOTE: Reseller users don’t have access to the ‘default’ and ‘disabled’ feature lists, so several options are disabled for their custom created feature lists by default, and it is not possible to enable them. If you want to have full access to all cPanel/WHM features, you need to have root access to the server which is provided with VPS and Dedicated server plans.

In order to apply a custom feature list (different from the default one) to a specific hosting package, go to WHM > Packages > Edit package option, scroll down to the end of the page and select the desired feature list from the drop-down menu:

Now all the existing and new cPanel accounts with this package will have the feature list you need.

That’s it!

ادامه مطلب

تفاوتهای هاست اشتراکی با سرور VPS

What is the difference between shared hosting and VPS?

It is the same difference as between a dedicated server and usual shared hosting.

With a VPS, you receive all the power of dedicated hosting with the ability to have your own set of services and customizable disk space. With shared hosting, you have limited administrative access and can’t customize software configurations, while with a VPS you can perform any actions from your control panel and don’t need to contact technical support with every single request.

ادامه مطلب

دلایل خرید یک سرور VPS

Why should I choose VPS hosting?

Virtual Private Server is the right choice for developers, webmasters, resellers and simply for those who run resource-intensive websites. We use KVM technology for virtualization, that is why each VPS with Namecheap performs and executes exactly like an independent physical machine and therefore offers security and flexibility for your sites, independence from neighbors, full control over your hosting environment and power of a dedicated server at an affordable price. KVM delivers 133% increase in disk speed performance comparing to XEN technology.

ادامه مطلب

VPS چیست؟

What is a VPS?

With a VPS, you open a world of possibilities that would not be possible on shared hosting because of restrictions.

VPS stands for Virtual Private Server. This refers to the partitioning of a physical server into multiple servers. In effect, each one acts just like a dedicated server, you get all the features of a dedicated server but at a lower price. Each VPS has its own operating system, and each can be rebooted separately. These operating systems each receive a specific share of the resources of the physical server, no more and no less, they are isolated from each other so that one cannot interfere with another. If one VPS experiences problems or tries to use too much memory or CPU resources, it has no effect on the others.

There are many advantages to selecting a VPS, it costs less than a fully dedicated server and provides a great deal of freedom and flexibility over the limitations and restrictions of shared hosting. You are limited only by the capabilities of the VPS, so select one powerful enough to meet your needs. You can always upgrade later if you decide it becomes necessary.

As for virtualization technologies we offer KVM VPS servers.

Since you are supposed to manage your VPS yourself, we recommend you have a good understanding of Linux commands and are familiar with the WHM/cPanel control panel. You can get a VPS without WHM/cPanel, but in this case, you would need to have very advanced knowledge of Linux.

If you don’t feel you have the technical expertise necessary to manage your own VPS, there is no need to let that stop you – you can select full management for an additional fee.

You won’t have root access, and it will act much like a shared hosting plan, but you will still make the decisions.

cPanel is required if you choose full management for a VPS.

ادامه مطلب

نحوه مدیریت User Role ها در وردپرس

How to manage WordPress user roles

Apart from the main Administrator account, WordPress supports so-called users with additional privileges. Such users can access the dashboard, but their operations are restricted to specific options.

There are 5 types of WordPress users:

Subscribers: basic account type assigned to all website visitors who signed up on your website. They do not have any special privileges. A logged in subscriber can only edit her/his own profile settings.
Contributors: can create new posts and approve comments.
Authors: users who can create new posts, approve comments and upload media files. However, they can’t access the WordPress website settings and edit existing posts of other users.
Editors:  these users can edit/create all posts and pages, add/remove media files of any other user.
Administrators: accounts with the highest level of access, they can edit any WordPress content items or settings.

NOTE: Before proceeding with any changes, make sure that you generate a full backup of your website. If you’ve created your site using Softaculous script installer, feel free to refer to this guide as well (step #4 – Backup software).

You can change the account type in the WordPress dashboard > Users section. In order to create a new user, click on the Add new option:

On the next page, fill out the following fields: Username, E-mail, Password, First and Last Name (optional), Website for this account and select the desirable role from the drop-down list. Once done, click on Add New User:

If you wish to change the role of the existing user, go back to the All Users list, check the user in question and set the new role via the Change role to… option:

You can also change the user role manually in the database via phpMyAdmin.

NOTE: It is strongly recommended to back up the database before proceeding.

1. In cPanel go to phpMyAdmin menu in Databases section:

Once there, select your WordPress database.

NOTE: You can check the database name of your installation in wp-config.php file, line define (‘DB_NAME’, ‘databasename’); 

2. Select the wp_users table, locate the account role you want to change and memorize its ID, you will need it later.

In this example, we will change the role of ‘Namecheap’ account, its ID is 6:

3. Now go to the wp-usermeta table, click on Search.

Input the user ID into the user_id field and wp_capabilities into the meta_key field and click on Go:

4. You will see a database cell containing a record specifying the current Role of the user. In our example, it is author. In order to change it, click on Edit:

5. On the next page, you will need to replace the current meta_value with the new one according to the role you need:

a:1:{s:10:”subscriber”;b:1;} – Subscriber
a:1:{s:11:”contributor”;b:1;} – Contributor
a:1:{s:6:”author”;b:1;} – Author
a:1:{s:6:”editor”;b:1;} – Editor
a:1:{s:13:”administrator”;b:1;} – Administrator

In our example we are making a “Namecheap” user an administrator by inserting the corresponding code into her/his wp-usermeta database cell:

That’s it!

ادامه مطلب

نحوه تغییر آدرس ادمین وردپرس

How to change your WordPress Admin URL

Using special WordPress plugins allows you to change the WordPress default login URL. Since WordPress brute-force attacks have become more frequent, changing the default login URL will prevent attackers from accessing your admin login form.

Following the steps below you will learn how to change the WordPress default URL using Lockdown WP Admin and iThemes Security plugins.

NOTE: Before proceeding with any changes, make sure that you generate a full backup of your website. If you’ve created your site using Softaculous script installer, feel free to refer to this guide as well (step #4 – Backup software).

Lockdown WP Admin

1. Install and activate Lockdown WP Admin plugin:

2. Go to Lockdown WP panel and enable Hide WP admin feature, enter the desired login URL then:

3. Choose the authentication method below:

If you use one of the HTTP Auth options the plugin will let you also create a secondary WordPress admin details. The secondary password and username would have to be entered in, even if someone guessed your secret login URL. The following authentication pop-up window comes up:

WordPress Login Credentials: selecting this option will prompt you to your normal WordPress admin username and password, prior to gaining access to the actual WordPress admin login page.

Private Usernames/Passwords: if you use it, you can configure a new secondary login from the Lockdown WP > Private Users section.

Save the changes and log out your WordPress Admin console. You should see the new login URL you set, while /wp-admin or /wp-login.php will serve a 404 error page.

iThemes Security

1. Install and activate iThemes Security plugin:

2. Navigate to Security > Settings:

Choose All:

Locate Hide Backend block and hit Configure Settings:

3. Enable Hide Backend feature:

In the Login Slug field, enter your new login location.

Once your changes have been made, click Save All Changes.

Unfortunately, changing the login URL itself is not enough. Since the plugin also updates the Meta widget in WordPress with the new updated URL, it is needed to remove either the whole widget or just the Log in link:

Remove Meta Widget from WordPress

1. Log into your WordPress Admin console and go to Appearance > Widgets:

2. Click on Meta widget, then hit Delete:

Remove the Log in link

1. Log into your cPanel and use File Manager menu.

Navigate to your /wp-includes directory. Right-click on the general-template.php file, then click Edit:

NOTE: make sure that you copy the general-template.php file before performing any changes. You can either download it to your local machine or copy/paste it to another directory within your cPanel.

2. Find the following line in the code:

$link = ‘<a href=”‘ . esc_url( wp_login_url($redirect) ) . ‘”>’ . __(‘Log in’) . ‘</a>’; 

Comment the line with two forward slashes //

3. Put the following code on the next line:

$link = ”; 

The final code should look like this:

function wp_loginout($redirect = ”, $echo = true) {

if ( ! is_user_logged_in() )
//$link = ‘<a href=”‘ . esc_url( wp_login_url($redirect) ) . ‘”>’ . __(‘Log in’) . ‘</a>’;
$link = ”;

else 

4. Go to your site. You should now see that the login link is gone from the Meta widget:

That’s it!

ادامه مطلب

نحوه ریست کردن پسورد ادمین وردپرس

How to reset WordPress admin password

There are three ways to reset a lost WordPress dashboard password:

Using the Lost Password option
Using Softaculous Apps installer
In the database

Using the Lost Password option

1. Open your WordPress administrative login page – it is usually located in http://yourdomain.com/wp-admin.

2. Click on the Lost your password? option, fill out the username or email address > Get New Password:

   

3. Log into your email account, which is set as your administrative WordPress contact. You can find the email message with the password reset URL there, click on it:

4. Enter your new strong password twice on the opened page > Reset password:

Using Softaculous Apps installer

In order to change the password for your WordPress admin user, follow next steps:

1. Log into cPanel and navigate to Softaculous Apps Installer menu:

2. In the Softaculous interface find All Installations icon in the top right corner:

3. In this menu you will see Scripts Installations list. Select the one you need to change the admin password for and click on Edit Details (pencil icon) next to it:

4. Next you will see installation details page. Scroll down to Admin Account section. Here you need to enter your current username and the new password in Admin Password field:

5. Once done, scroll down to the bottom of the page and hit Save installation details button:

6. After that you will receive the message about the successful update:

Feel free to log in to WordPress admin panel using the new password.

Reset the password via the database

If Lost your password? confirmation emails do not arrive, or if you have no access to the email account linked to your administrative dashboard, you can reset your password via MySQL database:

1. Log into your cPanel > section Files File manager and navigate to the document root of your WordPress website:

2. To check what database is used for your WordPress website, open the wp-config.php file located in:

3. Go to cPanel > Databases section > phpMyAdmin:

4. Select the database in question, table wp-users and click on Edit next to the admin user:

5. On the next page, type in your new strong password into the user_pass box, select MD5 in the Function column and click Go:

You can now go back to the WordPress dashboard page and try to log in with the new password.

That’s it!

ادامه مطلب

نحوه انتقال وردپرس از یک subfolder

How to move WordPress from a subfolder

This article will take you through the process of moving your WordPress website from the subfolderyourdomain.com/wp to the domain root – yourdomain.com:

for cPanel paper_lantern theme
for cPanel x3 theme

NOTE: Before proceeding with any changes, make sure that you generate a full backup of your website. If you’ve created your site using Softaculous script installer, feel free to refer to this guide as well (step #4 – Backup software).

for cPanel paper_lantern theme:
Re-installation
Redirection
File migration and Database update

Re-installation

If you just installed your website and have done no or little development, WordPress re-installation will be the easiest way out.

You just need to go back to cPanel > Exclusive for Namecheap Customers section > Softaculous Apps Installer menu:

Create a new one, make sure the In Directory field is empty and proceed with the installation:

Do not forget to uninstall /subfolder website by hitting the red cross in All Installations menu:

Redirection

If the website is pretty much done and re-installation is not acceptable, you can set up a hidden redirect – the installation will remain in the subfolder, but your website homepage will be yourdomain.com.

Take into account that this redirect will make /subfolder disappear only on the homepage, links will still have it – e.g., yourdomain.com/subfolder/contactus.

If it sounds alright to you, add the following redirect to .htaccess file in the domain web root (replacing yourdomain.com with your actual domain name and subfolder with your subfolder):

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?yourdomain.com$
RewriteCond %{REQUEST_URI} !(/|\.[^/]*)$
RewriteRule (.*) http://www.yourdomain.com/$1/ [L,R=301]
RewriteCond %{HTTP_HOST} ^(www\.)?yourdomain.com$
RewriteCond %{REQUEST_URI} !^/subfolder/
RewriteRule ^(.*)$ /subfolder/$1 

1. Navigate to Files section > File Manager:

2. Move to the root folder for your WordPress installation – public_html in case it is the main domain for your account.

Once there, make sure that Show Hidden files (dotfiles) option is enabled in Settings menu:

< br>
3. Locate .htaccess file, right-click > Edit:

4. If there is no .htaccess file located in your File manager, feel free to create a new one using File option:

You are ready to add the redirect rule and save it.

File migration and Database update

If the option above does not work for you, and you would like to make sure there is no /subfolder on your website, you can go this way.

NOTE: We highly recommend to back up website files and the database before proceeding.

1. File migration

Go to your website folder using FTP or File Manager:

Select All files > Move them to the domain document root (in our example, from public_html/wp_subfolderto public_html):

Once done, go back to the domain document root to make sure all files have been moved:

2. Database update

You can update old URL references with the new ones in the database either using search and replace scripts or using text editors. Below we provide the guidelines using the latter:

1. To begin with, you will need to locate the database associated with your website. Right-click on the file > View or Edit option:

You will see the database name in this line:

3. The next steps is to download the backup of the database. It can be done in your cPanel > Files section > Backup menu:


4. Unzip the downloaded file. Now you can open .sql file with some text editor and update all the URL references.

Hit Ctrl + F and select Replace option. Fill out the corresponding fields, Find – your old domain, Replace – your new domain) and hit Replace All:

5. Once done, you should get the output like this:

Make sure that you save the changes.

6. Now you can upload the updated database to your cPanel account. To be on the safe side, we suggest creating a new database (instead of dropping the existing one) and connect it to your WordPress side.

To do so, move to Databases section > MySQL Databases menu:

7. Follow the steps below to create a new database and user for it:





Keep these details, you will need to use them a bit later.

8. After that you can upload the database using phpMyAdmin menu in Databases section:

9. Select the newly created database from the list on the left and use switch to Import tab. There you will need to use Browse option to pick up the database .sql file from your local device:

NOTE: If your database is more than 50Mb, import the database following the steps in this guide.

10. Once done, you will need to update wp-config.php file in your installation root folder:

The fields to be changed are:

define ‘DB_NAME’ line – the name of the new database you’ve created in MySQL Databases menu.
define ‘DB_USER’ line – the name of the new user you you’ve created in MySQL Databases menu.
define ‘DB_PASSWORD’ line – the new password you’ve set for database user in MySQL Databases menu.

Save the changes and feel free to check your website.

If everything is working fine, you may delete the old database you used for the website.

11. It is also advised to re-generate the permalinks to make sure they have the new URL. You can do it in your WordPress dashboard in Settings menu > Permalinks.

So if you had Post name, you need to switch it to Plain, for instance, save the changes and then revert everything back:

for cPanel x3 theme:

Re-installation
Redirection
File migration and Database update

Re-installation

If you just installed your website and have done no or little development, WordPress re-installation will be the easiest way out.

You just need to go back to cPanel > Software/Services section > Softaculous > WordPress, make sure the In Directory field is empty and proceed with the installation.

Do not forget to uninstall the /wp website in Softaculous once done:

Redirection

If the website is pretty much done and re-installation is not acceptable, you can set up a hidden redirect – the installation will remain in the /wp subfolder, but your website homepage will be yourdomain.com.

Take into account that this redirect will make /wp disappear only on the homepage, links will still have it – e.g., yourdomain.com/wp/contactus.

If it sounds alright to you, add the following redirect to the .htaccess file in the domain web root (replacing yourdomain.com with your actual domain name and wp with your subfolder)

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?yourdomain.com$
RewriteCond %{REQUEST_URI} !(/|\.[^/]*)$
RewriteRule (.*) http://www.yourdomain.com/$1/ [L,R=301]
RewriteCond %{HTTP_HOST} ^(www\.)?yourdomain.com$
RewriteCond %{REQUEST_URI} !^/wp/
RewriteRule ^(.*)$ /wp/$1 

File migration and Database update

If the variants above do not work for you, and you would like to make sure there is no /wp on your website, you can go with this option.

We highly recommend to back up website files and the database before proceeding.

1. File migration

Go to your website folder using FTP or File Manager:

Select All files > Move them to the domain document root (in our example, from public_html/wp to public_html):

Once done, go back to the domain document root to make sure all files have been moved:

2. Database update

You can update old URL references with the new ones in the database either using search and replace scripts or using text editors.

Below we provide the guidelines using the latter.

  • Check what database is used for your WordPress website. You can check it in the wp-config.php file located in the WordPress installation folder:

  • Go to cPanel > Databases section > phpMyAdmin.

 

  • Select the database in question and click on Export > Go:

  • The database will be downloaded to your computer. Now you need to open it and update all yourdomain.com/wp references with yourdomain.com.

    Once opened, click Ctrl+F and choose the tab Replace. Fill out the fields below correspondingly > Replace All:

  • Once done, the prompt below will display the result:

  • Save the updated database and exit the application.
  • Now go back to cPanel > Databases section > phpMyAdmin and select your database.
  • Check all tables using the option below and select Drop from the drop-down menu:

  • On the next page, confirm the actions by clicking Yes:

  • Once the old tables are dropped, go back and select the database > Import:

 

  • Choose the updated database from your computer files to upload > Go:

  • You will see a green status bar – this will indicate that the database has been successfully imported. On your right, a database tables tree will appear:

Go back to your website and refresh the page to check the results:

That’s it!

 

ادامه مطلب

نحوه نصب خودکار وردپرس از طریق cPanel

How to install WordPress using Softaculous

Once you order hosting service, you can start creating your own website. Using Softaculous automatic app installer you can install WordPress in a few clicks.

Below you can find step-by-step guidelines covering the process:

1. Log into your cPanel.
2. Navigate to Exclusive for Namecheap customers section > Softaculous Apps Installer menu:

3. On the homepage, click on the WordPress icon:

4. Switch to the Install tab to proceed:

5. On the next page you will need to fill out the details of your WordPress installation.

  • Choose the domain you wish to install WordPress for
  • In the In Directory field you can specify the root folder for WordPress installation. By default, this field is empty, and it allows installing WordPress on yourdomain.com directly. If you wish to install it to a subfolder, like yourdomain.com/blog, simply type “blog” in this field.
  • Database Name can be left default.
  • Table Prefix can also be left default wp_; however, due to security reasons it is better to change it, e.g., to ncwpsite_ .
  • The Site Settings section should be filled out accordingly to your needs, though you can change it anytime later if required.

Make sure you set up secure and hard-to guess details in the Admin Account section:



6. When ready, scroll down and hit Install.
In a few moments you will see the message that WordPress has been successfully installed:

You can now go ahead and log into your WordPress Dashboard to start working on your website.

For your convenience we have created a category dedicated to the most frequent WordPress-related questions – cPanel: WordPress 

That’s it!

ادامه مطلب