New Application Types for MS Word

Have you ever wondered why the new Microsoft 2007 Word file type (.docx) can not be downloaded directly from your Apache server? Well, the answer is because it doesn’t recognize what kind of application type it is, therefore it can’t send the correct header information to your browser. Fortunately, the fix for this is rather simple with Apache. Just add these application types for MS Word to your server’s httpd configuration (httpd.conf or apache2.conf) and files will start downloading like magic.

# New Application Types for MS Word.
addtype application/onenote … Continue reading New Application Types for MS Word

Plesk: MySQL login as Admin User

A situation came up with a new Plesk server. I needed to login to MySQL with admin/root access. I had no idea what the password was. Luckily there’s a trick to logging in as the admin user. Login remotely to your server using SSH and do the following:

mysql -u admin -p `cat /etc/psa/.psa.shadow` Your shell prompt should now look like this:

mysql>

Run … Continue reading Plesk: MySQL login as Admin User