Unspecified Error Copy and Paste Files in Windows Server with RDP

When conned to a Window server you get the following error:

Open the task manager and end the RDP Clipboard Monitor task. Then right click on start > run > rpdclip.exe. I was able to find a way that you can script this to make it easier on you moving forward. Please see the link below to see how to make the bat file.

https://techtalk.gfi.com/copy-paste-working-remote-desktop-connection-whats-wrong/

How To Install cPanel on a Virtual Server Running Centos

First we need to make sure that Perl is installed on the server


# sudo yum install perl

After installing perl we need to take one more preliminary step. cPanel is very picky about making sure that server that it is installed on has a Fully Qualified Domain Name. To that effect, we need to provide it with a valid hostname. Skipping this step will inevitably get you the following, very common, error.


2012-11-01 16:00:54  461 (ERROR): Your hostname () is not set properly. Please
2012-11-01 16:00:54  462 (ERROR): change your hostname to a fully qualified domain name,
2012-11-01 16:00:54  463 (ERROR): and re-run this installer.

Luckily this error has a very easy solution. If you have a FQDN, you can type it in with the command:


# hostname your FQDN

Otherwise, if you want to proceed with the cPanel installation but do still lack the hostname, you can input a temporary one. Once cPanel is installed, you will be able to change the hostname to the correct one on one of the first setup pages.


# hostname  host.example.com

Install cPanel

Although the cPanel installation only has several steps, the installation does take a long time. Although using program “screen” is not necessary in order to install cPanel, it can be a very helpful addition to the installation process. It can be especially useful if you know that you may have issues with intermittent internet or that you will need to pause the lengthy install process.

To start off, go ahead and install screen and wget:


# sudo yum install screen wget

Once screen is installed, start a new session running:


# screen

After opening screen, you can proceed to install cPanel with WHM or a DNS only version of cPanel.

Use this this command to install cPanel with WHM:


# wget -N http://httpupdate.cPanel.net/latest

Use this command to install the DNS only version of cPanel:


# wget -N http://httpupdate.cPanel.net/latest-dnsonly

With the requested package downloaded, we can go ahead and start the script running:


# sh latest

Then close out of screen. The script, which may take one to two hours to complete will continue running while in the background—even if you close out the of server.

In order to detach screen type:


Cntrl-a-d

To reattach to your screen you can use the command:


# screen -r

Once cPanel finally installs, you can access the login by going to your ip address:2087 (eg. 12.34.45.678:2087l) or domain (example.com:2087)

Your login will be:


username: your_server_user
password: your_password

From there, you can create your cpanel user and finally login in at ipaddress/cpanel or domain/cpanel

Plesk Repair Utility

The Plesk self-repair functionality enables you to automatically diagnose and resolve issues with Plesk and Plesk services. If you encounter an issue with one of the Plesk services (for example, if mail is not being sent or delivered, or a website fails to open, and so on), or with Plesk itself (for example, if error messages are being displayed in the Plesk interface, or if Plesk pages fail to load), you can use the Plesk repair utility to attempt to resolve it. The utility can be used to check and repair individual aspects of Plesk (such as the mail service, or the Plesk database), or all the aspects at once.

More at https://docs.plesk.com/en-US/12.5/administrator-guide/plesk-administration/plesk-repair-utility.74649/

Awstats not updating in Plesk

You are checking your stats and see low traffic:

How to recalculate AWStats statistics from logs for previous months. Follow this link for a plesk article:

https://support.plesk.com/hc/en-us/articles/213901965-How-to-recalculate-AWStats-statistics-from-logs-for-previous-months

Plesk Administration: https://docs.plesk.com/en-US/onyx/advanced-administration-guide-linux/statistics-and-logs/calculating-statistics.68650/

Another issue had to do with a bug in plesk.

Check your Plesk Web Statistics at the bottom of the page:

The most frequent HTTP Status code is “301 – Moved permanently (redirect)” at https://domain.com/plesk-stat/webstat/. It takes 49.5%.

In addition, “Permanent SEO-safe 301 redirect from HTTP to HTTPS” is checked under Domains > domain.com > Hosting Settings > Security section.

In this way the SSL traffic is not shown under Domains > domain.com > Web Statistics.

This issue was caused by a product defect. A bug has been already created: PPPM-548: SSL traffic is not shown in webstat.

More information here:
https://docs.plesk.com/release-notes/onyx/change-log/

To view the statistics:

Access SSL traffic statistics using the link below:
https://domain.com/plesk-stat/webstat-ssl/

Please, see the following article in order to get more information on the issue:
https://support.plesk.com/hc/en-us/articles/213951505

cPanel Error for Install for OWASP ModSecurity Core Rule Set V3.0

Recently encountered an error. going to Home >> Security Center >> ModSecurity >> Vendors and clicking Install. However I’m getting the following error messages:

