Apache crashes on connecting to database
Posted by: Beyond The Pale (---.NSW.netspace.net.au)
Date: January 12, 2010 05:17AM

Hi. I'm having a problem using php pages that connect to the mySQL database. (using latest version of WAMP downloaded yesterday)

Before making a successful connection to the db, the pages work fine (except for the expected php errors for data not returned etc.) but as soon as it's configured so that a successful connection is made, Apache crashes and the browser gets a not found error:

"Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience."

This basically prevents me from doing ANY db work with WAMP.

Any help will be greatly appreciated, thanks.

Options: ReplyQuote
Re: Apache crashes on connecting to database
Posted by: yfastud (Moderator)
Date: January 12, 2010 05:58AM

make sure you close your mysql connection; for example

$connections = mysql_connect( 'host', 'user', 'pass' );

// Some scripts

mysql_close($connections);

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Apache crashes on connecting to database
Posted by: Beyond The Pale (---.NSW.netspace.net.au)
Date: January 12, 2010 07:03AM

Thanks, that did it! :-)



Edited 1 time(s). Last edit at 01/12/2010 07:12AM by Beyond The Pale.

Options: ReplyQuote


Sorry, only registered users may post in this forum.