PmWiki.AcceptPathInfo 2.5 KB

12345678910
  1. version=pmwiki-0.6.beta17
  2. newline=²
  3. text=One of the most challenging parts of installation for the "ordinary user" is likely to be getting Apache to accept path info: step 4 of the [[http://www.pmichaud.com/wiki/PmWiki/Installation installation instructions]]. I'm going to try to say a few words about this matter for the benefit of those who aren't so familiar with Apache. ²²First, you may not even need to do this step. If you're not familiar with Apache configuration, just skip it. You will know that you need to make some changes here if you can't access [=http://yoursite.com/pmwiki/pmwiki.php/Main/HomePage=] but can access [=http://yoursite.com/pmwiki/pmwiki.php=]. In particular, you will get an error saying the relevant page can't be found. The reason is that there isn't really such a page. @@pmwiki.php@@ is a file, not a directory, and what follows is really intended as information to be passed to this script. But by default, the newer versions of Apache often prevent information from being passed in that way. So we need to tell Apache to allow it.²²Each directory accessible by Apache may contain a @@.htaccess@@ file in which configuration options specific to that directory may be set. The file is so-called because one thing it can be used to do (and often is used to do) is control access, perhaps by requiring a password. But it can also contain other options, and one of these is AcceptPathInfo. All you need to do here may be to create a @@.htaccess@@ file if one does not already exist and include the line²: :[=AcceptPathInfo On=]²If that works, great.²²But it may not work, because the main Apache configuration file (usually ''httpd.conf'' and located somewhere in ''/etc/''), often defaults to preventing ''any'' options from being changed (or "overridden") in @@.htaccess@@ files. So you may need to make a change to the main configuration file to get the "override" to work. Open the Apache configuration file in your favorite editor and add the following lines at the end:²:: :<Directory /var/www/html/pmwiki/>²:: :[=AllowOverride FileInfo=]²:: :</Directory>²Obviously, you should use whatever directory is appropriate to your installation. And you can add them wherever, really, but it's always a good idea to keep your customizations in one place. In any event, that will allow the override you need. ²²(Added by mailto:heck@fas.harvard.edu.)²²
  4. time=1077033124
  5. post= Save
  6. host=24.1.44.14
  7. agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
  8. rev=11
  9. name=PmWiki.AcceptPathInfo
  10. author=Pm