From: Laurent M. <l.m...@ch...> - 2002-03-26 22:18:56
|
Hello, Thanks you. Changing : define('USE_PATH_INFO', true); define('VIRTUAL_PATH', '/phpwiki'); Make the trick. wiki now start and allow to edit/view. Still some problem to load some page (still not found) but lot better. Looks like the initial load at the first start is not done. But, I thing there's a bug somewhere about this url. As for using PHP in CGI mode, where can I find it ? I'm pretty new in PHP. Laurent.\ ----- Original Message ----- From: "Carsten Klapp" <car...@ma...> To: "Laurent Marechal" <l.m...@ch...> Cc: "PhpWiki List" <php...@li...> Sent: Tuesday, March 26, 2002 2:13 AM Subject: Re: [Phpwiki-talk] Strange url behaviour Hi Laurent, I don't have any experience using PhpWiki on Windows, is there anyone else on the list who can help? I think you've hit on a clue with the html source you provided, the urls should look like this: | <a href="HomePage?action=PageHistory" class="wikiaction">PageHistory</a> | <a href="HomePage?action=diff" class="wikiaction">Diff</a> Question, are you using the cgi version of PHP? The only thing I can think of is that USE_PATH_INFO is being calculated incorrectly for your setup in the "Autodetect URL settings" inside config. php. Have you tried using the "pretty" url settings? index.php: define('USE_PATH_INFO', true); define('VIRTUAL_PATH', '/phpwiki'); The above might get it working, but there might still be a bug here... Carsten On Monday, March 25, 2002, at 04:49 pm, Laurent Marechal wrote: > I have checked the html generated and it looks fine. > I.e for the edit (as in my previous mail), it return the following html > code: > > <td> > <div id="actionbuttons"> > <a href="phpwiki/index.php?action=edit" class="wikiaction">Edit</a> > | <a href="phpwiki/index.php?action=PageHistory" > class="wikiaction">PageHistory</a> | <a > href="phpwiki/index.php?action=diff" class="wikiaction">Diff</a> > | <a href="phpwiki/index.php?action=Info" class="wikiaction">Info</a> > </div> > </td> > > The patch is correct. > > ----- Original Message ----- > From: Laurent Marechal > To: Carsten Klapp > Cc: PhpWiki List > Sent: Monday, March 25, 2002 10:22 PM > Subject: Re: [Phpwiki-talk] Strange url behaviour > > Hello, > > No luck with commenting the two lines. > > I started over from scratch: > - decompressing phpwiki-1.3.3.tar > - moving the whole tree under the web folder (wwwroot) under phpwiki. > - Editing the index.php. No change apart from the database section > changed to: > > $DBParams = array( > // Select the database type: > //'dbtype' => 'SQL', > 'dbtype' => 'dba', > > // For SQL based backends, specify the database as a DSN > // The most general form of a DSN looks like: > // > // phptype(dbsyntax)://username:password@protocol+hostspec/database > // > // For a MySQL database, the following should work: > // > // mysql://user:password@host/databasename > // > // FIXME: My version Pear::DB seems to be broken enough that there > // is no way to connect to a mysql server over a socket right > now. > //'dsn' => 'mysql://guest@:/var/lib/mysql/mysql.sock/test', > //'dsn' => 'mysql://guest@localhost/test', > //'dsn' => 'pgsql://localhost/test', > > // Used by all DB types: > > // prefix for filenames or table names > /* > * currently you MUST EDIT THE SQL file too (in the schemas/ > * directory because we aren't doing on the fly sql generation > * during the installation. > */ > //'prefix' => 'phpwiki_', > > // Used by 'dba' > 'directory' => "/tmp/wiki133", > //'dba_handler' => 'gdbm', // Either of 'gdbm' or 'db2' work great > for me. > //'dba_handler' => 'db2', > 'dba_handler' => 'db3', // doesn't work at all for me.... > 'timeout' => 20, > //'timeout' => 5 > ); > > - Starting the web server. > - Going to http://xxx.xxx.xxx.xxx/phpwiki/index.php > - The screen > - I click on edit and 'page not found..." > The link it try to find is : > http://xxx.xxx.xxx.xxx/phpwiki/index.php/phpwiki/index.php?action=edit > > Note the addition of /phpwiki/index.php that should not be here. > > Laurent.\ > > ----- Original Message ----- > Subject: Re: [Phpwiki-talk] Strange url behaviour > > > > > Hi Laurent, > > > > Try commenting out these two lines near the bottom of index.php by > putting > > two slashes in front: > > > > //define('SCRIPT_NAME', '/some/where/index.php'); > > > > //define('USE_PATH_INFO', false); > > > > Does this fix the url problem? > > > > > > Regarding the missing bracket problem, I double-checked the latest > version > > of index.php and the default file tests ok on my system. Are you sure > you > > are looking at the correct file on your computer? It sounds like you may > > have accidentally deleted the ); on line 232, or inserted a semicolon > > instead of a comma, or deleted a comma at the end of one of the lines > > somewhere from line 193 to 232. > > > > Carsten > |