[Pmwiki-users] broken wiki links on home page fer an instalaltion

Patrick R. Michaud pmichaud at pobox.com
Wed Jun 18 16:18:45 CDT 2003


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.

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 at verizon.net
> >>
> >>
> >>_______________________________________________
> >>Pmwiki-users mailing list
> >>Pmwiki-users at pmichaud.com
> >>http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
> >>
> >
> >
> >_______________________________________________
> >Pmwiki-users mailing list
> >Pmwiki-users at pmichaud.com
> >http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
> >
> 
> 
> -- 
> rich coco
> rich.coco at verizon.net
> 
> 




More information about the pmwiki-users mailing list