LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can't log into squirrelmail. error code "You must be logged in to access this page." (https://www.linuxquestions.org/questions/linux-software-2/cant-log-into-squirrelmail-error-code-you-must-be-logged-in-to-access-this-page-248427/)

rioguia 10-28-2004 12:47 PM

can't log into squirrelmail. error code "You must be logged in to access this page."
 
i can't log into squirrelmail. error code "You must be logged in to access this page."

setup:

# MAP Server (dovecot RPM INSTALL OF IMAP CONFIGURED PER RED HAT FEDORA LINUX 2 BIBLE / CHRIS NEGUS)
# PHP (4.38 http://www.substantis.com/phpinfo.php)
# Web server ( Apache/2.0.51 (Fedora))
# Platform (Fedora Core 2)
# How your software was installed (.tar.gz / configured with config.pl )
# SquirrelMail version (1.4.3a)

testing: confirmed passwords from local terminal.

install procedures: quick and dirty from squirrelmail webpage
http://www.squirrelmail.org/wiki/en_US/QuickAndDirty

[root <at> testy config]# cat config.php | more
<?php

/**
* SquirrelMail Configuration File
* Created using the configure script, conf.pl
*/

global $version;
$config_version = '1.4.0';
$config_use_color = 2;

$org_name = "Substantis Nonprofit Solutions";
$org_logo = SM_PATH . 'images/quill2.jpg';
$org_logo_width = '308';
$org_logo_height = '111';
$org_title = "SquirrelMail $version";
$signout_page = '';
$frame_top = '_top';

$provider_uri = 'http://www.squirrelmail.org/';

$provider_name = 'SquirrelMail';

$provider_name = 'SquirrelMail';

$motd = "";

$squirrelmail_default_language = 'en_US';

$domain = 'substantis.com';
$imapServerAddress = 'localhost';
$imapPort = 143;
$useSendmail = false;
$smtpServerAddress = 'localhost';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$pop_before_smtp = false;
$imap_server_type = 'other';
$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_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;
$noselect_fix_enable = false;

$default_charset = 'iso-8859-1';
$data_dir = SM_PATH . 'data/';
$attachment_dir = $data_dir;
$dir_hash_level = 0;
$default_left_size = '150';
$force_username_lowercase = false;
$default_use_priority = true;
$hide_sm_attributions = false;
$hide_sm_attributions = false;
$default_use_mdn = true;
$edit_identity = true;
$edit_name = true;
$allow_thread_sort = false;
$allow_server_sort = false;
$allow_charset_search = true;
$uid_support = true;

[theme omitted]
$default_use_javascript_addr_book = false;
$addrbook_dsn = '';
$addrbook_table = 'address';
$addrbook_table = 'address';

$prefs_dsn = '';
$prefs_table = 'userprefs';
$prefs_user_field = 'user';
$prefs_key_field = 'prefkey';
$prefs_val_field = 'prefval';
$no_list_for_subscribe = false;
$smtp_auth_mech = 'none';
$imap_auth_mech = 'login';
$use_imap_tls = false;
$use_smtp_tls = false;
$session_name = 'SQMSESSID';

<at> include SM_PATH . 'config/config_local.php';

*****************************************************

trickykid 10-28-2004 01:10 PM

Did you login? And what exact page your trying to access? If its anything beyond the inital login page without logging in, you will get that error.

rioguia 10-28-2004 02:28 PM

i may not understand your question
 
thanks for your quick reply. i may not understand your question. the exact page i am accessing is: substantis.com/webmail

this is the login prompt. this is not a separate and distinct issue where a squirrelmail user is logged in and then attempts to send mail or access an attachment and gets knocked off the system.

where would i be looking for error logs for this particular problem. i doubt that appache access logs would be of help. any other thoughts?

rioguia 11-02-2004 10:47 AM

chown and chgrp nobody /var/lib/php/session
 
I solved this problem by issolating the php error log for this domain (see log below).
The problem was a permission setting for /var/lib/php/session. The suggestion for the solution came from the squirrelmail users list. All worked well after:

chown nobody /var/lib/php/session
chgrp nobody /var/lib/php/session



[client 192.0.0.1] PHP Warning: session_start():
open(/var/lib/php/session/sess_46cf08aee4ddbfbb10cf1d75fe240f96, O_RDWR) failed: Permission
denied (13) in /var/www/html/squirrelmail-1.4.3a/functions/global.php on line 295, referer: http://www.primary.com/squirrelmail-...rc/webmail.php
[client 192.0.0.1] PHP Warning: session_start():
open(/var/lib/php/session/sess_46cf08aee4ddbfbb10cf1d75fe240f96, O_RDWR) failed: Permission
denied (13) in /var/www/html/squirrelmail-1.4.3a/functions/global.php on line 295
[client 192.0.0.1] PHP Warning: session_start():
open(/var/lib/php/session/sess_46cf08aee4ddbfbb10cf1d75fe240f96, O_RDWR) failed: Permission
denied (13) in /var/www/html/squirrelmail-1.4.3a/functions/global.php on line 295
[client 192.0.0.1] PHP Warning: session_start():
open(/var/lib/php/session/sess_46cf08aee4ddbfbb10cf1d75fe240f96, O_RDWR) failed: Permission
denied (13) in /var/www/html/squirrelmail-1.4.3a/functions/global.php on line 295, referer: http://www.primary.com/squirrelmail-.../src/login.php
[client 192.0.0.1] PHP Warning: session_write_close():
open(/var/lib/php/session/sess_46cf08aee4ddbfbb10cf1d75fe240f96, O_RDWR) failed: Permission
denied (13) in /var/www/html/squirrelmail-1.4.3a/src/redirect.php on line 152, referer: http://www.primary.com/squirrelmail-.../src/login.php
[client 192.0.0.1] PHP Warning: session_write_close(): Failed to write session data (files).
Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in
/var/www/html/squirrelmail-1.4.3a/src/redirect.php on line 152, referer: http://www.primary.com/squirrelmail-.../src/login.php
[client 192.0.0.1] PHP Warning: session_start():
open(/var/lib/php/session/sess_46cf08aee4ddbfbb10cf1d75fe240f96, O_RDWR) failed: Permission
denied (13) in /var/www/html/squirrelmail-1.4.3a/functions/global.php on line 295, referer: http://www.primary.com/squirrelmail-.../src/login.php
[client 192.0.0.1] PHP Warning: Unknown():
open(/var/lib/php/session/sess_46cf08aee4ddbfbb10cf1d75fe240f96, O_RDWR) failed: Permission
denied (13) in Unknown on line 0, referer: http://www.primary.com/squirrelmail-.../src/login.php
[client 192.0.0.1] PHP Warning: Unknown(): Failed to write session data (files). Please verify that
the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0,
referer: http://www.primary.com/squirrelmail-.../src/login.php


All times are GMT -5. The time now is 03:36 PM.