|
|
#1 |
![]() Join Date: Jul 2004
Posts: 5
![]() |
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 |
|
|
|
|
|
#2 |
![]() Join Date: Jul 2004
Posts: 5
![]() |
Anyone? Please?
|
|
|
|
|
|
#3 |
![]() Join Date: Jul 2004
Posts: 5
![]() |
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 |
|
|
|
|
|
#4 |
![]() Join Date: Jan 2004
Location: Keller Point Alaska
Posts: 262
![]() |
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" |
|
|
|
|
|
#5 |
![]() Join Date: Jul 2004
Posts: 5
![]() |
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 |
|
|
|
|
|
#6 |
![]() Join Date: Jan 2004
Location: Keller Point Alaska
Posts: 262
![]() |
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" |
|
|
|
|
|
#7 |
![]() Join Date: Jul 2004
Posts: 5
![]() |
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 |
|
|
|
|
|
#8 |
![]() Join Date: Nov 2004
Posts: 4
![]() |
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. |
|
|
|
|
|
#9 | |
![]() Join Date: Apr 2005
Posts: 1
![]() |
Quote:
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. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |