Ramblings from MostlyChris

Tech stuff and a bit more

I recently was asked to allow access to a server's webmail. The problem was that there are no longer any domains pointed to the server. The solution, of course, was to connect to webmail via the IP address. Since this is a Plesk server, the following will allow access by IP.

Create a file in /etc/httpd/conf.d called zz012_horde.conf

Place the following in the file

<Directory /usr/share/psa-horde>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/etc/psa:/usr/share/psa-horde:/usr/share/psa-horde/config:/tmp"
php_admin_value include_path "/usr/share/psa-horde/lib:/usr/share/psa-horde/pear:."
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/etc/psa:/usr/share/psa-horde:/usr/share/psa-horde/config:/tmp"
php_admin_value include_path "/usr/share/psa-horde/lib:/usr/share/psa-horde/pear:."
</IfModule>
</Directory>
Alias /horde /usr/share/psa-horde

Restart apache and then access the file using the url http://ip.ad.dr.es/horde.

Ok.. so I am so going to plagiarize this but I needed a place to find it for easy reference. What better place than my blog. If psa fails to start after upgrade it is most likely a problem with a bug in the latest openssl package. Parallels has an update here:

http://kb.parallels.com/en/8338

Basically, you need to update the openssl package. Links for the various OS's are listed in the URL. Download the rpm, install it and then restart (or start) psa. Voila. Back to business as usual. I should also note that I experienced this in version 9.0.3 of Plesk. I don't know if it affects other versions.

HTML5

No comments

Today I begin my journey with HTML 5. I don't know how far I'll get until I get bored with it, but since it appears to be what we all might be moving to in the near future I am going to get some of it into my brain starting now.

Along with my megacli post, I need to remember how to check drives/RAID on an HP server so here it is.

hpacucli controller slot=1 ld all show

You'll need to replace the slot with the appropriate one for your configuration.

That should do it.

Suppose you would like to send a copy of an incoming email to another account while the email still goes to the original account. You can do this by modifying the .qmail file of the original recipient and adding an entry that looks like the following:

&user@domain.com

On a Plesk server, a full .qmail file with the above changes looks like this:

| true
&user@domain.com
| /usr/bin/deliverquota ./Maildir

Keep in mind that if you do this on a Plesk server, these changes will be overwritten with mchk or upgrades so you will have to take measures to deal with this. I set the files immutable so they can't be changed by Plesk. This causes its own problems so you will have to decide if it is worth it.