[Xitami] PHP problems
R O
rolinger1 at hotmail.com
Thu Jun 14 19:55:53 CEST 2007
Interesting, when I run from the command line:
c:\php\php d:\xitami\htdocs\phptest.php - the following occurs:
1. A windows pup up warning message appears (like a javascript "alert()"),
and gives the below message
PHP Warning: Unknown(): mhash: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
2. Then when I click OK in the popup warning window, the following happens
in the command prompt:
PHP Warning: Unknown(): mhash: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
Content-type: text/html
X-Powered-By: PHP/4.3.11
... and then the script executes.
I am guessing that when Xitami tries to execute the php script, this warning
message is somehow popping up in the background and because it never gets
clicked "OK" the script/server just eventually times out with a 502 error
"server temp overloaded".
Does anyone know what this is or how to fix it?
Russel P. Olinger
(310) 466-3399
rolinger1 at hotmail.com
>From: "Brian Kowald" <bkowald at synergybroadcast.com>
>Reply-To: Xitami Users General Discussion <xitami at lists.xitami.org>
>To: "Xitami Users General Discussion" <xitami at lists.xitami.org>
>Subject: Re: [Xitami] PHP problems
>Date: Thu, 14 Jun 2007 11:46:27 -0500
>
>Did you try enabling debuging and looking at the logs under
>c:\xitami\logs?
>
>In xitami.cfg set
>debug=1
>
>Then look at (you guess it) debug.log
>
>For the filter did you try TWO slashes? (probably grasping at straw
>here)
>.php=c:\\php\\php.exe
>
>
>Can you run your php scrips from a command prompt? This would indicate
>if your php.exe is good.
>php phptest.php
>
>
>
>Brian
>
>
>-----Original Message-----
>From: Russel Olinger [mailto:rolinger1 at hotmail.com]
>Sent: Thursday, June 14, 2007 10:38 AM
>To: Xitami Users General Discussion
>Subject: Re: [Xitami] PHP problems
>
>
>I ran two seperate scripts, both with the same outcome.
>
>First: /phptest.php
><?php
> phpinfo();
>?>
>
>second: /php/testpage.php
><?php
>$section1= "Test Page";
>$i = 1;
>echo "$section1" . "$i";
>?>
>
>So, I know the scripts aren't the problem, what else could I look at?
>Beyond what I have done below I haven't been able to find any references
>to
>other configurations that I need to be aware of.
>
>Server win2003, windows file association "php = c:\php\php.exe" Xitami
>runs in "d:\xitami" (v2.4d9) Xitami Filter ".php = c:\php\php.exe"
>(v4.3.11) Xitami Mime "Php=application/x-httpd-php c:\php\php.ini :
>"cgi.force_redirect = 0 ;" c:\php\php.ini-dist : "cgi.force_redirect = 0
>;"
>
>----- Original Message -----
>From: "Francis Turner" <francis.turner at gmail.com>
>To: "Xitami Users General Discussion" <xitami at lists.xitami.org>
>Sent: Thursday, June 14, 2007 2:27 AM
>Subject: Re: [Xitami] PHP problems
>
>
> > That error is basically that PHP or something is going into an
> > infinite loop and not returning
> >
> > On 6/14/07, R O <rolinger1 at hotmail.com> wrote:
> >> Oh, and the error I do get from the server in the browser is:
> >>
> >> "This server is currently overloaded - please try again later "
> >>
> >> >
> >> >I don't use php much and last I recall it was working. Trying to
> >> >implement
> >> >a new script and php isn't working at all.
> >> >
> >> >Windows Server 2003
> >> >Xitami v2.4d9 (In the defaults.cfg file)
> >> > * filter : .php=c:\php\php.exe (even tried / slashes and in
> >> >quotes
> >> >"c:\php\php.exe")
> >> > * mime : Php=application/x-httpd-php
> >> >
> >> >PHP 4.3.11 (in php.ini and php.ini-dist)
> >> > * cgi.force_redirect = 0 ;
> >> >
> >> >And I have restarted Xitami after each change. No matter what I do
> >> >it won't execute the simple test.php file
> >> ><?php
> >> > phpinfo();
> >> >?>
> >> >
> >> >What am I doing wrong or what more could I look at?
> >> >
> >> >Thanks all.
> >> >
> >> >
> >> >Russel P. Olinger
> >> >(310) 466-3399
> >> >rolinger1 at hotmail.com
> >> >
> >> >
> >> >
> >> >--
> >> >Xitami Users Mailing List -- For Xitami support
> >> >To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
> >>
> >>
> >>
> >> --
> >> Xitami Users Mailing List -- For Xitami support
> >> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
> >>
> >
> >
> > --
> > http://www.di2.nu/blog.htm
> > Faber's Fourth Law:
> > Necessity is the mother of strange bedfellows.
> >
> >
> > --
> > Xitami Users Mailing List -- For Xitami support
> > To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
> >
>
>
>--
>Xitami Users Mailing List -- For Xitami support
>To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
>
>--
>Xitami Users Mailing List -- For Xitami support
>To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
More information about the Xitami
mailing list