Squirrel/Webmail default install no longer works?

Shark

Verified User
Joined
Aug 8, 2005
Messages
42
Location
Ohio
Hello Everyone,

After playing all weekend to install cubecart as securely as possible (played a lot with php.ini), SquirrelMail and Webmail no longer work.

==========================================

Webmail wil not even show the login screen and gives:

ERROR (512): Smarty error: problem creating directory "tmp/_cached_templates" (/webmail/smarty/Smarty.class.php:589)

==========================================

Squirrelmail will show the login screen but any login gives:

Error opening ../data/default_pref
Default preference file not found or not readable!
Please contact your system administrator and report this error.

==========================================

Googling and searching here gave me things like,
/usr/local/directadmin/scripts/squirrelmail.sh
/usr/local/directadmin/scripts/webmail.sh

So I ran both to get back to "default" with default permissions?

Checking default Squirrel permissions I get:

-rwxr-xr-x 1 root root 7896 Jun 7 2005 AUTHORS
-rwxr-xr-x 1 root root 60753 Jul 13 14:37 ChangeLog
drwxr-xr-x 5 root root 4096 Jul 13 14:45 class
drwxr-xr-x 2 root root 4096 Jul 13 14:45 config
-rwxr-xr-x 1 root root 92 Dec 26 2001 configure
drwxr-xr-x 3 root root 4096 Jul 13 14:45 contrib
-rwxr-xr-x 1 root root 15129 Jun 15 20:22 COPYING
drwx------ 2 apache apache 4096 Jul 13 14:45 data
drwxr-xr-x 4 root root 4096 Jul 13 14:45 doc
drwxr-xr-x 4 root root 4096 Jul 13 14:45 functions
drwxr-xr-x 3 root root 4096 Jul 13 14:45 help
drwxr-xr-x 2 root root 4096 Jul 13 14:45 images
drwxr-xr-x 3 root root 4096 Jul 13 14:45 include
-rwxr-xr-x 1 root root 661 Feb 11 2005 index.php
-rwxr-xr-x 1 root root 8622 Jun 4 2005 INSTALL
drwxr-xr-x 2 root root 4096 Jul 13 14:45 locale
drwxr-xr-x 18 root root 4096 Jul 13 14:45 plugins
drwxr-xr-x 2 root root 4096 Jul 13 14:45 po
-rwxr-xr-x 1 root root 2637 Jun 26 2004 README
-rwxr-xr-x 1 root root 4382 Jul 13 14:37 ReleaseNotes
drwxr-xr-x 2 root root 4096 Jul 13 14:45 src
drwxr-xr-x 3 root root 4096 Jul 13 14:45 themes
-rwxr-xr-x 1 root root 4733 May 30 2005 UPGRADE

and in /data everything is

-rwx------ 1 apache apache

If I chown /data to root:root, squirrelmail works.

==========================================

I have yet to get Webmail even working again:

-rw-r--r-- 1 root root 6065 Jun 1 2005 addressbook.php
-rw-r--r-- 1 root root 1929 Jun 1 2005 apply_filters.php
-rw-r--r-- 1 root root 957 Jun 1 2005 badlogin.php
-rw-r--r-- 1 root root 1861 Jun 1 2005 block_address.php
-rw-r--r-- 1 root root 2307 Jun 1 2005 catch.php
-rwxr-xr-x 1 root root 8374 Oct 9 2002 CHANGELOG.txt
drwxr-xr-x 2 root root 4096 Oct 13 00:15 docs
-rw-r--r-- 1 root root 1653 Jul 18 19:39 download.php
-rw-r--r-- 1 root root 1036 Jun 1 2005 error.php
drwxr-xr-x 2 root root 4096 Oct 13 00:15 extra
-rw-r--r-- 1 root root 1088 Jul 18 19:18 folder_list.php
-rw-r--r-- 1 root root 6379 Oct 12 19:40 folders.php
-rw-r--r-- 1 root root 412 Jun 1 2005 get_message_list.php
-rw-r--r-- 1 root root 765 Jun 1 2005 headers.php
drwxr-xr-x 2 root root 4096 Oct 13 00:15 images
drwxr-xr-x 2 root root 4096 Oct 13 00:15 inc
-rw-r--r-- 1 root root 3856 Aug 1 18:03 index.php
-rwxr-xr-x 1 root root 723 Sep 9 2002 INSTALL.txt
drwxr-xr-x 2 root root 4096 Oct 13 00:15 langs
-rw-r--r-- 1 root root 2001 Oct 12 20:22 logout.php
-rw-r--r-- 1 root root 9781 Jul 18 19:18 messages.php
-rwxr-xr-x 1 root root 12307 Oct 1 2002 msglist.php
-rw-r--r-- 1 root root 18159 Jun 1 2005 newmsg.php
-rw-r--r-- 1 root root 4419 Jun 1 2005 preferences.php
-rw-r--r-- 1 root root 3399 Jun 1 2005 printmsg.php
-rw-r--r-- 1 root root 3466 Oct 12 20:17 process.php
-rw-r--r-- 1 root root 1082 Jun 1 2005 quick_address.php
-rwxr-xr-x 1 root root 1693 Sep 20 2002 README.txt
-rw-r--r-- 1 root root 11716 Jul 18 19:20 readmsg.php
-rw-r--r-- 1 root root 216 Jun 1 2005 redir.php
-rw-r--r-- 1 root root 7308 Jun 1 2005 search.php
-rw-r--r-- 1 root root 529 Jun 1 2005 show_body.php
drwxr-xr-x 4 root root 4096 Oct 13 00:15 smarty
drwxr-xr-x 9 root root 4096 Oct 13 00:15 themes
drwx------ 6 apache apache 4096 Dec 4 11:36 tmp
-rw-r--r-- 1 root root 2039 Jun 1 2005 upload.php

and /tmp, containns:

drwx------ 7 apache apache 4096 Dec 4 11:36 admin_localhost
drwx------ 7 apache apache 4096 Dec 4 11:36 _cached_templates
-rwx------ 1 apache apache 14 Jun 1 2003 .htaccess
drwx------ 2 apache apache 4096 Aug 10 23:53 _sessions
drwx------ 7 apache apache 4096 Aug 10 02:01 webmaster_client.com_localhost

==========================================

I listed most of the contents/permissions since searching around gave me some conflicting permissions/ownerships which do not match the default install.

Both have worked just fine for about 3 months now. PHP version is 4.4.0 with:

safe mode = On
register_globals = Off

Any hints, suggestions or resources to consult? Thanks for your time and help...

Dave~
 
Back
Top