To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > PHP Help > General Help

General Help Forum for General Help questions pertaining to PHP

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-02-2009, 08:15 AM   #1
gloucester
Junior Member
 
Join Date: Nov 2009
Posts: 3
resolved [RESOLVED] php session problem during migrate from Linux to Windows

Due to the request, I need to migrate the php website from Linux server to Windows 2000.

One strange problem has bother me for a long time. The application is works fine after migrate to windows 2000, but whenever I insert or update data into mysql database (using the aplication web interface), I only can do it once, unless wait for 10 second, otherwise the page (web interface) only refresh but do nothing. This also happen to my phpmyadmin sometimes.

Windows 2000+Apache2.2+php5.2.11+MySQL5.0.51a+phpmyadmin 2.10.1

Since the program using the register_globals, so I have to trun it on.
session.auto_start() = 0 , I did remain this setting in php.ini

There should be somewhere can change the configuration to solve this problem, I been suffer this problem for 1 week already, anyone can give some tips or help would be very appreciate!

Thanks in advance!
gloucester is offline   Reply With Quote
Old 11-02-2009, 05:22 PM   #2
big.nerd
i like computers
 
Join Date: Jul 2006
Location: Canada
Posts: 466
gloucester,

I can't even begin to look into why this may be happening, however a few points to try:

1) increase memory_limit in php.ini
2) check filesystem permissions for whatever user the apache service is running on, ensure temp folder has permissions
3) run the Windows Performance Monitors, and see what exactly is happening with CPU, Memory, Disk, etc.

Under a test environment I've used XAMPP (basically apache+php+mysql+phpMyAdmin) very successfully from anywhere between Windows 2000 and (cough) Vista.

In a production environment I have had Windows 2000/2003 Server with Apache AND IIS (different setups) with no difficulty.

Be sure that the Windows 2000 Machine isn't overloaded with services as well, using the performance monitor will really help isolate this issue (or rule it out for that matter).

Your Apache/PHP Setup is only as good as your windows setup.

Best of luck, and see here for info on System Monitor.
__________________
big.nerd

Most Code Provided is UNTESTED (unless otherwise specified).
... nerds are real people too!
big.nerd is offline   Reply With Quote
Old 11-03-2009, 03:51 AM   #3
gloucester
Junior Member
 
Join Date: Nov 2009
Posts: 3
Thanks for your replay mate. I think I found the problem which caused by the mod_auth_sspi is a Apache 2.x SSPI authentication module which let Apache 2.x users authenticate against Win32 domains.

link: http://sourceforge.net/projects/mod-auth-sspi/

I did config httpd.condig as following:

<Directory "D:/Develop/htdocs">
Options Indexes FollowSymLinks
AllowOverride All

Order allow,deny
Allow from all

AuthName "A Protected Place"
AuthType SSPI
SSPIDomain tpe.compalcomm.com
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic On
require valid-user
</Directory>

I can get the domian username by using $_SERVER["REMOTE_USER"], but cause the problem like I post in this thread.

Is that possible to have both working on my system?

Any tips or advice would be highly appreciate!

Thanks in advance!
gloucester is offline   Reply With Quote
Old 11-05-2009, 12:05 AM   #4
gloucester
Junior Member
 
Join Date: Nov 2009
Posts: 3
Problem Solved!

This problem is because the IE losing POST data while using mod-auth-sspi.
Solution: Download mod_auth_sspi_1.0.5b-vc9-2.2.11.zip through http://dev.nosq.com/downloads/mod_au...vc9-2.2.11.zip

Thanks for replay my question.
gloucester is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 04:28 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.