Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 25th, 2001, 07:36 PM
birdsky birdsky is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Hong Kong or Austin, Texas
Posts: 14 birdsky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have some cgi scripts. They worked fine. However, when I switched my server to use mod_perl to handle the script, I got the following error from Apache's error log.

DBD::mysql::st execute failed: MySQL server has gone away at scripts_name.cgi line 562.

But sometimes the script runs fine after a few reloads.

Does anyone know what causes this error? My script, mod_perl, or MySQL? I am assuming it's my script's error, but I have no clue of what is wrong.

Wondering if this is a common error when switching to mod_perl.

Thanks

Last edited by birdsky : March 25th, 2001 at 07:41 PM.

Reply With Quote
  #2  
Old April 3rd, 2001, 07:27 AM
dihjital dihjital is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 31 dihjital User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
startup.pl

try to use Apache:BI in your startup.pl ( or whatever you named it ) file. that way you can make a permantent connection to your database at the time of server startup, so your SQL server will not "go away" when child exits.

more info on perl.apache.org and on cpan.org

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > cgi to mod_perl error


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 5 hosted by Hostway