Ian Armstrong | 6 May 2004 16:20
Picon

new installation


mathopd mailing list,

I have just installed mathopd for the first time, and it appears to be running correctly. There is just one
thing I noticed, and that is, it reads my webs page if they start with \"index.html\", but not if they start
with \"index.php\". Otherwise php seems to work fine.

Ian.

Ian Armstrong
--------------------------------
ika at expressmail dot dk
http://www.expressmail.dk
Brøndshøj 14, Rønne, 3700, Bornholm, Denmark

Juergen Daubert | 6 May 2004 22:03
Picon
Favicon

Re: new installation

On Thu, May 06, 2004 at 04:20:41PM +0200, Ian Armstrong wrote:
> 
> mathopd mailing list,

Hi Ian,

> I have just installed mathopd for the first time, and it appears 
> to be running correctly. There is just one thing I noticed, and 
> that is, it reads my webs page if they start with \"index.html\", 
> but not if they start with \"index.php\". Otherwise php seems to 
> work fine.

I guess you mean with 'read index.php', that the page should be
processed by the php interpreter. If so, just put a line

 External { /usr/bin/php { php } }

into the Control section of your mathopd configuration file.

Greetings
Jürgen

--

-- 
juergen.daubert <at> t-online.de

Ian Armstrong | 7 May 2004 13:04
Picon

Re: new installation


On Thu, 6 May 2004 22:03:20 +0200, Juergen.Daubert <at> t-online.de (Juergen Daubert) wrote:

|On Thu, May 06, 2004 at 04:20:41PM +0200, Ian Armstrong wrote:
|> 
|> mathopd mailing list,
|
|Hi Ian,
|
|> I have just installed mathopd for the first time, and it appears 
|> to be running correctly. There is just one thing I noticed, and 
|> that is, it reads my webs page if they start with \"index.html\", 
|> but not if they start with \"index.php\". Otherwise php seems to 
|> work fine.
|
|I guess you mean with 'read index.php', that the page should be
|processed by the php interpreter. If so, just put a line
|
| External { /usr/bin/php { php } }
|
|into the Control section of your mathopd configuration file.
|
|
|Greetings
|Jürgen
|
|
|-- 
|juergen.daubert <at> t-online.de
|
(Continue reading)

Janusz Gumkowski | 7 May 2004 14:56
Picon

Re: new installation

> The second virtual host starts with the file "index.php", but when 
> I type in my browser "www.host2.test", I get an error. Only when 
> I type "www.host2.test/index.php" does it start.

I had the same problem some time ago.
It was fixed by compiling php with '--enable-discard-path' option.

Ja.

Michiel Boland | 7 May 2004 16:43

Re: new installation

> The problem is like this: I have two virtual domains on the same server.
> The first domain starts with the "index.html" file. This works fine. All
> I have to type in my browser is "www.host1.test" and the page with lots
> of php in it, comes up perfectly. The second virtual host starts with
> the file "index.php", but when I type in my browser "www.host2.test", I
> get an error. Only when I type "www.host2.test/index.php" does it start.
> I have looked at the archives, but there doesn't seem to be an example
> of this, or I have just missed it. I am using the latest Crux port.

Hi. You probably need to add "index.php" to the IndexNames.
Somewhere in your configuration file there is a line that looks like

  IndexNames { index.html }

Change that to

  IndexNames { index.html index.php }

and things should be ok.

Cheers
Michiel

Ian Armstrong | 8 May 2004 13:54
Picon

Re: new installation


On Fri, 7 May 2004 14:56:04 +0200, Janusz Gumkowski <januz <at> uck.uni.torun.pl> wrote:

|> The second virtual host starts with the file "index.php", but when 
|> I type in my browser "www.host2.test", I get an error. Only when 
|> I type "www.host2.test/index.php" does it start.
|
|I had the same problem some time ago.
|It was fixed by compiling php with '--enable-discard-path' option.
|
|Ja.
|

Thanks. This solved the problem

cheers,
Ian.

Ian Armstrong
--------------------------------
ika at expressmail dot dk
http://www.expressmail.dk
Brøndshøj 14, Rønne, 3700, Bornholm, Denmark


Gmane