<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
Update: I copied the setup as previously stated to my webserver. The titles change in that environment (000webhost).<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
</div>
<hr tabindex="-1" style="width: 98%; display: inline-block;">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size: 11pt;"><b>From:</b> pmwiki-users <pmwiki-users-bounces@pmichaud.com> on behalf of Monte Padget <m_padget@hotmail.com><br>
<b>Sent:</b> Tuesday, November 13, 2018 10:10 AM<br>
<b>To:</b> pmwiki-users@pmichaud.com<br>
<b>Subject:</b> Re: [pmwiki-users] Localhost Farm</font>
<div> </div>
</div>
<div dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<p style="margin-top: 0px; margin-bottom: 0px;">Thank you for the response, however the title for the base wiki and the farmed wiki still contain the same title.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">The steps I went through are:</p>
<p style="margin-top: 0px; margin-bottom: 0px;">To keep it simple, I created a new folder and have downloaded a fresh copy of pmwiki-2.2.110.zip.<br>
Unzipped to the new directory C:\Home\FarmTest\pmwiki. (I have changed the Home directory for XAMPP to C:\Home.)</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Created C:\Home\FarmTest\pmwiki\index.php:<br>
<?php include_once('pmwiki.php');</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Created C:\Home\FarmTest\pmwiki\local\config.php:<br>
<?php if (!defined('PmWiki')) exit();<br>
$WikiTitle = "My New Wiki";</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Created C:\Home\FarmTest\pmwiki\local\farmconfig.php:<br>
<?php if (!defined('PmWiki')) exit();<br>
$FarmPubDirUrl = 'http://localhost/FarmTest/pmwiki/pub';</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Created a new 'farmed' wiki at C:\Home\FarmTest\farmed.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
Added an index.php:<br>
<?php include_once('../pmwiki/pmwiki.php');</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Created C:\Home\FarmTest\farmed\local\config.php:<br>
<?php if (!defined('PmWiki')) exit();<br>
$WikiTitle = "New My Wiki";</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">I have done nothing extra for customization other than the title. Both sites work independently.</p>
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
</div>
<hr tabindex="-1" style="width: 98%; display: inline-block;">
<div id="x_divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size: 11pt;"><b>From:</b> pmwiki-users <pmwiki-users-bounces@pmichaud.com> on behalf of Petko Yotov <5ko@5ko.fr><br>
<b>Sent:</b> Monday, November 12, 2018 5:55 PM<br>
<b>To:</b> pmwiki-users@pmichaud.com<br>
<b>Subject:</b> Re: [pmwiki-users] Localhost Farm</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size: 11pt;">
<div class="x_PlainText">In a farm, you should have the following structure:<br>
<br>
* base directory pmwiki<br>
** file pmwiki/pmwiki.php<br>
** directory pmwiki/local<br>
*** file pmwiki/local/farmconfig.php where you set all common <br>
configuration, will be loaded before individual local/config.php files.<br>
<br>
fields: could be any directory, either (a) the same pmwiki above, or (b) <br>
a subdirectory like pmwiki/field, or (c) a separate directory on the <br>
server, for example:<br>
<br>
* (case a) directory htdocs/pmwiki (same as above)<br>
** file htdocs/pmwiki/index.php with content "<?php <br>
include_once('pmwiki.php');"<br>
** directory pmwiki/local (same as above)<br>
*** file pmwiki/local/config.php for the base wiki<br>
** directory pmwiki/pub/skins where are the skins<br>
<br>
* (case b) directory htdocs/pmwiki/field<br>
** file htdocs/pmwiki/field/index.php with content "<?php <br>
include_once('../pmwiki.php');"<br>
** directory htdocs/pmwiki/field/local<br>
*** file htdocs/pmwiki/field/local/config.php for the field<br>
** directory htdocs/pmwiki/field/pub/skins where are the skins<br>
<br>
* (case c) directory htdocs/otherfield<br>
** file htdocs/otherfield/index.php with content "<?php <br>
include_once('../pmwiki/pmwiki.php');"<br>
** directory htdocs/otherfield/local<br>
*** file htdocs/otherfield/local/config.php for the field<br>
** directory htdocs/otherfield/pub/skins where are the skins for the <br>
field<br>
<br>
("htdocs" is the document root of the XAMPP server software, may be <br>
"www" or something else)<br>
<br>
See if your installation is in one of these cases, fix it otherwise, and <br>
report if that fixed the $WikiTitle.<br>
<br>
About the skins of the fields, PmWiki expects the skins to be in a local <br>
"pub/skins/skinname" directory, not in the base <br>
"pmwiki/pub/skins/skinname" directory, or you could do some additional <br>
configuration. If you have problems with the skins, that is, if the skin <br>
appears to change but the browser fails to load the CSS files <br>
(styles/colors/icons), then you may need to set the variable $PubDirUrl <br>
in farmconfig.php.<br>
<br>
Petko<br>
<br>
<br>
On 11/11/2018 01:01, Monte Padget wrote:<br>
> I have successfully created a farm with about half a dozen wikis<br>
> running on a web server. I downloaded them and attempted to set them<br>
> up locally to test some additional Cookbooks. When I tried to run,<br>
> using XAMPP, the main Farm wiki works well, with some updates, but the<br>
> additional ones do not. The skin is will not change for the farmed<br>
> sites won't accept their different skin, nor will the page title. I<br>
> tried to create a vanilla farm and found the same issue.<br>
> <br>
> main config.php<br>
> $WikiTitle = 'Cham Wiki';<br>
> <br>
> farmconfig.php<br>
> <?php if (!defined('PmWiki')) exit();<br>
> $FarmPubDirUrl = '<a href="http://127.0.0.1/Farms/main/pub">http://127.0.0.1/Farms/main/pub</a>';<br>
> <br>
> Sub config.php<br>
> <?php if (!defined('PmWiki')) exit();<br>
>   ## Title of your farmed wiki<br>
>   $WikiTitle = 'New Wiki';<br>
> <br>
> Both wikis show 'Cham Wiki' as the title.<br>
> <br>
> Is there a conflict with XAMPP or localhost/127.0.0.1? What else am I <br>
> missing?<br>
> <br>
> Thank you.<br>
> <br>
> _______________________________________________<br>
> pmwiki-users mailing list<br>
> pmwiki-users@pmichaud.com<br>
> <a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
pmwiki-users@pmichaud.com<br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</div>
</span></font></div>
</div>
</body>
</html>