MDN

Go Back   Mambo - Forums Closed for posting > Mambo 4.5.5 - Stable > Installation Questions

Reply
 
Thread Tools Search this Thread Display Modes
Old July 5th, 2004, 13:50   #1
niclasm
 
Join Date: Jul 2004
Posts: 5
niclasm is on a distinguished road
Default Admin log on problem help needed!

Hello Mambo friends! You will have to excuse my poor English! Im from Sweden!

I have a problem to log on to admin att my new site. The messege I get before iīm bounced back to log on admin is the following:
Warning: session_start(): open(C:\PHP\sessiondata\sess_508cd633f1d55675c4d9e db2b4259fd2, O_RDWR) failed: Permission denied (13) in d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index2.php on line 40

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index2.php:40) in d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index2.php on line 40

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index2.php:40) in d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index2.php on line 40

Can someone PLEASE help me before I go mad.... Please.
My very best Regards
Niclas Mantinieks Stockholm Sweden
niclasm is offline   Reply With Quote
Old July 5th, 2004, 14:50   #2
niclasm
 
Join Date: Jul 2004
Posts: 5
niclasm is on a distinguished road
Default Please

Anyone? Please?
niclasm is offline   Reply With Quote
Old July 5th, 2004, 15:02   #3
niclasm
 
Join Date: Jul 2004
Posts: 5
niclasm is on a distinguished road
Default More info

This is the two different "fault pages" I get:
Warning: session_start(): open(C:\PHP\sessiondata\sess_c119315946ce376f463e6 0a740d104a6, O_RDWR) failed: Permission denied (13) in d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index.php on line 64

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index.php:64) in d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index.php on line 64

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index.php:64) in d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index.php on line 64

Warning: session_write_close(): open(C:\PHP\sessiondata\sess_c119315946ce376f463e6 0a740d104a6, O_RDWR) failed: Permission denied (13) in d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index.php on line 84

Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\PHP\sessiondata) in d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index.php on line 84
Warning: session_start(): open(C:\PHP\sessiondata\sess_508cd633f1d55675c4d9e db2b4259fd2, O_RDWR) failed: Permission denied (13) in d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index2.php on line 40

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index2.php:40) in d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index2.php on line 40

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index2.php:40) in d:\customers\saltvatten.net\test.saltvatten.net\ww wroot\administrator\index2.php on line 40

Please help me
Regards
niclas
niclasm is offline   Reply With Quote
Old July 5th, 2004, 20:55   #4
adminjim
 
adminjim's Avatar
 
Join Date: Jan 2004
Location: Keller Point Alaska
Posts: 262
adminjim is on a distinguished road
Default

Number 1: Is your sessions path stated in PHP config writable?

Number 2: If not CHMOD 766 it so it is writable.

Or you could enter the following line to your index / index2 files, Whereever it is starting the sessions info. Make sure it is before the sessions lines.

session_save_path("/your path/www/your sessions folder");

session_name( 'mosadmin' );
session_start();
// create dir

$logintime = time();
$session_id = md5( "$my->id$my->username$my->usertype$logintime" );
$database->setQuery( "INSERT INTO #__session"
. "\nSET time='$logintime', session_id='$session_id', "
. "userid='$my->id', usertype='$my->usertype', username='$my->username'"
);
if (!$database->query()) {
echo $database->stderr();
}

$_SESSION["session_id"] = $session_id;
$_SESSION["session_user_id"] = $my->id;
$_SESSION["session_username"] = $my->username;
$_SESSION["session_usertype"] = $my->usertype;
$_SESSION["session_gid"] = $my->gid;
$_SESSION["session_logintime"] = $logintime;
$_SESSION["session_userstate"] = array();

