PDA

View Full Version : Test Failed


photolodge
01-18-2008, 05:19 PM
Hi,

Unziped files and uploaded to dir called tester. Launch index.php and get the following error.



Warning: open(/tmp\sess_9a18fff4222fefa552a9bbb86bdb6a7b, O_RDWR) failed: m (2) in c:/program files/abria merlin/apache/htdocs/tester/index.php on line 3
function reload(){window.location.href = "/tester/index.php?st=x";}setTimeout("reload();", 3000);
Easy PHP Calendar Test Script

Testing sessions...

Click here to continue...


PS. This server is not public, is this a problem

ve9gra
01-18-2008, 10:32 PM
Not a problem that it isn't public... If you read the error you can clearly (maybe only for me) see that your problem is that your sessions folder can't be written to... actually in this case, it can't be found.

You're using a Unix path in a Windows OS. Crack open your php.ini config file and change the session.save_path to a world writable valid path in your OS.

Like create a folder called C:\TEMP\phpsessions
Then set permissions on that folder to be Full Access for Everyone.
Then in php.ini, set session.save_path to "C:/TEMP/phpsessions" [and yes I did use / on purpose... it's easier than using double backslashes]

photolodge
01-19-2008, 01:34 PM
I will try latter today and post my findings. Thanks again for your help.

Steve

photolodge
01-19-2008, 03:53 PM
oK, I added the temp directory and pointed my php toward it and restarted apache. Called on index and get this...



Easy PHP Calendar Test Script

Testing sessions...



Click here to continue... (http://192.168.1.200/tester/index.php?st=x)

Sounds great right?

But the page now seems to auto refresh every second and when I click to continue nothing happens except for another refresh with the extension added to the URL of st=x. Thanks for all your help. I really like your script and rather pay you the $20.00 then to take a week and write my own.

This private install on win xp apache is probably not setup up properly, so I may need U a few more times. We only use this server for LAN testing and internal business program sharing.

Steve

Steve

Brian
01-20-2008, 05:35 PM
Sessions still aren't storing correctly so the test script never sees the okay to continue...

Do you run other web scripts or are you setting this up just for the calendar?

photolodge
01-20-2008, 09:37 PM
No other php scripts or mysql tables have been used on this installation.
It is a fresh install but I do plan to run other internal scripts with it.

photolodge
01-20-2008, 09:39 PM
I might be bugging U for no reason. Tomarro I will go thru all the php.ini and apache config files and make sure everything is ok.

Thanks

Brian
01-20-2008, 10:55 PM
You may want to try this since it is a new install. This is what I use for local testing and it works quite well right out of the box.

http://www.wampserver.com/

photolodge
01-24-2008, 11:10 AM
Thanks for all the info.

I still cannot get it to work correctly after checking ever config file and permission I can think of. Have you had sucsess with other windows apache installations?

I can see in the temp folder where a session ID has been written but with zero byte to the file.

I hate to reinstall apache so I will have to just wait and see what happens.

Brian
01-24-2008, 08:24 PM
As long as the server properly supports PHP sessions, it should work.

Sessions is handled by PHP. It's not the calendar that writes them to your server. It's PHP that's having the problem. Either with permissions, space allocations, paths issues, etc. Once PHP is set up to properly store sessions, the calendar will then be able to use this function to store your credentials.

photolodge
01-25-2008, 05:16 PM
Ya, I know what you are saying is true. Might have to go for reinstall!

photolodge
01-28-2008, 02:20 PM
Ok Brian, I moved everything off the server and will try your sugesstion http://www.wampserver.com/ I will let you know.

STeve

photolodge
01-31-2008, 12:19 PM
Ok, I reinstalled apache and now the sessions are working. The script passed and everything looks good. Thanks again. I sent you payment.

Steve
PhotoLodge