Emiliano wrote:

> 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.

If I don't have midgard.so in php.ini, I get the following output:

HTTP/1.1 200 OK
Date: Mon, 28 May 2001 12:52:22 GMT
Server: Apache/1.3.14 (Unix) (SuSE/Linux) mod_throttle/3.0 mod_layout/1.0
mod_fastcgi/2.2.2 mod_perl/1.24 Midgard/1.4.1/SG PHP/4.0.5
X-Powered-By: PHP/4.0.5
Connection: close
Content-Type: text/html

If midgard.so is in php.ini, there is no output. The log-file shows a 
segfault.

> 
> 
>> 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.

This solved the problem. The new CVS-sources seems to be right for me.
midgard and php are working fine.

Thank you and happy hacking!
Toni

-- 
Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to