Redirecting http:// to https:// automatically & Forcing SSL for a particular folder

To redirect all http:// traffic to the corresponding https:// traffic, we make use of a bit of mod_rewrite magic. RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] Replace www.example.com with your own SSL URL. To force SSL for a particular folder (not the entire site), use the following instead:

/tmp & /var/tmp noexec hardening without reboot

After discovering scripts running in my /tmp folder (in CentOS 5.x) I had to harden the directory. The faster way to harden your /tmp and /var/tmp without rebooting is the following: In your /dev directory create an empty 2,5 GB file (best for web hosting servers with many websites). # cd /dev # dd if=/dev/zero ...

HORDE [error] [imp] Failed to open sendmail

If you try to send an email from the the webmail and get the error :Failed to open sendmail [/usr/sbin/sendmail] for execution. or you see the following lines in the horde log: ERROR: Nov 27 16:29:37 HORDE [error] [imp] Failed to open sendmail [/usr/sbin/sendmail] for execution. [on line 1087 of “/usr/share/psa-horde/imp/compose.php”] The solution is:

Plesk Billing 6.x Fatal error: Unsupported operand types in..

After a totally fresh installation of Plesk Billing , as you login as a simple client you may notice an PHP Fatal error (the webpage will be blank but the errors will be visible in the log files)

Plesk 9.x – SSL Error , certificate is for localhost.localdomain

When you install a certificate in a Plesk 9.x version you and try to check if ti works in the browser you might get a strange problem , the appearing SSL in the browser would be issued for localhost.localdomain (the default certificate that comes with the OS for example CentOS).

Plesk (windows) backup gives the error: Failed to connect to database: User ‘admin’ has exceeded the ‘max_user_connections’ resource (current value: 10)

when you try to backup the databases of the websites from Plesk Backup util and you get failure and the message “Failed to connect to database: User ‘admin’ has exceeded the ‘max_user_connections’ resource (current value: 10)” you have to change the mysql options