Menu

Can't edit pages

Help
mdmbkr
2005-06-23
2012-10-11
  • mdmbkr

    mdmbkr - 2005-06-23

    I read the other recent thread where the poster is having a similar problem, but my situation is different.

    phpwiki installed with apache2, php4, and mysql 4 on a debian testing/unstable system.

    The wiki has been upgraded from an older version of phpwiki. I installed the phpwiki package and pointed it to the database and I can view all the pages just fine. But I can't edit any of the pages or login. There are no warnings or errors that I've seen.

    Specifically, if I view a page and click the edit button, I get the normal edit page. When I click save or preview, the edit page reloads and my changes are lost. If I try to sign in, I always get returned to the sign in page with no error message.

    Specific package versions:

    phpwiki 1.3.7-3
    apache2 2.0.54-4
    php4 4.3.10-15
    mysql 4.1.11

     
    • mdmbkr

      mdmbkr - 2005-06-23

      Things seem to be working, after hours of frustration.

      1) Install phpwiki, apache2, php4 from unstable distribution
      2) Link phpwiki's apache.conf to /etc/apache2/conf.d/phpwiki.conf
      3) Comment out the mod_rewrite section in /etc/apache2/conf.d/phpwiki.conf
      4) In index.php set SCRIPT_NAME correctly (in my case /wiki/index.php)
      5) restart apache, and force-reload the HomePage

      If you set SEND_PATH_INFO to true, URLs will change from "http://host/wiki/index.php?pagename=HomePage" to "http://host/wiki/index.php/HomePage".

      If I try to enable mod_rewrite and use the rules included in the stock debian config, the wiki won't even load - I always get a 404.

      If anybody has a solution to make the URLs look like "http://host/wiki/HomePage", please share!

       
    • mdmbkr

      mdmbkr - 2005-06-23

      I happened to watch the apache access log while playing with the wiki and I noticed that requests are coming in twice. First, a request to http://sitename/wiki?pagename=Whatever , to which apache responds with a 301 (permanent redirect). Then, my browser (firefox) immediately tries to load http://sitename/wiki/?pagename=Whatever, which gets a 304 or 200.

      Instinctively I'd guess this means there's an apache config error, but I don't really know what it could be. The config is pretty much stock debian apache2, with the apache.conf from the phpwiki package linked into /etc/apache2/conf.d/ as phpwiki.conf

      As a guess, I tried commenting the mod_rewrite lines in the phpwiki apache config but that didn't change anything.

      Maybe this extra information will help.

       
      • Reini Urban

        Reini Urban - 2005-06-23

        Thanks this will help a bit.
        I also have PrettyWiki setup problems with the debian apache2.
        However stock normal index.php?pagename= or index.php/pagename urls work fine out of the box on debian.

         
    • mdmbkr

      mdmbkr - 2005-06-23

      How would I go about forcing the full urls? Right now I never see index.php in the urls, even if I cut out the mod_rewrite rules that are part of the stock debian phpwiki config.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.