Plesk usually uses either Postfix (new versions) or Qmail (old ones). To find out which one you’re currently using, run the following command via SSH: # /usr/local/psa/admin/sbin/mailmng –features | grep SMTP_Server A QUICK COMMANDS GUIDE FOR POSTFIX Show the email messages in Queue: # postqueue -p | tail -n 1 | cut -d’ ‘ -f5 List […]
Author Archives: admin
PHP mail() function simple test script
This is a simple script you can use to test the functionality of the php mail() function on your server: ?php $to = “your@emailaddress.here“; // <– replace with your address here $subject = “Test mail”; $message = “Hello! This is a simple test email message.”; $from = “sender@emailaddress.here“; $headers = “From:” . $from; mail($to,$subject,$message,$headers); echo […]
How to patch/disable SSL 3.0 and fix POODLE vulnerability
SSL 3.0 is an old protocol for securing connections over the internet, its successors currently used are TLS 1.1 and TLS 1.2. However, for compatibility reasons, most servers still support SSL 3.0 and default back to it if a connection via TLS cannot be established. To disable SSL 3.0 and thus protect yourself from POODLE, you […]
Force redirect http to https
A simple and very straight forward way to force redirect http requests to https without amending your website code in environments where the server hosting your website is behind a load balancer (such as for most shared hosting/cloud platforms) is by using this piece of code in your .htaccess file: RewriteEngine On RewriteCond %{ENV:SSL} !1 […]
WordPress force redirect http to https
Usually when needed to force redirect requests to https a simple rule is added in a htaccess file to take care of this, but not all hosts support that especially when a proxy or load balancer is used. What you need to to is to simply download and manually install this plugin.
cPanel – Cron Jobs/Scheduled tasks
Cpanel -> Advanced->Cron Jobs-> As an example for using this feature, we will run a php script (test.php) which sends an e-mail to a predefined e-mail address. In the command line enter: /usr/bin/php -q /home/cpanelusername/public_html/test.php As per the above settings, the command to run the test.php script will be executed every five minutes. Make sure […]
The plain HTTP request was sent to HTTPS port nginx
Getting annoyed by the error message displayed each time you forget to use https in your URL when trying to access th Plesk panel? The “400 Bad Request – The plain HTTP request was sent to HTTPS port” error is caused by a bug in the Parallels Plesk panel version 11.5, here is a quick fix for it: create […]
Stop Excel 2013 from auto-converting numeric values to dates
There are few ways to resolve that, the most common and simple one would be to format the cells prior pasting the data as text (select range, right click, format cells, double click on text). What I have done was to simply change the decimal separator: File -> options -> advanced -> untick “use system […]
OpenSSL Heartbleed bug – a quick explanation on the recent security issue and the fix
Heartbleed is a recently discovered small bug that relates to the OpenSSL’s implementation of the TLS ‘heartbeat’ mechanism. The bug is present only in the OpenSSL versions 1.0.1 through 1.0.1f! By exploiting this bug, an attacker can request that a running TLS server hand over a relatively large slice (up to 64KB) of its private […]
Quick commands guide for the vi / vim editor
Vim is a text editor that you can use in Linux environments to create or edit files. There are two working modes in vim. One is the command mode and another is the insert mode. To enter text or edit any line, press the “i” key on your keyboard (the i stands for Insert). Once you’re […]