PDA

View Full Version : How can I update/add the webmail module?



jeffery
02-22-2004, 07:05 AM
It seems that I have my webmail died!

It gives me the following errors :

Warning: mkdir(./tmp/_cached_templates): Permission denied in /var/www/html/webmail/smarty/Smarty.class.php on line 1412

Warning: Smarty error: problem creating directory "./tmp//_cached_templates/neotech.net" in /var/www/html/webmail/smarty/Smarty.class.php on line 1543

Warning: Smarty error: problem writing './tmp//_cached_templates/neotech.net/login.php.' in /var/www/html/webmail/smarty/Smarty.class.php on line 1543

Warning: fetch(./tmp//_cached_templates/neotech.net/login.php): failed to open stream: No such file or directory in /var/www/html/webmail/smarty/Smarty.class.php on line 633

Warning: fetch(): Failed opening './tmp//_cached_templates/neotech.net/login.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/webmail/smarty/Smarty.class.php on line 633




how can I cope with this, and on the other hand, how can I install a new webmail rather then the DA's initial ones?

Thanks!!! :)

Icheb
02-22-2004, 07:37 AM
Turn off your safe_mode, than it'll work. (in the general php.ini)

Than add it to the template of DA and let DA rewrite everyones httpd.conf

jeffery
02-22-2004, 08:56 AM
but it's already turned off!

:confused:

existenz
02-22-2004, 12:13 PM
Squirrelmail should be working since it does not use Smarty. It seems like a permission error to me I am not sure what it should be but 755 is a safe bet.

ProWebUK
02-22-2004, 03:49 PM
cd /usr/local/directadmin/scripts
./webmail.sh

Chris

ProWebUK
02-22-2004, 03:50 PM
Originally posted by existenz
Squirrelmail should be working since it does not use Smarty. It seems like a permission error to me I am not sure what it should be but 755 is a safe bet.

Its uebimiau causing the errors - not SM - DA has both installed as default.

Chris

existenz
02-22-2004, 05:41 PM
Sorry I was saying that Squirrelmail is a alternative and it sounds like UebiMiau has a permission error. I just realized how that sounds confusing ;)

What I mean to say is...Squirrelmail does not use Smarty only UebiMiau. Smarty is a template engine and I have seen those type of errors. Normally they come from:

1) Not uploading the correct file type

2) Permissions being wrong

See what the permissions on that folder is, I have a feeling that they are wrong somehow?

jeffery
02-22-2004, 08:03 PM
Thanks!

but still, can I install a new webmail instead of the installed two?


:D

existenz
02-22-2004, 09:18 PM
To make it work server wide just installed the new webmail script to /var/www/html/. You just need to name the folder webmail to make it work like the default.

jeffery
02-23-2004, 05:13 AM
But it will know the config of my system ?
that's the mail config of DirectAdmin!


Will the new webmail be able to login DA email accounts??

Thanks!

existenz
02-23-2004, 09:33 AM
Most webmail script are just that scripts. They have NOTHING to do with DirectAdmin, your server' settings anything like that. You will need to perform some configuration and for that you need to look to the webmail vendor.

What most of the setups need is your POP/IMAP server address, SMTP address or Sendmail (Exim in our case) location. For most of the webmail scripts you can use localhost as the POP/IMAP and SMTP.

You can test them out by installing them on one of your domains before installing system wide. One note SquirrelMail is regarded as the best open source webmail scripts.

jeffery
02-24-2004, 04:41 AM
Thanks, Mr existenz !

I will try it out!

:D

ProWebUK
02-24-2004, 04:57 AM
Originally posted by ProWebUK
cd /usr/local/directadmin/scripts
./webmail.sh

Chris

You can run that as many times as you wish..

jeffery
02-24-2004, 04:59 AM
Haha~ but this will only cause my webmail re-installed..!

I can have my webmail re-installed by running the script everyday then!!~ :p

ProWebUK
02-24-2004, 05:25 AM
It will reinstall all files and set permissions correctly, which would get rid of the errors you have.

Chris

jeffery
02-24-2004, 05:34 AM
it is fixed!

Thanks!

nobaloney
02-29-2004, 01:56 PM
Jeffery (and others),

While I don't recommend adding another webmail script, as SM seems to fit most people's needs, I did answer a previous post here (http://www.directadmin.com/forum/showthread.php?s=&threadid=2241) with the information required.

Jeff