Disable suexec

To find suexec type in

whereis suexec

Result

suexec: /usr/sbin/suexec /usr/sbin/suexec.saved_by_psa /usr/share/man/man8/suexec.8.gz

Now move the file to a backup

mv /usr/sbin/suexec /usr/sbin/suexec_old

Restart apache

/etc/init.d/httpd  restart

Setup svn repo with an auto update hook

This is on a MediaTemple VPS running on CentOS 5 and is assuming you already have svn installed

So first thing is to go into the hooks folder for a particluar svn repository

cd /var/svn/website/hooks

You’ll see they all have .tmpl on the end – so the’yre all just templates

To make it active we need to remove the .tmpl
The one we want is post-commit.tmpl
So jut need to copy it to new file without the extension

cp post-commit.tmpl post-commit

So now we need to vi into it
You’ll see its full or instructions, etc.
You can just leave that
Go down to bottom
Comment out the last 5 lines, well last 2 and the 2 above

Now add two lines whever u want:

cd /var/www/vhosts/somedomain.com/subdomains/devdomain/httpdocs/  #path to website
svn up

Ok save and exit

Ok now need to make executable

chmod 755 post-committ

Now, the script needs to be owned by a user that has an svn account set up in the repo

To see list of users look in the passwd file ( /var/svn/website/conf/ )

chown username post-commit

Now u can test with

./post-commit

It might need the ownership of whoever made the working copy checkout on the server, the ones I have done I have always made the first checkout on the server so it’s always been my account.  It will give an error if it needs to be a different user ownership anyway.

Posted in svn

View All Email Account Passwords in Plesk

Run this in the psa mysql database to see all email passwords

SELECT accounts.id, mail.mail_name, accounts.password, domains.name 
FROM domains 
LEFT JOIN mail ON domains.id = mail.dom_id 
LEFT JOIN accounts ON mail.account_id = accounts.id

Run this modified version to see just a particular domain

SELECT accounts.id, mail.mail_name, accounts.password, domains.name
FROM domains
LEFT JOIN mail ON domains.id = mail.dom_id
LEFT JOIN accounts ON mail.account_id = accounts.id
WHERE domains.name = 'somedomain.com'

Source: http://www.search-this.com/2007/02/07/view-all-email-account-passwords-in-plesk/

Remove advertising (Top News) panel Horde

Linux Route

cd / usr / share / psa-horde / templates / portal
vi sidebar.inc

Comment out the following block:

/ *
if (window.NewsFeeds) (
window.NFopen = (readCookie ( 'plesk_newsfeed_visible') == 'false')? false: true;
document.write ( ") document.write ( '<tbody>') document.write (") document.write ( ");
document.write ( ") document.write (") document.write ( '</ tbody>
<? php echo _ ( 'Top News');?>
<a href = "javascript: NFgetList ()" class = "btn-refresh" title = "<? php echo _ ( 'Refresh');>>
<? php echo _ ( 'Refresh');?> </ a>
<a href = "javascript: NFcollapseList ()" class = "btn-open-close" title = "<? php echo _ ( 'Open / Close');>>
<? php echo _ ( 'Open / Close');?> </ a>
') Document.write ('
') Document.write ('
');
if (window.NFopen & readCookie ( 'horde_sidebar_expanded')! = 'false')
NFgetList ();
)
* /

Source: http://translate.google.com/translate?hl=en&ie=UTF-8&sl=es&tl=en&u=http://blogs.clavedigital.com/ncastillo/2009/02/11/quitar-publicidad-top-news-del-panel-de-horde/

Unfortunately this will revert back to showing ads as soon as Horde gets updated.

Fortunately, Parallels added the option to disable the left menu advertising in horde from within the PLESK pannel

In PLESK 9 (And 9.2), Go to settings on the Left menu (Logged in as PLESK admin) => Scroll down to Control Panel Interface / Interface Management => Interface Controls Visibility, you should find a “Do not show newsfeeds in Webmail and on default domain pages” checkbox, Put a check in the checkbox and click OK.

Source: http://www.easywebdns.com/tutorials/PLESK/Horde_PLESK_IMP_Left_Menu_Advertising