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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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!
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.
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.
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.