Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 15th, 2004, 04:40 PM
brjanie brjanie is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 3 brjanie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
long scripts crashing apache server on windows

I have a long php script - it gets data(screen scraping) of another website. After about 2 minutes of execution it ends up crashing apache server.

other smaller scripts work fine...

I have increased the timeout and everything - maybe memory utilization problem?

I have PHP Version 4.3.3...Apache 1.3.27

Do we generally write scripts when we are writing such a long one ? what are the other options ?

Thanks a lot in advance

Reply With Quote
  #2  
Old January 15th, 2004, 08:10 PM
Mike_r Mike_r is offline
ExoCrew
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 68 Mike_r User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
What was the ram when you tried it on the other server and when the script execution stops, whats the error you get ?
__________________
ExoHelpDesk
ExoCrew Free Services

Reply With Quote
  #3  
Old January 16th, 2004, 03:28 AM
brjanie brjanie is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 3 brjanie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for you reply...

I get a program error...apache.exe has generated error and will be closed by windows.

And the RAM is sufficient i think ...its 256 MB
AFter the script executes for about 7 minutes i get this error.

Regards,
Janie

Reply With Quote
  #4  
Old January 16th, 2004, 04:46 PM
Mike_r Mike_r is offline
ExoCrew
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 68 Mike_r User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Thats normal on apache, it happened with me too, especially using GD libraries or such thing, and max execution doesnt works due to the fact how windows works.

My problem was solved by upgrading my ram to 768. It was 512 mb ago.

Or try using the CGI binary instead of the ISAPI module..

Reply With Quote
  #5  
Old January 16th, 2004, 04:51 PM
brjanie brjanie is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 3 brjanie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
"Or try using the CGI binary instead of the ISAPI module.."

Didnt get you here ?
Thanks Again
Janie

Reply With Quote
  #6  
Old January 17th, 2004, 06:32 PM
Mike_r Mike_r is offline
ExoCrew
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 68 Mike_r User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
When you install php there are two options, either to install it as an ISAP module or CGI binary.

Your httpd.conf must have :

LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

OR

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

If its the first one, trying switching to second..

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > long scripts crashing apache server on windows


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT