Vesta control panel offers “Web File Manager” paid plugin.
With Vesta File Manager plugin, you can do list, copy, edit, view and retrieve all of your web domain files.
Follow below steps to install Vesta File Manager :
# Login to Vesta control panel with admin user
# Look for Server entry in the top menu
# Click the “Configuration” button
# Scroll down and choose the Vesta Control Panel Plugins link
# Look for File Manager entry
Choose YES from the drop-down menu
# Enter the License Key which you get from Vesta team
# Click the Save button.
# You will see “File Manager” new entry in the top menu
Sometimes wordpress admin Ajax script creates load on the server.
WordPress Heartbeat API was introduced in WordPress 3.6 version.
The WordPress Heartbeat API uses wp-admin/admin-ajax.php to run AJAX calls from the browser. The purpose of this API is to improve user session management, auto-saving, revision tracking.
However, sometimes it causes high CPU usage and crazy amounts of PHP processes.
For example, if you leave your wordpress dashboard open, it will keep sending POST requests on a regular interval, hence can cause the Heartbeat API to continually spawn PHP processes which uses CPU.
Heartbeat control wordpress plugin can help you fix this problem.
Follow the steps below to configure.
# Login to wp-admin of your website
# Install Heartbeat control plugin
# Go to Settings and click into “Heartbeat Control.”
# Under “Control heartbeat locations” you have a couple options, select any option as per your need
Use default
Disable everywhere
Disable on dashboard page
Allow only on post edit pages
# Then you can set frequency for the heartbeat polling.
Hopefully, it will take care of some of your problems.
Robots.txt is a small text file which needs to create in the root directory of your website. On cPanel server, you will need to put robots.txt fiile into /public_html/ folder.
It tells well-behaved crawlers whether to crawl certain parts of the site or not. The file uses a simple syntax to be easy for crawlers to put in place.
In order to block all bots from accessing your site, you need to create a robots.txt file with the following content:
User-agent: * Disallow: /
To block all bots from accessing a specific folder, you should create a robots.txt file with the following content:
User-agent: * Disallow: /folder/
You can create/modify the robots.txt file via File Manager in cPanel.
You can use the slow query log to help determine which database queries take a long time to run. However, the slow queries can affect database performance and overall server performance.
Follow below steps to enable the mysql slow query log on your server : # Login to SSH shell with root user # vi /etc/my.cnf
Note : wherelong_query_time – time taken by an SQL query to be executed in seconds. If a query takes longer than the value specified, this query will be recorded in the slow query log file.
Note: In MySQL 5.7, the variable log-slow-queries is deprecated so use slow_query_log_file instead of log-slow-queries .
On cPanel server, “mod_userdir” (WHM >> Home >> Security Center >> Apache mod_userdir Tweak) allows you to access website through a temporary URL in the http://IP/~username format. However, some sites will not work with a temporary URL like wordpress. For those sites, you can configure your windows computer with the server’s IP address into “hosts” file so you can view website without pointing DNS to your server.
Follow below steps to modify the “hosts” file on a Windows® 8 or Windows® 10 system :
1. On your keyboard, type Win+X on the keyboard, or click the windows icon in the lower-left corner of your desktop interface to to open the Start menu.
2. Enter Notepad in the search text box.
3. Right-click Notepad and select Run as Administrator.
4. From the Notepad , open the following file:
C:\Windows\System32\Drivers\etc\hosts
5. Add the destination server’s IP address and domain name under the latest entry in the file, for example:
Note: In this example, 1.2.3.4 represents the destination server’s IP address, and blog.example.com represents the domain name. 6. Save your changes. 7. Reload your web browser for the changes to take effect.
To modify the “hosts" file on a Windows® 7 or Windows Vista® system, perform the following steps:
Click Start.
Enter Notepad in the Start menu search text box.
Right-click Notepad and select Run as Administrator.
From the Notepad, open the following file: C:\Windows\System32\Drivers\etc\hosts
Add the destination server’s IP address and domain name under the latest entry in the file, for example:
If there is a high load on your server and you need to find out exact processes & users are consuming your server resources. In such case, we can use “ps” command.
There are different ways to check uptime of apache httpd service. Here are some commands which are useful to find out the uptime of Apache httpd service.
In WHM, you can change the default PHP version through Multi-PHP Manager. However, if you want to change the global default PHP version through command line you can follow below steps :
To display the current default PHP version :
# /usr/local/cpanel/bin/rebuild_phpconf –current
Above command is showing PHP 5.6 as default php version. Now we will change it to PHP 7.0 version with below command