<rdf:RDF
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xml:base='http://bliki.rimuhosting.com/rdf'>
    <s:Snip rdf:about='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver/plesk+notes'
         s:cUser='retep'
         s:oUser=''
         s:mUser='kron'>
        <s:name>knowledgebase/linux/webserver/plesk notes</s:name>
        <s:content>1 Getting Premature End of Script Errors?&#xD;&#xA;&#xD;&#xA;Check out:&#xD;&#xA;http://forums.sw-soft.com/showthread.php?threadid=26939&#xD;&#xA;&#xD;&#xA;1  Mailman Wrapper GID error&#xD;&#xA;&#xD;&#xA;Getting this error?&#xD;&#xA;&#xD;&#xA;Failure_to_exec_mailman_wrapper._WANTED_gid_110,_GOT_gid_101.__(Reconfigure_to_take_101?)/did_0+0+1/&#xD;&#xA;&#xD;&#xA;Check the GID of user &apos;popuser&apos; is 110 in /etc/passwd and /etc/group&#xD;&#xA;&#xD;&#xA;Create a file mm_wrapper.c with the following content:&#xD;&#xA;&#xD;&#xA;{code}&#xD;&#xA;#include &lt;errno.h&gt;&#xD;&#xA;#include &lt;sys/types.h&gt;&#xD;&#xA;#include &lt;unistd.h&gt;&#xD;&#xA;#include &lt;stdio.h&gt;&#xD;&#xA;int main(int argc, char** argv, char** env) {&#xD;&#xA;if (setregid(110, 110) != 0) {&#xD;&#xA;printf(&quot;Set right UID/GID for popuser in /etc/passd,/etc/group\n &quot;);&#xD;&#xA;return -1;&#xD;&#xA;}&#xD;&#xA;(void) execve(&quot;/usr/local/psa/qmail/bin/mm_wrapper-real&quot;, argv, env);&#xD;&#xA;/* Should not get here */&#xD;&#xA;}&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Run these commands:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;mv /usr/local/psa/qmail/bin/mm_wrapper /usr/local/psa/qmail/bin/mm_wrapper-real&#xD;&#xA;gcc mm_wrapper.c -o /usr/local/psa/qmail/bin/mm_wrapper&#xD;&#xA;chmod 6755 /usr/local/psa/qmail/bin/mm_wrapper&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Taken from: http://7gen.com/personal-blog-entry/2005sep231516/computers/building-web-sites/brute-force-fix-for-mailman-integration-on-plesk-systems&#xD;&#xA;&#xD;&#xA;See also:&#xD;&#xA;http://forum.plesk.com/showthread.php?threadid=27474&#xD;&#xA;&#xD;&#xA;1 Plesk Mis-Detecting Distro Version On Update&#xD;&#xA;&#xD;&#xA;Running WhiteBox Linux 3 and getting an error like:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;Error: You are using Redhat Linux 3.0, but autoinstaller was compiled for Redhat Enterprise Linux 3.&#xD;&#xA;&#xD;&#xA;Exiting autoinstaller.&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Then Plesk is mis-detecting your distro version.  Change your /etc/redhat-release filel from:&#xD;&#xA;White Box Enterprise Linux release 3.0 (Liberation Respin 2)&#xD;&#xA;&#xD;&#xA;To:&#xD;&#xA;Red Hat Enterprise Linux WS release 3 (Taroon Update 5)&#xD;&#xA;&#xD;&#xA;To fool Plesk.&#xD;&#xA;&#xD;&#xA;1 Custom Apache Directives For Your Virtual Host&#xD;&#xA;&#xD;&#xA;Run {code}&#xD;&#xA;/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost=yourdomain.com&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Once you do that, you can happily edit the vhost.conf with anything you need.&#xD;&#xA;&#xD;&#xA;1 Plesk IP Changes&#xD;&#xA;&#xD;&#xA;Are you moving servers or changing IPs on your Plesk setup?  Then you need to tell Plesk about the new IPs.&#xD;&#xA;&#xD;&#xA;To do this:&#xD;&#xA;{code}&#xD;&#xA;cd /usr/local/psa/bin/&#xD;&#xA;perl reconfigurator.pl mapfile&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Then edit the mapfile to something like this (e.g. when going from 127.0.0.1 to 10.1.1.0)&#xD;&#xA;&#xD;&#xA;{code}&#xD;&#xA;eth0:127.0.0.1 255.255.255.0 -&gt; eth0:10.1.1.0 255.255.255.128&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Then rerun:&#xD;&#xA;{code}&#xD;&#xA;perl reconfigurator.pl mapfile&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;1 Plesk Mail Forwards &#xD;&#xA;&#xD;&#xA;If you setup a mail forwarder in Plesk, it will also deliver a copy of the forwarded email to the original recipients mailbox. To stop this from happening, disable the original recipients mailbox. The mail will still be forwarded properly.&#xD;&#xA;&#xD;&#xA;1 Forgotten Your Plesk Admin Password?&#xD;&#xA;&#xD;&#xA;Plesk stores the password at /etc/psa/.psa.shadow  The username is always admin.  And the &apos;root&apos; mysql user is renamed to &apos;admin&apos; and has the same password used for the Plesk login.  The plesk login url will be https://ip:8443/&#xD;&#xA;&#xD;&#xA;1 Getting Horde Available At http://yourip/webmail&#xD;&#xA;&#xD;&#xA;Create /etc/httpd/conf.d/horde.conf and put the following into it:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;Alias /webmail /home/httpd/vhosts/webmail/horde&#xD;&#xA;Alias /horde /home/httpd/vhosts/webmail/horde&#xD;&#xA;&lt;Directory /home/httpd/vhosts/webmail/horde&gt;&#xD;&#xA;  php_admin_flag engine on&#xD;&#xA;  php_admin_flag magic_quotes_gpc off&#xD;&#xA;  php_admin_flag safe_mode off&#xD;&#xA;  php_admin_value open_basedir &quot;/home/httpd/vhosts/webmail:/etc/psa:/tmp&quot;&#xD;&#xA;  php_admin_value include_path &quot;/home/httpd/vhosts/webmail/horde/lib:/home/httpd/vhosts/webmail/horde/pear:.&quot;&#xD;&#xA;&lt;/Directory&gt;&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;And restart Apache: /etc/init.d/httpd restart&#xD;&#xA;&#xD;&#xA;1 Using Plesk Behind A Firewall&#xD;&#xA;&#xD;&#xA;Behind a firewall and can&apos;t use http://yourip:8443?&#xD;&#xA;&#xD;&#xA;Create a subdomain e.g. plesk.yourdomain.com.&#xD;&#xA;&#xD;&#xA;Then in /var/www/vhosts/yourdomain.com/subdomains/plesk/conf/vhost.conf, put:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;ProxyRequests Off&#xD;&#xA;ProxyPass / http://yourip:8880/&#xD;&#xA;ProxyPassReverse / http://yourip:8880/&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Then run: /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost=yourdomain.com&#xD;&#xA;&#xD;&#xA;And restart Apache. http://plesk.yourdomain.com/ should then allow you to access the Plesk control panel over port 80.&#xD;&#xA;&#xD;&#xA;1 Plesk and Apache ASP&#xD;&#xA;&#xD;&#xA;If you&apos;re getting errors like these:&#xD;&#xA;&#xD;&#xA;failed to resolve handler `Apache::ASP&apos;: Can&apos;t locate Apache2/RequestRec.pm in @INC &#xD;&#xA;&#xD;&#xA;Try installing mod_perl 2.x (if you&apos;re using CentOS4/RHEL4, grab the package from CentOS Plus).&#xD;&#xA;&#xD;&#xA;If you continue to get errors (e.g. Can&apos;t locate object method &quot;get&quot; via package &quot;APR::Table&quot;) try removing ASP.pm files, and re-installing it:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;# cpan&#xD;&#xA;cpan&gt; install Apache::ASP&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;If that doesn&apos;t help, try adding this to /etc/httpd/conf/startup.pl:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;#!/usr/bin/perl&#xD;&#xA;&#xD;&#xA;use Apache2::compat;&#xD;&#xA;1;&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;And this to /etc/httpd/conf.d/perl.conf:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;PerlRequire /etc/httpd/conf/startup.pl &#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Then restart Apache (/etc/init.d/httpd restart).&#xD;&#xA;&#xD;&#xA;1 Plesk and AWStats&#xD;&#xA;&#xD;&#xA;In Plesk 8.1.x, the option to use AWStats instead of Webalizer appeared. However, if you&apos;ve upgraded to 8.1.x (rather than a fresh install), AWStats may not actually work.&#xD;&#xA;&#xD;&#xA;Try running /usr/local/psa/admin/sbin/statistics and see if you get errors in /var/log/messages about it not being able to find the AWStats scripts like these:&#xD;&#xA;&#xD;&#xA;statistics: Unable to execute /usr/share/awstats/tools/awstats_buildstaticpages.pl -awstatsprog=/usr/share/awstats/wwwroot/cgi-bin/awst&#xD;&#xA;ats.pl -configdir=/usr/local/psa/etc/awstats -config=yourdomain.com-anon_ftp -dir=/var/www/vhosts/yourdomain.com/statistics/anon_ftpstat/&#xD;&#xA;&#xD;&#xA;If you do, you&apos;ll need to setup some symlinks to fix things:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;mkdir -p /usr/share/awstats/tools/&#xD;&#xA;cd /usr/share/awstats/tools/&#xD;&#xA;ln -s /usr/bin/awstats_buildstaticpages.pl .&#xD;&#xA;mkdir -p /usr/share/awstats/wwwroot/cgi-bin/&#xD;&#xA;cd /usr/share/awstats/wwwroot/cgi-bin/&#xD;&#xA;ln -sf /var/www/awstats/awstats.pl .&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Now run this command and check if &apos;yourdomain.com&apos; now has a AWStats page:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=yourdomain.com&#xD;&#xA;{code}</s:content>
        <s:mTime>2007-05-04 00:11:23.0</s:mTime>
        <s:cTime>2005-09-06 23:48:39.0</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver'/>
                <rdf:li>
                    <s:Snip rdf:about='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver/plesk+notes'>
                        <s:attachments
                             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
                    </s:Snip>
                </rdf:li>
                <rdf:li rdf:resource='#knowledgebase'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/ruby on rails'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/java/tomcat on plesk'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail/postfixadmin on debian sarge'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/misc/ajax autocomplete'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail/qmail notes'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/rpm based mysql5 install'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver/apache/webdav'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/rimuhosting/vps backups'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail/postfix with amavis and mysql'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/postgresql notes'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/rpm based php5.1 install'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver/apache/installing and using mod_fastcgi'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/grub boot cd'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/auto-restart'/>
                <rdf:li rdf:resource='#domingos'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver/mysql php connection error'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/remote server desktop with vnc'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/rimuhosting/load balancing and failover'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/grub'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/misc/disk quotas'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/java/-Xmx settings'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver/noexec tmp'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/webserver/apache/mod_rewrite'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/distros/debian'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/java/gridsphere install'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/java/liferay install on tomcat 5.5'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail'/>
            </rdf:Bag>
        </s:snipLinks>
    </s:Snip>
</rdf:RDF>
