Page 1 of 1
The document was not found
Posted: Tue Dec 23, 2003 2:42 pm
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?

Posted: Tue Dec 23, 2003 6:02 pm
by tomsommer
s9y doesnt work on IIS - install apache
I'll pass..
Posted: Tue Dec 23, 2003 7:42 pm
by deathraylabs
I like IIs and IIs likes me

Posted: Tue Dec 23, 2003 7:43 pm
by tomsommer
Then you don't like PHP.... Poor PHP, having to run on IIS...
Not just IIS!
Posted: Mon Feb 09, 2004 11:41 pm
by Buttons
Same problem under Xitami as well, oh well.

Re: The document was not found
Posted: Tue Feb 10, 2004 8:47 am
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"?

The document was not found
Posted: Tue Feb 10, 2004 9:01 am
by Buttons
Same as the topic heading...:-
The document was not found.
After installation, when you try and access the site.
Same problem running OmniSecure (OmniHTTPd)
Posted: Thu Oct 28, 2004 5:20 pm
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
!!! SOLVED !!!
Posted: Fri Oct 29, 2004 3:02 am
by krattai
For "The document was not found" solution (and it is rather simple, really...
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...

Re: !!! SOLVED !!!
Posted: Sat Oct 30, 2004 5:57 am
by krattai
krattai wrote:For "The document was not found" solution (and it is rather simple, really...
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...

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.