[pmwiki-users] install problems -- cgi-bin sneaks into pmwiki urls

viki.veeks at gmail.com viki.veeks at gmail.com
Fri Dec 17 16:36:15 CST 2010



On 12/17/2010 05:27 PM, Patrick R. Michaud wrote:
> On Fri, Dec 17, 2010 at 02:49:50PM +0100, viki.veeks at gmail.com wrote:
>> Hello.
>>
>> I'm having some problems installing pmwiki on the `production'
>> server. I'm pretty sure I did a test-install some weeks ago, so it
>> may be that I'm missing something simple :-)
>>
>> Any hints are appreciated.
>> Help me get this beautiful software onto that server!
>>
>> I'm trying to install pmwiki in a `subsite' subdirectory of the
>> `htdocs' directory, so that my subsite would be
>> http://www.mywebsite.org/mysubsite
>>
>> During the install run of pmwiki.php, I get a 500 internal server
>> error; and the url in the status bar becomes:
>> http://www.mywebsite.org/cgi-bin/php?n=Main.HomePage
>
> I'm guessing that PHP isn't providing the correct paths to PmWiki.
> You should probably start by manually setting the value of $ScriptUrl
> in local/config.php to the url you expect PmWiki to be at.  For example:
>
>      $ScriptUrl = 'http://mywebsite.org/mysubsite/pmwiki.php';
>
> This will tell PmWiki to absolutely use this value as the base url
> when constructing other paths within PmWiki links.

yes!
it is about setting both $ScriptUrl and $PubDirUrl to the appropriate 
values before running pmwiki.php :-)

$ScriptUrl = 'http://www.mywebsite.org/mysubsite/pmwiki.php';
$PubDirUrl = 'http://www.mywebsite.org/mysubsite/pub';

thank you
-i



More information about the pmwiki-users mailing list