Error:The system experienced the following error when it attempted to install the ?OWASP ModSecurity Core Rule Set V3.0? vendor: API failure: The system could not validate the new Apache configuration because httpd exited with a nonzero value. 

Fix:

Backup the /var/cpanel/modsec_cpanel_conf_datastore file.

Manually edit /var/cpanel/modsec_cpanel_conf_datastore file with your favorite editor. Removed all active configs, active vendors, disabled rules, and updates. Just keep disabled rule. Save the file.

Login to WHM >> Home >> Security Center >> Modsecurity Vendors >> Manage Vendors >> OWASP ModSecurity Core Rule Set >> click +install

Modsecurity rules will should be installed without any issue.

Other links:
https://forums.cpanel.net/threads/mod_security-and-easyapache-4.501871/

Remote Desktop Error after Installing Remote Desktop Service

If you install Remote Desktop Services on the server, but you do not have any CAL Licenses on the service, you will receive an error for remote connection.

The Remote Desktop Service is for hosting your own RDP Service for groups of server typically, using AD.

To resolve, close any RDP sessions on your computer, then hit Windows Key + R to open a run prompt and input this; mstsc /admin

Then try to connect as per usual. That should ignore the RDS licensing service and let you connect. Once you connect, go into Server Manager and remove the Remote Desktop Services or purchase and install CAL Licenses for the service from Microsoft.

Installing Apps from Plesk Application Vault Hangs

When the WordPress Install button is pressed (including the custom install option) in Application Vault, a progress bar is shown but never changes from 0%.

Log into Plesk.

Click "Tools and Utilities" > "Application Vault" > "My Apps".

Try installing the app. Here, the notification bar shows: Please wait…. 0%. This bar may remain the same for several hours with nothing happening.

Cause

A large number of applications are stuck in the psa.longtasks table. Or MySQL service is down.

Resolution

Backup the psa database by following the instructions in KB #213904125

Make sure that MySQL service is running:

Linux:

# service mysqld status 
# systemctl status mysqld.service 
# systemctl status mariadb

Windows:

> net start MySQL

Check that /dev/null has permissions crw-rw-rw-:
Linux:

 ls -la /dev/null
crw-rw-rw-. 1 root root 1, 3 Jul 19 15:15 /dev/null

Log into MySQL and access the psa database:

Linux:

MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa

Windows:

"%plesk_dir%"\\MySQL\\bin\\mysql.exe -uadmin -p psa -P8306

Check the long tasks that are present on the server:

mysql> select * from longtasks;

+----+--------------+---------+-------------+-----------------+----------------+----------------+-------------+---------------+---------------------+---------------------+-------+
| id | type         | context | status      | statusProcessed | progressStatus | progressParams | progressMax | progressValue | startTime           | finishTime          | pid   |
+----+--------------+---------+-------------+-----------------+----------------+----------------+-------------+---------------+---------------------+---------------------+-------+
|  1 | aps-download | NULL    | started     |               0 | queue          | NULL           |         100 |             0 | 2017-07-21 13:34:03 | 0000-00-00 00:00:00 |     0 |
|  2 | aps-cache    | NULL    | done        |               0 | done           | NULL           |         100 |           100 | 2017-07-21 13:35:56 | 2017-07-21 13:35:56 | 31908 |
|  3 | aps-cache    | NULL    | done        |               0 | done           | NULL           |         100 |           100 | 2017-07-21 13:36:23 | 2017-07-21 13:36:23 | 31973 |
|  4 | aps-download | NULL    | not_started |               0 | queue          | NULL           |         100 |             0 | 2017-07-21 13:48:42 | 0000-00-00 00:00:00 |     0 |
|  5 | aps-cache    | NULL    | done        |               0 | done           | NULL           |         100 |           100 | 2017-07-21 13:57:51 | 2017-07-21 13:57:51 |  4515 |
+----+--------------+---------+-------------+-----------------+----------------+----------------+-------------+---------------+---------------------+---------------------+-------+

Delete these tasks:

mysql> truncate longtasks;
mysql> truncate longtaskparams;

Make sure /etc/localtime file has 644 permissions:

# ls -la /etc/localtime

If not, set it:


# chmod 644 /etc/localtime

Try installing the application again.

Adding DKIM to Postfix

DKIM on Postfix:

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-dkim-with-postfix-on-debian-wheezy

The configuration can be tested by sending an empty email to check-auth@verifier.port25.com and a reply will be received. If everything works correctly you should see DKIM check: pass under Summary of Results.

==========================================================
Summary of Results
==========================================================
SPF check: pass
DomainKeys check: neutral
DKIM check: pass
Sender-ID check: pass
SpamAssassin check: ham
Alternatively, you can send a message to a Gmail address that you control, view the received email’s headers in your Gmail inbox, dkim=pass should be present in the Authentication-Results header field.

Authentication-Results: mx.google.com;
spf=pass (google.com: domain of contact@example.com designates — as permitted sender) smtp.mail=contact@example.com;
dkim=pass header.i=@example.com;