session_write_close();
// cannot using mosredirect as this stuffs up the cookie in IIS
echo "<script>document.location.href='index2.php';</script>\n";
exit();
} else {
echo "<script>alert('Incorrect Username and Password, please try again'); document.location.href='index.php';</script>\n";
exit();
}
} else {
?>
__________________
"An idea is not responsible for those who believe in it"
adminjim is offline   Reply With Quote
Old July 5th, 2004, 23:31   #5
niclasm
 
Join Date: Jul 2004
Posts: 5
niclasm is on a distinguished road
Default Hi

Hi, thank you for your answers, but unfortunaly I am an Novis when it comes to things like programming and similar things...

The things you describe above, were do I find thoose files?, are there local on my computer? I suspect that the config file i remote at the webserver?
Can you supply me with a little more help were to do the changes.... Could my problem be at my ISP? Do I need to check if its running on a Linux server just to be sure?

I hope that you can help I complete idiot like me some more...
My very best regards
Niclas
niclasm is offline   Reply With Quote
Old July 6th, 2004, 08:05   #6
adminjim
 
adminjim's Avatar
 
Join Date: Jan 2004
Location: Keller Point Alaska
Posts: 262
adminjim is on a distinguished road
Default

In short, just ask your ISP if the sessions folder is writable. If they say no as them to make it writable. If they again say no then do the code work around I posted. They are the index2.php file in your /administrator/index2.php
__________________
"An idea is not responsible for those who believe in it"
adminjim is offline   Reply With Quote
Old July 6th, 2004, 09:15   #7
niclasm
 
Join Date: Jul 2004
Posts: 5
niclasm is on a distinguished road
Default Problem Solved

Hi, first of all I would like to say thankīs for the help! The problem were solved when I moved Mambo to an Linux server instead of the Windows one. :-)
Thank you again!
Regards
Niclas
niclasm is offline   Reply With Quote
Old January 12th, 2005, 11:49   #8
bohemiwoman
 
Join Date: Nov 2004
Posts: 4
bohemiwoman is on a distinguished road
Default

Thnx... I added the line you suggested, but rather than pointing to a relative or virtual directory, which didn't work, I pointed to the folder itself (and used single quotes and not " ") and voila!

session_save_path('[root]:\[directory]\[webroot]\[sessions folder]');

Not sure exactly what happened to cause this in the first place, I hadn't made any modifications to my web server, and it was working properly these last few weeks (up until today). One of those unexplained occurences... like crop circles?! Anyhow, sincerest thank you's.
bohemiwoman is offline   Reply With Quote
Old April 10th, 2005, 14:08   #9
Charlie T
 
Join Date: Apr 2005
Posts: 1
Charlie T is on a distinguished road
Default

Quote:
Originally Posted by adminjim
Number 1: Is your sessions path stated in PHP config writable?

Number 2: If not CHMOD 766 it so it is writable.

Or you could enter the following line to your index / index2 files, Whereever it is starting the sessions info. Make sure it is before the sessions lines.

session_save_path("/your path/www/your sessions folder");

session_name( 'mosadmin' );
session_start();
// create dir

$logintime = time();
$session_id = md5( "$my->id$my->username$my->usertype$logintime" );
$database->setQuery( "INSERT INTO #__session"
. "\nSET time='$logintime', session_id='$session_id', "
. "userid='$my->id', usertype='$my->usertype', username='$my->username'"
);
if (!$database->query()) {
echo $database->stderr();
}

$_SESSION["session_id"] = $session_id;
$_SESSION["session_user_id"] = $my->id;
$_SESSION["session_username"] = $my->username;
$_SESSION["session_usertype"] = $my->usertype;
$_SESSION["session_gid"] = $my->gid;
$_SESSION["session_logintime"] = $logintime;
$_SESSION["session_userstate"] = array();

session_write_close();
// cannot using mosredirect as this stuffs up the cookie in IIS
echo "<script>document.location.href='index2.php';</script>\n";
exit();
} else {
echo "<script>alert('Incorrect Username and Password, please try again'); document.location.href='index.php';</script>\n";
exit();
}
} else {
?>


I have read too much posts about this, but session save path remains unwriteable.


.htacces does not work for me so I canīt add the php_value.


I added the line commented in this post at index.php and index2 with no success.


Any ideas?


Thanks.
Charlie T is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SOLVED ADMIN problem: Failed to initialize storage module jhaeusler@mac.com Installation Questions 12 October 30th, 2005 07:48
Problem with PHP MOD - Login to admin page raul General Questions 8 April 8th, 2005 06:48
Admin problem..pls.. dragan General Questions 10 September 1st, 2004 02:00
Admin problem: not viewable text in fields HitMan Administration Questions 1 June 28th, 2004 16:14
Super admin, admin & manager hierarchy problem Vlasterx Administration Questions 2 June 18th, 2004 16:07


All times are GMT -7. The time now is 07:28.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.