Solved

Problem setting up MRBS room booking system

Posted on 2006-07-05
3
797 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
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
RQuadling earned 125 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:RQuadling
ID: 17049011
NP.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
echo button 13 48
Wordpress syntax error 1 29
MySQL database data submission 7 40
Adding through query php 9 12
Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now