View previous topic :: View next topic |
Author |
Message |
G|N| Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/12308608074204c659276ba.gif)
Joined: 26 Feb 2004 Posts: 138 Location: Turnhout (Belgium)
|
Posted: Sun Mar 13, 2005 12:52 pm Post subject: squirrelmail errors |
|
|
i'am trying to configure squirrelmail, but it keeps giving errors:
Code: | Warning: session_start(): open(/var/lib/php4/sess_cef7d7c819b5b2ffdde023fc6f382542, O_RDWR) failed: Permission denied (13) in /usr/share/squirrelmail/src/redirect.php on line 48
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /usr/share/squirrelmail/src/redirect.php:48) in /usr/share/squirrelmail/src/redirect.php on line 48
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/share/squirrelmail/src/redirect.php:48) in /usr/share/squirrelmail/src/redirect.php on line 48
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/squirrelmail/src/redirect.php:48) in /usr/share/squirrelmail/functions/i18n.php on line 720
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/squirrelmail/src/redirect.php:48) in /usr/share/squirrelmail/src/redirect.php on line 60
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/squirrelmail/src/redirect.php:48) in /usr/share/squirrelmail/src/redirect.php on line 96
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/squirrelmail/src/redirect.php:48) in /usr/share/squirrelmail/src/redirect.php on line 153
Warning: Unknown(): open(/var/lib/php4/sess_cef7d7c819b5b2ffdde023fc6f382542, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php4) in Unknown on line 0 |
this happens when i log in with my user account.
here is my config:
Code: | <?php
/**
* SquirrelMail Configuration File
* Created using the configure script, conf.pl
*/
$config_version = '1.2.0';
$config_use_color = 2;
$org_name = "Clymans";
$org_logo = '../images/sm_logo.png';
$org_logo_width = '308';
$org_logo_height = '111';
$org_title = "Clymans mail";
$signout_page = '';
$frame_top = '_top';
$motd = "";
$squirrelmail_default_language = 'en_US';
$domain = 'thuis.lan';
$imapServerAddress = 'localhost';
$imapPort = 143;
$useSendmail = false;
$smtpServerAddress = 'localhost';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$use_authenticated_smtp = true;
$pop_before_smtp = false;
$imap_server_type = 'courier';
$invert_time = false;
$optional_delimiter = 'detect';
$default_folder_prefix = '';
$trash_folder = 'INBOX.Trash';
$sent_folder = 'INBOX.Sent';
$draft_folder = 'INBOX.Drafts';
$default_move_to_trash = true;
$default_move_to_sent = true;
$default_save_as_draft = true;
$show_prefix_option = false;
$list_special_folders_first = true;
$use_special_folder_color = true;
$auto_expunge = true;
$default_sub_of_inbox = true;
$show_contain_subfolders_option = false;
$default_unseen_notify = 2;
$default_unseen_type = 1;
$auto_create_special = true;
$delete_folder = false;
$default_charset = 'iso-8859-1';
$data_dir = '/var/lib/squirrelmail/data/';
$attachment_dir = "/var/spool/squirrelmail/attach/";
$dir_hash_level = 0;
$default_left_size = '150';
$force_username_lowercase = false;
$default_use_priority = true;
$hide_sm_attributions = false;
$default_use_mdn = true;
$edit_identity = true;
$edit_name = true;
$allow_thread_sort = false;
$allow_server_sort = false;
$theme_css = '';
$theme[0]['PATH'] = 'default_theme.php';
$theme[0]['NAME'] = 'Default';
$theme[1]['PATH'] = 'plain_blue_theme.php';
$theme[1]['NAME'] = 'Plain Blue';
$theme[2]['PATH'] = 'sandstorm_theme.php';
$theme[2]['NAME'] = 'Sand Storm';
$theme[3]['PATH'] = 'deepocean_theme.php';
$theme[3]['NAME'] = 'Deep Ocean';
$theme[4]['PATH'] = 'slashdot_theme.php';
$theme[4]['NAME'] = 'Slashdot';
$theme[5]['PATH'] = 'purple_theme.php';
$theme[5]['NAME'] = 'Purple';
$theme[6]['PATH'] = 'forest_theme.php';
$theme[6]['NAME'] = 'Forest';
$theme[7]['PATH'] = 'ice_theme.php';
$theme[7]['NAME'] = 'Ice';
$theme[8]['PATH'] = 'seaspray_theme.php';
$theme[8]['NAME'] = 'Sea Spray';
$theme[9]['PATH'] = 'bluesteel_theme.php';
$theme[9]['NAME'] = 'Blue Steel';
$theme[10]['PATH'] = 'dark_grey_theme.php';
$theme[10]['NAME'] = 'Dark Grey';
$theme[11]['PATH'] = 'high_contrast_theme.php';
$theme[11]['NAME'] = 'High Contrast';
$theme[12]['PATH'] = 'black_bean_burrito_theme.php';
$theme[12]['NAME'] = 'Black Bean Burrito';
$theme[13]['PATH'] = 'servery_theme.php';
$theme[13]['NAME'] = 'Servery';
$theme[14]['PATH'] = 'maize_theme.php';
$theme[14]['NAME'] = 'Maize';
$theme[15]['PATH'] = 'bluesnews_theme.php';
$theme[15]['NAME'] = 'BluesNews';
$theme[16]['PATH'] = 'deepocean2_theme.php';
$theme[16]['NAME'] = 'Deep Ocean 2';
$theme[17]['PATH'] = 'blue_grey_theme.php';
$theme[17]['NAME'] = 'Blue Grey';
$theme[18]['PATH'] = 'dompie_theme.php';
$theme[18]['NAME'] = 'Dompie';
$theme[19]['PATH'] = 'methodical_theme.php';
$theme[19]['NAME'] = 'Methodical';
$theme[20]['PATH'] = 'greenhouse_effect.php';
$theme[20]['NAME'] = 'Greenhouse Effect (Changes)';
$theme[21]['PATH'] = 'in_the_pink.php';
$theme[21]['NAME'] = 'In The Pink (Changes)';
$theme[22]['PATH'] = 'kind_of_blue.php';
$theme[22]['NAME'] = 'Kind of Blue (Changes)';
$theme[23]['PATH'] = 'monostochastic.php';
$theme[23]['NAME'] = 'Monostochastic (Changes)';
$theme[24]['PATH'] = 'shades_of_grey.php';
$theme[24]['NAME'] = 'Shades of Grey (Changes)';
$theme[25]['PATH'] = 'spice_of_life.php';
$theme[25]['NAME'] = 'Spice of Life (Changes)';
$theme[26]['PATH'] = 'spice_of_life_lite.php';
$theme[26]['NAME'] = 'Spice of Life - Lite (Changes)';
$theme[27]['PATH'] = 'spice_of_life_dark.php';
$theme[27]['NAME'] = 'Spice of Life - Dark (Changes)';
$theme[28]['PATH'] = 'christmas.php';
$theme[28]['NAME'] = 'Holiday - Christmas';
$theme[29]['PATH'] = 'darkness.php';
$theme[29]['NAME'] = 'Darkness (Changes)';
$theme[30]['PATH'] = 'random.php';
$theme[30]['NAME'] = 'Random (Changes every login)';
$theme[31]['PATH'] = 'midnight.php';
$theme[31]['NAME'] = 'Midnight';
$default_use_javascript_addr_book = false;
$addrbook_dsn = '';
$addrbook_table = 'address';
$prefs_dsn = '';
$prefs_table = 'userprefs';
$prefs_user_field = 'user';
$prefs_key_field = 'prefkey';
$prefs_val_field = 'prefval';
/**
* Make sure there are no characters after the PHP closing
* tag below (including newline characters and whitespace).
* Otherwise, that character will cause the headers to be
* sent and regular output to begin, which will majorly screw
* things up when we try to send more headers later.
*/
?> |
php4.3.10-1 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Prompty Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/19826485974043367cb23f6.jpg)
Joined: 08 Feb 2004 Posts: 292
|
Posted: Sun Mar 13, 2005 1:23 pm Post subject: |
|
|
these are just blind guesses ...
1. Have you recently emerged apache from portage?
2. Have compiled with session support?
3. Your squirrel config looks fine can we have redirect.php line 48 please
4. Check permissions to www and data
refer to http://www.onlamp.com/pub/a/onlamp/2002/10/24/squirrelmail.html for more help
extract
Quote: |
#
Set your imapd security to allow only connections from the localhost. This may be accomplished through tcpwrappers via /etc/hosts.allow, or by building a custom firewall rule. (Note: If you do not have imapd running, SquirrelMail will not function. Instead, you'll see PHP code in your browser.)
The appropriate entries in /etc/hosts.allow are:
# Imapd
imapd : 127.0.0.1 : allow
imapd : ALL : deny
|
_________________ <input stupid message here> |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
G|N| Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/12308608074204c659276ba.gif)
Joined: 26 Feb 2004 Posts: 138 Location: Turnhout (Belgium)
|
Posted: Sun Mar 13, 2005 1:48 pm Post subject: |
|
|
redirect.php line 48
that's all |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Prompty Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/19826485974043367cb23f6.jpg)
Joined: 08 Feb 2004 Posts: 292
|
Posted: Sun Mar 13, 2005 2:02 pm Post subject: |
|
|
and my other suggestions/questions ?
Quote: |
1. Have you recently emerged apache from portage?
2. Have compiled with session support?
4. Check permissions to www and data
|
it's very likely that your php wasn't built with session support ; add "session" to you use flags and recompile php ?
it's just a blind guess _________________ <input stupid message here> |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
G|N| Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/12308608074204c659276ba.gif)
Joined: 26 Feb 2004 Posts: 138 Location: Turnhout (Belgium)
|
Posted: Sun Mar 13, 2005 2:39 pm Post subject: |
|
|
i still have apache 1.3 because 2.0 didn't work very good
and yes i have session support
info.php
Code: | session
Session Support enabled
Registered save handlers files user mm mm mmcache |
the permissions are:
user: myuser (not root)
grp: users |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
G|N| Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/12308608074204c659276ba.gif)
Joined: 26 Feb 2004 Posts: 138 Location: Turnhout (Belgium)
|
Posted: Sun Mar 13, 2005 3:10 pm Post subject: |
|
|
found the solution, i had to change the permissions on /var/lib/php4 and now it works perfectly! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|