squirrelmail and webmail users for use with suPHP

LionRock

Verified User
Joined
Mar 30, 2007
Messages
93
I want to see a user for webmail like 'webmail' or 'squirrelmail', because it's not working with suPHP (when you use it...). Files of webmail and squirrelmail are owned now with root so apache after suPHP instllation cant read files...

Regards
 
So I take it all all of the "Alias"es (eg /alias) won't work with suPhp..

Likely, you'd need to use this guide to setup a webmail specifc virtualhost, and then add a non-suPhp setup for it (whatever that code may be).

http://help.directadmin.com/item.php?id=92

This is also why we have all of our php/safemode on/off settings withint a <Directory /path> setting in the VirtualHosts, so that webmail/phpmyadmin/squirrelmail doesn't have php turned off when the domain has it off... Not sure if anything can be done along those lines.

John
 
just workaround this by editing your /etc/httpd/conf/extra/httpd-suphp.conf file and adding the following:

<Location /webmail>
SuPHP_Engine off
AddHandler application/x-httpd-php .inc .php4 .phtml .php .php3 .php5
</Location>

<Location /squirrelmail>
SuPHP_Engine off
AddHandler application/x-httpd-php .Inc .php4 .phtml .php .php3 .php5
</Location>

This turns off suPHP for webmail & squirrelmail alone so will not compromise the security of your server.

I am not sure if this is what the guy above was talking about, but I would enter http://www.some-domain-name.com/webmail and get a INTERNAL SERVER ERROR.

Made the above changes and everything works A-O.K. now.

(...and no jlasman some-domain-name.com is not mine, but thanks for the KISS script, works very well)
 
Last edited:
Back
Top