|
Re: [pmwiki] Re: broken wiki links on home page fer an instalaltion: msg#00107web.wiki.pmwiki.user
Patrick R. Michaud wrote: > I'm going to guess that the httpd.conf that is shipped with RH9 > doesn't > honor the AcceptPathInfo directive in .htaccess files in > /var/www/html. > > This is one of the things that greatly disturbs me about Apache 2.0-- > the default Apache 2.0 configuration doesn't honor the CGI/1.1 > specification with respect to PATH_INFO. (I think the default value > for AcceptPathInfo should be "on".) > > What's worse, I don't know of an easy way to have PmWiki detect the > configuration problem to inform the administrator, because Apache > pre-empts the request with an error message before PmWiki can detect > the problem. So, my choices are to either have PmWiki not use > PATH_INFO > by default (changing the URL syntax somewhat) or to live with the > existing situation and document the heck out of it. > > Any suggestions are welcome. > As I am not really optimistic, that I can get my problems fixed on the Schlund+Partner-Servers (also hosting 1&1, and Puretec), I would really appreciate, if the URL syntax can safely be customized somehow. There is UrlFmt, but at many places, the url syntax is hardwired. So what about to provide a function that does the url formatting. FormatUrl(wikipage, action, query) This function should generate appropriate urls such that it would never be necessary to write in a php script things like <a href='\$ScriptUrl?action=search&text=\$Title_'>\$Title</a> one couuld write instead <a href='".FormatUrl($Group.$Title, "search", "text=\$Title_")."'>\$Title</a> or <a href='\$PageUrl?action=edit'>Edit Page</a><br /> <a href='".FormatUrl($Group.$Title, "edit")."'>\$Edit Page</a> '[[$Edit' => '[['.FormatUrl("$PageUrl", "edit")' The behavior for FormatUrl can either be hardwired or custimizeable by an appropriate boolean variable: SupportPathInfo=1 SupportPathInfo=0 Bernhard > Pm > > > On Wed, Jun 18, 2003 at 05:01:38PM -0400, Rich Coco wrote: >> patrick - >> >> Just for closure... >> >> I had to place the "AcceptPathInfo On" directive in >> /etc/httpd/conf.d/php.conf >> (inside the <Files ... </Files> element). It simply did not work >> using the .htaccess file method. >> >> maybe this is an apache 2.0 'enhancement'? >> >> anyway, thanks for the help. >> >> - rich >> >> Patrick R. Michaud wrote: >>> I think you already indicated this--but just to verify, does your >>> .htaccess file in /var/www/html/pmwiki contain the "AcceptPathInfo >>> On" directive? >>> >>> The problem is almost certainly that the web server is looking for >>> a file called /pmwiki/pmwiki.php/PmWiki/WikiWikiWeb and not treating >>> the PATH_INFO statement correctly. >>> >>> If you've already added AcceptPathInfo On to your .htaccess file and >>> still isn't working, it may be that Apache isn't recognizing >>> AcceptPathInfo in that directory and so the AcceptPathInfo On >>> statement needs to go >>> in the httpd.conf file (or place it in a file in /etc/httpd/conf.d). >>> >>> Pm >>> >>> >>> On Wed, Jun 18, 2003 at 11:27:14AM -0400, Rich Coco wrote: >>> >>>> I installed pmwiki on a Linux RH 9.0 PC: >>>> >>>> racoco: ls -l /usr/local/src/pmwiki/ >>>> total 92 >>>> -rw-r--r-- 1 racoco racoco 18009 Feb 6 2002 COPYING >>>> drwxr-xr-x 2 racoco racoco 4096 Jun 16 22:40 local >>>> -rw-r--r-- 1 racoco racoco 1037 Mar 4 01:35 >>>> pmwiki-50.gif >>>> -rw-r--r-- 1 racoco racoco 15421 Jul 24 2002 >>>> pmwiki-50.psd >>>> -rw-r--r-- 1 racoco racoco 38141 Jun 16 22:21 pmwiki.php >>>> drwxr-xr-x 2 racoco racoco 4096 Jun 16 22:40 scripts >>>> drwxr-xr-x 2 racoco racoco 4096 Jun 18 01:53 wikilib.d >>>> >>>> I copied the files to my apache web server installation directory >>>> and added the .htaccess page as specified: >>>> >>>> racoco: pwd >>>> /var/www/html/pmwiki >>>> racoco: ls -al >>>> total 88 >>>> drwxrwxr-x 6 racoco racoco 4096 Jun 18 01:58 . >>>> drwxrwxr-x 6 root racoco 4096 Jun 18 00:10 .. >>>> -rw-r--r-- 1 racoco racoco 18 Jun 17 23:18 .htaccess >>>> drwxr-sr-x 2 racoco racoco 4096 Jun 17 23:14 local >>>> -rw-r--r-- 1 racoco racoco 1037 Jun 17 23:13 >>>> pmwiki-50.gif >>>> -rw-r--r-- 1 racoco racoco 15421 Jun 18 00:14 >>>> pmwiki-50.psd >>>> -rw-r--r-- 1 racoco racoco 38141 Jun 17 23:11 pmwiki.php >>>> drwxr-sr-x 2 racoco racoco 4096 Jun 18 01:56 scripts >>>> drwxr-sr-x 2 racoco racoco 4096 Jun 17 23:14 wikilib.d >>>> >>>> Changing the directory permissions as specified in the installation >>>> instructions, I put this URL in a web browser: >>>> >>>> http://192.168.1.69:8888/pmwiki/pmwiki.php >>>> >>>> All appeared to go well. I got he "Main/HomePage" and the wiki.d >>>> directory was created: >>>> >>>> racoco: pwd >>>> /var/www/html/pmwiki/wiki.d >>>> racoco: ls -al >>>> total 12 >>>> drwxrwsr-x 2 apache racoco 4096 Jun 18 01:58 . >>>> drwxrwxr-x 6 racoco racoco 4096 Jun 18 01:58 .. >>>> -rw-rw-r-- 1 apache racoco 0 Jun 18 09:53 .flock >>>> -rw-rw-r-- 1 apache racoco 31 Jun 18 01:58 .htaccess >>>> racoco: >>>> >>>> HOWEVER....NONE of the links on the homepage work. >>>> For example, there is a bullet entry on the home page: >>>> >>>> * What is the WikiWikiWeb? >>>> >>>> where "WikiWikiWeb" is a hyperlink to: >>>> >>>> http://192.168.1.69:8888/pmwiki/pmwiki.php/PmWiki/WikiWikiWeb >>>> >>>> When I try to navigate to it (by clicking on the hyperlink) I get >>>> the "Object Not Found" page as a result. This is true for *every* >>>> local link on the Home Page. >>>> >>>> I checked out the pmichaud.com/pmwiki site for help, but could not >>>> find any mention of this type of failure. >>>> >>>> Anyone know what I have done wrong? >>>> >>>> BTW - this tis the tar-ball i downloaded: pmwiki-0.5.3.tgz >>>> >>>> Much obliged, >>>> >>>> - rich >>>> -- >>>> rich coco >>>> rich.coco@xxxxxxxxxxx >>>> >>>> >>>> _______________________________________________ >>>> Pmwiki-users mailing list >>>> Pmwiki-users@xxxxxxxxxxxx >>>> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com >>>> >>> >>> >>> _______________________________________________ >>> Pmwiki-users mailing list >>> Pmwiki-users@xxxxxxxxxxxx >>> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com >>> >> >> >> -- >> rich coco >> rich.coco@xxxxxxxxxxx >> >> > > _______________________________________________ > Pmwiki-users mailing list > Pmwiki-users@xxxxxxxxxxxx > http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Changing Free Edit Rules: 00107, Patrick R. Michaud |
|---|---|
| Next by Date: | HTML entities in [[...]] links: 00107, John Rankin |
| Previous by Thread: | Re: broken wiki links on home page fer an instalaltioni: 00107, Patrick R. Michaud |
| Next by Thread: | Re: [pmwiki] Re: broken wiki links on home page fer an instalaltion: 00107, Patrick R. Michaud |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |