Nearly there... PHP5 Installation with an error message

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
GeoffR
Forum Newbie
Posts: 8
Joined: Tue Jun 05, 2007 8:43 am

Nearly there... PHP5 Installation with an error message

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Most likely, there is a directive in php.ini that isn't correct. Probably session.save_path.
GeoffR
Forum Newbie
Posts: 8
Joined: Tue Jun 05, 2007 8:43 am

No, that is set correctly

Post by GeoffR »

Thanks, I just checked... the setting in php/php.ini is

session.save_path = "C:\PHP\phpsessions"

??
Geoff
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: No, that is set correctly

Post 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?
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Run a phpinfo() page and see what that tells you about your setup.
GeoffR
Forum Newbie
Posts: 8
Joined: Tue Jun 05, 2007 8:43 am

PHP.ini question

Post 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
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: PHP.ini question

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
GeoffR
Forum Newbie
Posts: 8
Joined: Tue Jun 05, 2007 8:43 am

Thanks

Post by GeoffR »

Thanks, I will check that out.

Much appreciated,
Geoff
Post Reply