Dan Hammer wrote:
> >Ah now, that's different. Do you have an
> > AddType application/x-httpd-php .php
>
> Got this...
> AddType application/x-httpd-php .php .phtml .html .php3
That ought to do it... OK, there's a perl script attached. Run it with
the URL you're trying to access and tell me what it outputs.
Does regular PHP work BTW?
> oh.. also have this....
> AddType application/x-httpd-php-midgard .mgd
That's only for if you want filetemplates.
> My failure probably comes in the virtual host part of the config file...
>
> MidgardDatabase midgard username password <---- of course that isn't the real
>info :-)
> MidgardTemplate phpelements.xml
> MidgardRootFile "/usr/local/apache/libexec/midgard-root.php"
>
> Listen 8101
> NameVirtualHost 207.228.236.35:8101
>
> <VirtualHost 207.228.236.35:8101>
> MidgardEngine on
> Port 8101
> php_value magic_quotes_gpc off
> php_value magic_quotes_runtime off
> ServerName myautomd
> DocumentRoot /usr/local/apache/htdocs/admin
> MidgardParser latin1
> </VirtualHost>
Looks good. The issue is that whatever mimetype the request results in
(and my guess is the attached script will answer
"application/x-httpd-php"), it's not being picked up by PHP. If that's
true, we'll just have to get plain PHP to work.
> How far off am I? The information on the config file I
> found seems to revolve around php3.
Not specifically
> Also do I need to have the mod_midgard-preparse-1.4.2 package installed?
No. It's experimental, and probably going to replace the regular
mod_midgard at some point, but not right now.
Emile
#!/usr/bin/perl
require HTTP::Request;
use LWP::UserAgent;
$url = $ARGV[0];
$url || die "Need an URL\n";
$request = HTTP::Request->new(GET => $url);
$ua = LWP::UserAgent->new;
$response = $ua->request($request);
$response || die "No response\n";
$response->is_success || die $response->error_as_HTML . "\n";
$headers = $response->headers;
print "Content-Type: ", $headers->header('Content-Type'), "\n";
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]