Page 1 of 1
Nearly there... PHP5 Installation with an error message
Posted: Tue Jun 05, 2007 8:52 am
by GeoffR
My first post.....
After 2 years of putting this off

I finally have PHP and MYSQL both working with IIS5 on a local WinXP machine! I have installed PHP5, added the ISAPI filter, and all seems to be working. HOWEVER, when tying to view my website on localhost, I am getting errors...
Here is my first. (It may resovle the rest?)
Code: Select all
Warning: session_start() [function.session-start]: open(C:\php4\sessiondata\sess_4bb4bfccba98ed07bda406639f471059, O_RDWR) failed: No such file or directory (2) in E:\MyFiles\Multimedia_Files\BSDE\webroot\pagepress\common\page.php on line 3
I don't know why it is looking for anything in C:\php4\ as that folder doesn't exist. The only php folder that exists, is C:\php\. Any ideas on how to fix this? (I did attempt a php4 install some time back and that folder used to exist).
Thanks,
Geoff
feyd | Split from here as it's not a support thread.
Posted: Tue Jun 05, 2007 9:05 am
by feyd
Most likely, there is a directive in php.ini that isn't correct. Probably session.save_path.
No, that is set correctly
Posted: Tue Jun 05, 2007 10:32 am
by GeoffR
Thanks, I just checked... the setting in php/php.ini is
session.save_path = "C:\PHP\phpsessions"
??
Geoff
Re: No, that is set correctly
Posted: Tue Jun 05, 2007 12:18 pm
by superdezign
GeoffR wrote:Thanks, I just checked... the setting in php/php.ini is
session.save_path = "C:\PHP\phpsessions"
??
Geoff
Sounds to me like you're still using the php.ini from your PHP4 installation. Is there a php.ini in C:\Windows?
Posted: Tue Jun 05, 2007 3:03 pm
by RobertGonzalez
Run a phpinfo() page and see what that tells you about your setup.
PHP.ini question
Posted: Tue Jun 05, 2007 6:18 pm
by GeoffR
Thanks, that was useful -- I discovered the current php.ini was in c:\Windows\, and was using an old version 4 file. I replaced it with my new version 5, restarted the server, but nothing changed.
I'm not sure why it is looking to C:\Windows\php.ini. Is it possible to change that path to C:\php\? (Does it matter?) If so, where do I do that?
Thanks for your help. This is new to me.
Geoff
Re: PHP.ini question
Posted: Tue Jun 05, 2007 6:24 pm
by superdezign
GeoffR wrote:Is it possible to change that path to C:\php\? (Does it matter?) If so, where do I do that?
Depends on your server. Apache2 does it very easily. However, for anything else, you should look at the PHP.net documentation. If you're using CGI, it's pretty much guaranteed to be a simple change.
IIS on Windows for PHP... I haven't read it, but it may help.
Posted: Tue Jun 05, 2007 7:18 pm
by RobertGonzalez
I think there are a few dll's you'll have to move into C:\WINDOWS to get things going. That has been my recent experience installing PHP and finding out that the php.ini was being looked for in C:\WINDOWS.
Thanks
Posted: Tue Jun 05, 2007 7:32 pm
by GeoffR
Thanks, I will check that out.
Much appreciated,
Geoff