Page 1 of 1

Apache with PHP isapi module crash with cmsmadesimple 0.12beta2

Posted: Wed Feb 22, 2006 5:52 pm
by vtesin
Hi,

I'm having problem running site that's based on cmsmadesimple 0.12beta2 since Apache is crashing whenever a page from that site is accessed.

I tried running php as cgi bin from apache - php exe crashes (so must the isapi dll in apache too).

This happens from time to time - from few times a day to comlpete blocking of Apache on every access.

My setup is:
Apache 2.0.55 - PHP 4.4.0 - MySQL 3.23.58
OS: Windows XP Pro SP2 (which is updated regulary)

Re: Apache with PHP isapi module crash with cmsmadesimple 0.12beta2

Posted: Thu Feb 23, 2006 11:32 am
by jelle
if it takes apache with it it is not an cmsmadesimple issue anymore. cmsms is just php code that the php interpreter should run. if the php crashes the interpreter, you should not blame the code.
This is how I would proceed:
determine if any other php can be run.
determine if all pages of cmsms have the same problem and try to find the culprit code. If you have svn, use that to step back and forth trough each change filed starting with a working base. That will narrow the bug-trigger to one changeset of hopefully a few files.

Run the php interpreter with strace or an other tracing tool. try to find the last php file opened (may not work as execution and reading is not paired 1:1)
compile the offending code with debug symbols and get a coredump.
post the bug at the php or apache-php developing site. they might know more.

sorry if I can't help you more, but I don't have such a OS/platform.

Re: Apache with PHP isapi module crash with cmsmadesimple 0.12beta2

Posted: Thu Feb 23, 2006 1:26 pm
by Vanja
Thanks for the reply,

In the meantime I tried the same site / cms on Fedora Core 4 with apache 2.2.0 and php 4.4.2 with the same mysql and it works ok.

This seems to be some strange error because the cms works ok most of the time but sometimes, when i  add something that seems to be by the book, so to speak, the php interpreter breaks.

One more thing i found on this release is that it does not evaulates php code in user tags. I have a php file that parser rss feed that works ok in the original site, but cms breaks it down by hiding some global variables used by the script.