Getting Premature End of Script Errors?
Check out:
http://forums.sw-soft.com/showthread.php?threadid=26939
Mailman Wrapper GID error
Getting this error?
Failure_to_exec_mailman_wrapper._WANTED_gid_110,_GOT_gid_101.__(Reconfigure_to_take_101?)/did_0+0+1/
Check the GID of user 'popuser' is 110 in /etc/passwd and /etc/group
Create a file mm_wrapper.c with the following content:
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
int main(int argc, char** argv, char** env) {
if (setregid(110, 110) != 0) {
printf("Set right UID/GID for popuser in /etc/passd,/etc/groupn ");
return -1;
}
(void) execve("/usr/local/psa/qmail/bin/mm_wrapper-real", argv, env);
/* Should not get here */
}Run these commands:
mv /usr/local/psa/qmail/bin/mm_wrapper /usr/local/psa/qmail/bin/mm_wrapper-real
gcc mm_wrapper.c -o /usr/local/psa/qmail/bin/mm_wrapper
chmod 6755 /usr/local/psa/qmail/bin/mm_wrapper
Taken from:
http://7gen.com/personal-blog-entry/2005sep231516/computers/building-web-sites/brute-force-fix-for-mailman-integration-on-plesk-systemsSee also:
http://forum.plesk.com/showthread.php?threadid=27474
Plesk Mis-Detecting Distro Version On Update
Running WhiteBox Linux 3 and getting an error like:
Error: You are using Redhat Linux 3.0, but autoinstaller was compiled for Redhat Enterprise Linux 3.Exiting autoinstaller.
Then Plesk is mis-detecting your distro version. Change your /etc/redhat-release filel from:
White Box Enterprise Linux release 3.0 (Liberation Respin 2)
To:
Red Hat Enterprise Linux WS release 3 (Taroon Update 5)
To fool Plesk.
Custom Apache Directives For Your Virtual Host
Run
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost=yourdomain.com
Once you do that, you can happily edit the vhost.conf with anything you need.
Plesk IP Changes
Are you moving servers or changing IPs on your Plesk setup? Then you need to tell Plesk about the new IPs.
To do this:
cd /usr/local/psa/bin/
perl reconfigurator.pl mapfile
Then edit the mapfile to something like this (e.g. when going from 127.0.0.1 to 10.1.1.0)
eth0:127.0.0.1 255.255.255.0 -> eth0:10.1.1.0 255.255.255.128
Then rerun:
perl reconfigurator.pl mapfile
Plesk Mail Forwards
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.
Forgotten Your Plesk Admin Password?
Plesk stores the password at /etc/psa/.psa.shadow The username is always admin. And the 'root' mysql user is renamed to 'admin' and has the same password used for the Plesk login. The plesk login url will be
https://ip:8443/
Create /etc/httpd/conf.d/horde.conf and put the following into it:
Alias /webmail /home/httpd/vhosts/webmail/horde
Alias /horde /home/httpd/vhosts/webmail/horde
<Directory /home/httpd/vhosts/webmail/horde>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir "/home/httpd/vhosts/webmail:/etc/psa:/tmp"
php_admin_value include_path "/home/httpd/vhosts/webmail/horde/lib:/home/httpd/vhosts/webmail/horde/pear:."
</Directory>
And restart Apache: /etc/init.d/httpd restart
Using Plesk Behind A Firewall
Behind a firewall and can't use
http://yourip:8443?Create a subdomain e.g. plesk.yourdomain.com.
Then in /var/www/vhosts/yourdomain.com/subdomains/plesk/conf/vhost.conf, put:
Then run: /usr/local/psa/admin/sbin/websrvmng
reconfigure-vhost vhost=yourdomain.com
And restart Apache.
http://plesk.yourdomain.com/ should then allow you to access the Plesk control panel over port 80.
Plesk and Apache ASP
If you're getting errors like these:
failed to resolve handler `Apache::ASP': Can't locate Apache2/RequestRec.pm in @INC
Try installing mod_perl 2.x (if you're using CentOS4/RHEL4, grab the package from CentOS Plus).
If you continue to get errors (e.g. Can't locate object method "get" via package "APR::Table") try removing ASP.pm files, and re-installing it:
# cpan
cpan> install Apache::ASP
If that doesn't help, try adding this to /etc/httpd/conf/startup.pl:
#!/usr/bin/perluse Apache2::compat;
1;
And this to /etc/httpd/conf.d/perl.conf:
PerlRequire /etc/httpd/conf/startup.pl
Then restart Apache (/etc/init.d/httpd restart).
Plesk and AWStats
In Plesk 8.1.x, the option to use AWStats instead of Webalizer appeared. However, if you've upgraded to 8.1.x (rather than a fresh install), AWStats may not actually work.
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:
statistics: Unable to execute /usr/share/awstats/tools/awstats_buildstaticpages.pl -awstatsprog=/usr/share/awstats/wwwroot/cgi-bin/awst
ats.pl -configdir=/usr/local/psa/etc/awstats -config=yourdomain.com-anon_ftp -dir=/var/www/vhosts/yourdomain.com/statistics/anon_ftpstat/
If you do, you'll need to setup some symlinks to fix things:
mkdir -p /usr/share/awstats/tools/
cd /usr/share/awstats/tools/
ln -s /usr/bin/awstats_buildstaticpages.pl .
mkdir -p /usr/share/awstats/wwwroot/cgi-bin/
cd /usr/share/awstats/wwwroot/cgi-bin/
ln -sf /var/www/awstats/awstats.pl .
Now run this command and check if 'yourdomain.com' now has a AWStats page:
usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=yourdomain.com