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?
The document was not found
s9y doesnt work on IIS - install apache
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
http://blog.dreamcoder.dk
Then you don't like PHP.... Poor PHP, having to run on IIS...
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
http://blog.dreamcoder.dk
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: The document was not found
What is it then, "that error"?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?
The document was not found
Same as the topic heading...:-
The document was not found.
After installation, when you try and access the site.
The document was not found.
After installation, when you try and access the site.
Mark Van Bellen
Same problem running OmniSecure (OmniHTTPd)
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
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 !!!
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...
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 !!!
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.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...
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.