(Short recap: my host changed the settings for PHP, so it runs like me,
rather than as the web server. This caused a change in the structure of
URLs, and I'm trying to get back to the "old" structure now.)<br>
<br>
I was in contact with the guys that are hosting my wiki, and they found
a bug in the program that sits in between their web server
and PHP (it relies on the fact that the last slash (/) in a URL should
come right before the php script's filename).<br>
<br>
They fixed the bug, so now the "old" URL for my homepage is now working:<br>
<span class="q"></span><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.thenewpr.com/wiki/pmwiki.php/Main/Home" target="_blank">http://www.thenewpr.com/wiki/pmwiki.php/Main/Home</a><br>
<br>
But the problem is still not solved: the default setting for all the page is still the one with <span style="font-weight: bold;">?pagename</span>.<br>
<br>
Is there something I can do to correct this?<br>
<br>
Thank you!<br>
<br>
Constantin<br>
<br>
.....................................................<br>
<span class="q"><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.thenewpr.com/wiki/pmwiki.php/Main/Home" target="_blank"></a></span><br><div>
<span class="gmail_quote">On 9/29/05, <b class="gmail_sendername">Patrick R. Michaud</b> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Sep 29, 2005 at 02:00:18PM -0400, Constantin Basturea wrote:<br>> > I'm guessing that one or more of the following has happened:<br>> > - Apache was upgraded (e.g., from 1.3 to 2.0)<br>> > - PHP was upgraded
<br>> > - The Apache or PHP configuration has been changed<br>> > - PHP has been switched to run in "CGI" mode instead of as an<br>> > Apache handler<br>><br>> I asked my webhost if they made any changes in Apache/PHP
<br>> version/settings, and here's what he responded:<br>><br>> "PHP now runs as you, rather than as the web server. This means files<br>> created by PHP will be owned by you. It also means that if you need to
<br>> store your MySQL (and hence your main account) password in a file in<br>> order to connect to a database, you can store it in a file that's only<br>> readable by you. This is an important security measure."
<br><br>They are absolutely correct that this is an important security<br>improvement -- I wish more sites would do this.<br><br>However, it appears that in changing the Apache settings that<br>the PATH_INFO component of urls is no longer working per the
<br>CGI 1.1 specification. The PATH_INFO part of CGI means that<br>given a url such as<br><br> <a href="http://www.thenewpr.com/wiki/pmwiki.php/Main/Home">http://www.thenewpr.com/wiki/pmwiki.php/Main/Home</a><br><br>the value "/Main/Home" is placed in the PATH_INFO environment
<br>variable when the CGI script (pmwiki.php) is called. Unfortunately,<br>the current Apache settings on your server seem to be refusing to<br>serve up the url at all and are simply returning a blank document.<br><br>Often this can be fixed in Apache
2.0 by setting the AcceptPathInfo<br>directive to "On" in the apache configuration -- without this<br>Apache 2 will generally return a "404 Not Found" for urls containing<br>PATH_INFO data. If that doesn't work (or isn't an option),
<br>then we'll need to see about using mod_rewrite to get things to<br>work.<br><br>Pm<br></blockquote></div><br>