Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 21st, 2005, 05:35 PM
Justin Koivisto
Guest
 
Posts: n/a
Default php iis & session storage

I need to do some testing for an IIS server (not my choice!)...

So I installed IIS on my WinXP Pro machine (all updates applied), got
php 5.1.1 installer (& zip for all the pear stuff), and got everything
running. (I used the installer, so PHP is running in CGI mode.)

I ran a bunch of different scripts without problems, but now I need to
test pages that use sessions. The following is the error I get:

Fatal error: session_start() [function.session-start]: Failed to
initialize storage module: user (path: C:\PHP\sessiondata) in
c:\Inetpub\wwwroot\file.php on line N

(line is "session_start();")

These files all worked under my apache installs, and I am assuming that
the problem lies with the permissions of the directory somehow. Does
anyone have experience with this kind of setup?

I am using an NTFS filesystem, and I thought that I could simply allow
the user running the web server to have write access, but that didn't
work. I even went in and set "Everyone" with full access to the c:\php
folder (after attempting the same on the sessiondata one) to no avail.

TIA!

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
  #2  
Old December 21st, 2005, 05:55 PM
Andy Hassall
Guest
 
Posts: n/a
Default Re: php iis & session storage

On Wed, 21 Dec 2005 11:19:44 -0600, Justin Koivisto <justin@koivi.com> wrote:
[color=blue]
>I need to do some testing for an IIS server (not my choice!)...
>
>So I installed IIS on my WinXP Pro machine (all updates applied), got
>php 5.1.1 installer (& zip for all the pear stuff), and got everything
>running. (I used the installer, so PHP is running in CGI mode.)
>
>I ran a bunch of different scripts without problems, but now I need to
>test pages that use sessions. The following is the error I get:
>
>Fatal error: session_start() [function.session-start]: Failed to
>initialize storage module: user (path: C:\PHP\sessiondata) in
>c:\Inetpub\wwwroot\file.php on line N
>
>(line is "session_start();")
>
>These files all worked under my apache installs, and I am assuming that
>the problem lies with the permissions of the directory somehow. Does
>anyone have experience with this kind of setup?
>
>I am using an NTFS filesystem, and I thought that I could simply allow
>the user running the web server to have write access, but that didn't
>work. I even went in and set "Everyone" with full access to the c:\php
>folder (after attempting the same on the sessiondata one) to no avail.[/color]

Perhaps http://bugs.php.net/bug.php?id=32330

In particular the error seems to indicate you have a custom session save
handler registered, since it's saying "storage module: user" instead of the
default file handler?

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
  #3  
Old December 21st, 2005, 06:55 PM
Justin Koivisto
Guest
 
Posts: n/a
Default Re: php iis & session storage

Andy Hassall wrote:[color=blue]
>
> Perhaps http://bugs.php.net/bug.php?id=32330
>
> In particular the error seems to indicate you have a custom session save
> handler registered, since it's saying "storage module: user" instead of the
> default file handler?[/color]

I bet it is... Thanks!

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
  #4  
Old December 21st, 2005, 07:15 PM
Justin Koivisto
Guest
 
Posts: n/a
Default Re: php iis & session storage

Andy Hassall wrote:[color=blue]
> Perhaps http://bugs.php.net/bug.php?id=32330
>
> In particular the error seems to indicate you have a custom session save
> handler registered, since it's saying "storage module: user" instead of the
> default file handler?[/color]

I guess it wasn't, but it did get me looking in the right place... Turns
out that the database object (MDB) that was used for the session storage
stuff had a malformed connection string.

Thanks for the help!

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles