[pmwiki-users] Editing Pmwiki *Locally* in a *Text Editor*

Sameer Kumar sameerkumar at gmail.com
Wed Mar 25 08:25:10 CDT 2009

On Sun, Mar 22, 2009 at 2:46 PM, Peter K.H. Gragert <
p.k.h.gragert at misc.utwente.nl> wrote:

> Hi,
> My way of working is as follows:
> I installed XAMPP do be able to run PmWiki locally. No Vim editing needed!
> And you see at once the effect of local editing ;-).
> I use FileZilla to up- or download, and the newest version
> can show you with color-highlighting what the difference  is ...
> So I can easily see, which files should be synchronized.

Does Filezilla have an actual "syncronize" function? I havent been able to
find it :-(

> It means, my local and remote PmWiki(s) are identical.
> By the way, my config.php contains e.g.
> if ($_SERVER['SERVER_ADDR'] == ""){
>  $ScriptUrl = 'http://localhost***';
>  $PubDirUrl = 'http://localhost***';
>  } else {
>  $ScriptUrl = 'http://***';
>  $PubDirUrl = 'http://***';
>  $PKHGjQuery = 'http://***';
>  $PageLogoUrl = "http://***";
> }
> Where the *** naturally are to be replaced by YOUR URL's, so even your
> config.php maybe up or downloaded.

Peter et al,

I followed your advise above with the XAMPP and a mirror setup of the wiki
on my laptop. I got XAMPP working alright and I can even get to the homepage
of the wiki. However, the page is unformatted and none of the links in the
wiki work...

This is exactly what I have added to my local config file (my wiki folder is
located at C:\xampp\htdocs\wiki, which is also the documentroot for apache):

if ($_SERVER['SERVER_ADDR'] == ""){
 $ScriptUrl = 'http://localhost/';
 $PubDirUrl = 'http://localhost/pub';
# $EnablePathInfo=0;
else {
$ScriptUrl = 'http://wiki.kumarsingh.com';
$PubDirUrl = 'http://wiki.kumarsingh.com/pub';

However, once loaded, all links resolve to literally:
http://localhost***/Group/Page ! (including the three asterixes).
Looking at the source of this page, I could see the following:

 <link rel='stylesheet' href='http://localhost***/skins/cpmwiki/cpmwiki.css'
type='text/css' />
  <script type="text/javascript" src="http://localhost

As you can see, it is again with the "***" after the "localhost". It makes
no difference whether I type in Localhost or in the URL bar. What
am I doing wrong? How can I get the links to display correctly?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090325/4d6069cd/attachment.html 

More information about the pmwiki-users mailing list