How to configure PHP 4 running SBS 2003 Server with IIS 6

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
cyberlei
Forum Commoner
Posts: 27
Joined: Tue Oct 16, 2007 6:19 pm
Location: Milpitas, CA

How to configure PHP 4 running SBS 2003 Server with IIS 6

Post by cyberlei »

Hey guys, please give some ideas for PHP 4 running on SBS 2003 Server with IIS 6. i did alot of search on google , but still have issue on that. my brain seem stop working now.

the problem is every time i try to login from main.php and after i login it suppose see menu.php ,but it will back to main.php again and no any error messages.

I also tried to install PHP 4 on XP Pro SP2 with iis 5.1, working perfectly.but when I try to install it to SBS 2003 server with iis 6.0 that login issue will come out.

I`m wandering, may be is the php.ini file issue running on C:\WINDOWS, but that php.ini file working perfectly on a XP box.

Here is my install ver:

PHP 4.4.4 with CGI
SBS 2003 Server with iis 6.0

Thanks a lot
cyberlei
Forum Commoner
Posts: 27
Joined: Tue Oct 16, 2007 6:19 pm
Location: Milpitas, CA

Post by cyberlei »

I have been searching on google a lot for the php running on SBS 2003 Server, after I found how to configure php.ini setting for windows 2003. I got error message here:

PHP Warning: session_start() [function.session-start]: open(C:\PHP\sessiondata\sess_09ce752430d0b26f33b5f323ef1f077e, O_RDWR) failed: No such file or directory (2) in c:\inetpub\wwwroot\uls\main.php on line 4 PHP Notice: Undefined index: user in c:\inetpub\wwwroot\uls\login.php on line 96 PHP Notice: Undefined variable: message in c:\inetpub\wwwroot\uls\login.php on line 101 PHP Warning: Unknown(): open(C:\PHP\sessiondata\sess_09ce752430d0b26f33b5f323ef1f077e, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\PHP\sessiondata) in Unknown on line 0

The session.save_path setting is here:

session.save_path = "N;/path"

and

session.save_path = /tmp

I also try to change the session.save_path = c:\temp, still have that error message, please help me to clarification about that settings.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Those path settings in php.ini should have both Unix and Windows examples of paths. Make sure that you are using Windows paths and that the directories exist.





PS - or reformat and install a Linux distro ;)
(#10850)
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

arborint wrote:or reformat and install a Linux distro ;)
The Linux distro will be polite enough to reformat the drive for you.
cyberlei
Forum Commoner
Posts: 27
Joined: Tue Oct 16, 2007 6:19 pm
Location: Milpitas, CA

Post by cyberlei »

Thanks for your reply guys, here is my Unix and windows path setting:

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"

i have no problem if running a XP box with that path settings.



PS:unfortunately I am not familiar with linux :oops:
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

They are all commented out. It should be;

Code: Select all

; UNIX: "/path1:/path2"  
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;c:\php\includes"
But change "c:\php\includes" to where the global include files are on your system. And add any other paths you want.
(#10850)
cyberlei
Forum Commoner
Posts: 27
Joined: Tue Oct 16, 2007 6:19 pm
Location: Milpitas, CA

Post by cyberlei »

arborint wrote:They are all commented out. It should be;

Code: Select all

; UNIX: "/path1:/path2"  
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;c:\php\includes"
But change "c:\php\includes" to where the global include files are on your system. And add any other paths you want.

tired, but still same issue on that.

just wandering may be is the SBS 2003 domain controllers against that issue. please clarify.

Thanks
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

OK not knowing what your code is like (if you use register globals etc) I would just like to point out the following about PHP 4...
PHP Dev Team wrote:The PHP development team hereby announces that support for PHP 4 will continue until the end of this year only. After 2007-12-31 there will be no more releases of PHP 4.4. We will continue to make critical security fixes available on a case-by-case basis until 2008-08-08. Please use the rest of this year to make your application suitable to run on PHP 5.
Is it possible to upgrade to PHP5 ? Not saying it will solve your problem, indeed it may cause others as well but when you are doing things anyway...

For informational purposes (to try and solve the problem) have you checked the result of a phpinfo() to see what settings you have for things the session and general pathing ?
cyberlei
Forum Commoner
Posts: 27
Joined: Tue Oct 16, 2007 6:19 pm
Location: Milpitas, CA

Post by cyberlei »

Ok, just now knew someone also installed Apache tomcat 5.5 on that SBS 2003, so i am wandering may be php against that issue? please clarify that.

Thanks
Post Reply