Anton Bretterklieber wrote:
> >> Yes, apache was running. Invoking test.php, Netscape asked where to
> >> save test.php
> >
> > Oh, that probably means you don't have:
> >
> > AddType application/x-httpd-php .php
> >
> > in your httpd.conf. PHP in general won't work without it.
>
> This wasn't the problem, I had it in httpd.conf.
Then Apache is still sending out a wrong mimetype.
If you do this ('>' is not really present but those lines will appear
automatically, the rest you type) :
[emile@cactus php4]$ telnet 0 80
> Trying 0.0.0.0...
> Connected to 0.
> Escape character is '^]'.
HEAD /test.php HTTP/1.0
> HTTP/1.1 200 OK
> Date: Sun, 27 May 2001 15:45:40 GMT
> Server: Apache/1.3.12 (Unix) (Red Hat/Linux) Midgard/1.4.1 PHP/4.0.5
> X-Powered-By: PHP/4.0.5
> Connection: close
> Content-Type: text/html
>
> Connection closed by foreign host.
It's the Content-Type line that matters.
> Now I recompiled php4.04pl1 with mm, shmop and imap (are these necessary
> for midgard?)
No.
> and without declare --with-system-regex. Recompiling the
> midgard-sources lets midgard and php work.
> But there is a very obscure behaviour (or didn't I understand the
> strategy of midgard?)
> a) Loading midgard.so as an extension in php.ini lets midgard work
> without problems.
This is the way I usually set things up.
> b) Starting a php-script as first doesn't work. I have to call anything
> from midgard, eg. /example, and then twice the php-script.
For any PHP script? Then we probably have a problem in the rinit or
minit phase. I'll go check.
> c) If I don't comment extension=midgard.so, midgard and php are working.
Does this mean the line is or isn't in php.ini?
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]