Hi there,
I've been configuring SquirrelMail on Apache 2.0.52 + PHP 5.02 (compiled from source) on a Mandrake 10.0 box, and all looks good so far. However, I am getting a php fatal error when trying to load the login page...


*Fatal error*: Cannot use string offset as an array in */data1/web/webmail/config/config.php* on line *84*

The line (starred below) in question is:
$theme_css = '';
$theme_default = 1;
** $theme[0]['PATH'] = SM_PATH . 'themes/default_theme.php';
$theme[0]['NAME'] = 'Default';
$theme[1]['PATH'] = SM_PATH . 'themes/plain_blue_theme.php';
$theme[1]['NAME'] = 'Plain Blue';

I have run a search on this mailing list and it turned up one relevant thread from a month ago with this same error, but it hadn't seemed to be resolved.
I noticed that my TMPDIR environment variable was set to /root/tmp, and as I have Apache running as a user called "webservices", it couldn't write to the folder (that's a separate issue though). I temporarily fixed it by changing my Apache execution line from "/usr/apache/bin/apachectl start" or "TMPDIR=/tmp /usr/apache/bin/apachectl start".
With this solution, I managed to log into SquirrelMail just fine (and so put the modified line in my rc.local startup script). However, when I restarted the box, Apache was launched, but I now get this "string offset in array" error. So, I tried going in as root and manually running the Apache binary, and surprise - SquirrelMail lets me through! How on earth running the binary as root (and have it change to a non-root user anyway) can have any effect on php's syntax, I don't know!


This happens on both 1.4.3a and 1.5.0, although as it does work if I run Apache manually, it is more a linux-orientated question than SquirrelMail, but of course the way it is now is no good at all. I have tried it with the default config.php file, and one generated by the ./configure script.

Is there anything anyone can think of that I might be missing here? I'm fairly sure it must be something simple, but I'm not seeing it :)
Thanks very much,
Adam




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [EMAIL PROTECTED]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to