Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem setting up MRBS room booking system

Posted on 2006-07-05
3
Medium Priority
?
827 Views
Last Modified: 2013-12-12
I'm trying to set up the MRBS room booking system on a (windows server 2003)  apache server running php and mysql. I'm getting the blue menu screen OK and appear to be able to log on using administrator or user a or b. (internal authentication).

However, I'm getting the following errors:

Warning: session_start(): open(/tmp\sess_68cb215e2946cd7689929aa97e89262d, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\mrbs\session_php.inc on line 26

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\mrbs\session_php.inc:26) in C:\Program Files\Apache Group\Apache2\htdocs\mrbs\session_php.inc on line 26

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\mrbs\session_php.inc:26) in C:\Program Files\Apache Group\Apache2\htdocs\mrbs\session_php.inc on line 26

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\mrbs\session_php.inc:26) in C:\Program Files\Apache Group\Apache2\htdocs\mrbs\session_php.inc on line 62

I obviously don't have something set up right! The /tmp directory does exist. Can anyone point me to where I'm going wrong please?
0
Comment
Question by:PhilDunford
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Richard Quadling earned 500 total points
ID: 17048784
The path is a UNIX path.

Use ...

<?php phpinfo(); ?>

and examine this for the location of your PHP.INI file. I suspect it will be in your windows directory called php.ini, but may be php-isapi.ini or php-cgi.ini.

Edit  the file and change

session.save_path = /tmp

to, maybe ...

session.save_path = C:\PHP_Sessions


Create C:\PHP_Sessions and restart Apache.

Then re-run the <?php phpinfo(); ?> script to confirm that the change has been made.

THEN. re run your script.
0
 

Author Comment

by:PhilDunford
ID: 17049006
Thanks 'R'

You got it in one!

For some reason there is a php.ini file both in C:\windows and in c:\php-4.3.3-win32.

Changing the latter one cured the problem.

Thanks
0
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 17049011
NP.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question