Overriding PHP settings

You’re migrating your site to your brand new Plesk server and your site doesn’t behave like it should. This is probably because of the default PHP settings that Plesk enforces. Examples are safe_mode and magic_quotes_gpc. Here’s how to take care of that. First, you…

Changing the server's hostname in Plesk

After using your Plesk server for some time, you might want to, or have to change your server’s hostname. Assuming your server runs Fedora Core or RedHat, you’ll have to make changes in the following locations 1. /etc/hosts Your current hostname should be here behind the server’…

Adding SPF records in Plesk

As of Plesk 7.1.4, Plesk allows us to add TXT records in the DNS for a domain, thus allowing us to add SPF records. SPF is, in theory, a good way to stop spam. In short, SPF allows you to tell the world, which mailservers are allowed to…

DirectoryIndex index.html overruled by index.php

When building a site in PHP, you might want to put an index.html up to keep unwanted eyes away from your new site. The index.html however is overruled by index.php. Here’s how to fix this. The file /etc/httpd/conf.d/php.conf contains the directive…

Advanced Horde configuration in Plesk

You might want to change the Horde webmail module in Plesk to behave more to your, or your company’s liking. Headers can be appended. The default footer (bah) can be removed, or changed to contain a disclaimer, quote, or simple message. The default stylesheet colours can be changed to…

Wildcard subdomains

If you want to use wildcard subdomains and point them to your website make sure you have the following. Make sure you have a wildcard DNS entry in Domain > DNS. You can add one as follows: 1. Set the “Record Type” dropdown to “A” and klick the Add button.…

Weird output when using special characters

When you’re using special characters in your HTML and the output doesn’t look like you expected, you’ll need to change a line in apache’s config file. Open the file /etc/http/conf/httpd.conf in your favorite editor (vi) and search for the string AddDefaultCharset. This…