The document was not found

Having trouble installing serendipity?
Post Reply
deathraylabs
Posts: 2
Joined: Tue Dec 23, 2003 2:31 pm

The document was not found

Post by deathraylabs »

Installing on a IIs win2000 box. All goes during install. When I click on index.php I get that error..

What's up with that? :(
tomsommer
Core Developer
Posts: 240
Joined: Tue Sep 02, 2003 6:43 pm
Location: Denmark
Contact:

Post by tomsommer »

s9y doesnt work on IIS - install apache
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
deathraylabs
Posts: 2
Joined: Tue Dec 23, 2003 2:31 pm

I'll pass..

Post by deathraylabs »

I like IIs and IIs likes me ;-)
tomsommer
Core Developer
Posts: 240
Joined: Tue Sep 02, 2003 6:43 pm
Location: Denmark
Contact:

Post by tomsommer »

Then you don't like PHP.... Poor PHP, having to run on IIS...
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
Buttons
Posts: 2
Joined: Mon Feb 09, 2004 11:33 pm
Location: UK
Contact:

Not just IIS!

Post by Buttons »

Same problem under Xitami as well, oh well.
:roll: :(
Mark Van Bellen
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: The document was not found

Post by garvinhicking »

deathraylabs wrote:Installing on a IIs win2000 box. All goes during install. When I click on index.php I get that error..

What's up with that? :(
What is it then, "that error"? :-)
Buttons
Posts: 2
Joined: Mon Feb 09, 2004 11:33 pm
Location: UK
Contact:

The document was not found

Post by Buttons »

Same as the topic heading...:-

The document was not found.

After installation, when you try and access the site.
Mark Van Bellen
krattai
Posts: 3
Joined: Thu Oct 28, 2004 5:06 pm

Same problem running OmniSecure (OmniHTTPd)

Post by krattai »

It has to be that $_SERVER variable issue here, too. I could get the admin to run if I loaded the script directly, but never could get to the index.php.

I trashed it until I could get it figured out, and installed Simple PHP blog instead and got errors there, too. When putzing with it, I found that the URI ($_SERVER) was not being passed. Is that specific to apache? Anyhow, I solved the problem by hardcoding every instance of $_SERVER which (a better fix) should be otherwise set as a global.

Is there any code documentation (other than going through all the scripts) to know where all the instances of $_SERVER exist? I really do want to use Serendipity (I really like the features, look and feel) and so would take the time to tweak the code.

thx
krattai
Posts: 3
Joined: Thu Oct 28, 2004 5:06 pm

!!! SOLVED !!!

Post by krattai »

For "The document was not found" solution (and it is rather simple, really... :roll:

For non-apache servers, find $_SERVER on line 15 in index.php

Change line 15 to:

$uri = "http://www.yourdomain.com/index.php";

After that, everything works fine!

Thanks for using a global, guys... 8)
krattai
Posts: 3
Joined: Thu Oct 28, 2004 5:06 pm

Re: !!! SOLVED !!!

Post by krattai »

krattai wrote:For "The document was not found" solution (and it is rather simple, really... :roll:

For non-apache servers, find $_SERVER on line 15 in index.php

Change line 15 to:

$uri = "http://www.yourdomain.com/index.php";

After that, everything works fine!

Thanks for using a global, guys... 8)
Sorry to top this again, for people who don't care about this. I found a better solution, as this one was still causing problems with posting comments, etc.

I found the answer that works here:
http://ca.php.net/reserved.variables

Posted by:
chris at interspire dot com
23-Mar-2004 10:28

Above line 15:
$uri = $_SERVER['REQUEST_URI'];

insert the following:

if (!isset($_SERVER['REQUEST_URI'])) {
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING'];
}

Pretty much everything seems to be working now.
Post Reply