[pmwiki-users] strange behavior after migration to php 5.4 (and php 5.3 fastcgi)
Petko Yotov
5ko at 5ko.fr
Tue Oct 7 23:37:16 CDT 2014
There is probably no $HTTP_SERVER_VARS in recent PHP versions, try
$_SERVER['DOCUMENT_ROOT'] instead.
Petko
On 07.10.2014 17:39, lists at basel-inside.ch wrote:
> I made now a "plain" test for upload testing:
> from a sub path of document root.
> I didn't make a test yet, wether it would work on the top level dir.
>
> is there a problem in recognition of a base path?
>
> structure of Installation
> /pm
> /pm/applications
> /pm-sources/ <= without farmconfig and minimal config.php
>
>
> http://carpet-art.ch/pm/pm-sources/index.php?n=Main.HomePage
> http://carpet-art.ch/pm/pm-sources/pmwiki.php?n=Main.HomePage (same
> results)
> PHP Version 5.4.32
> pmwiki-2.2.65
>
> paths variables: $UploadDir,$UploadDir (seem ok)
> --/pm/pm-sources/uploads (there was an error, but still doesn't work)
> --http://carpet-art.ch/pm/pm-sources/uploads
> Warning: mkdir(): Permission denied in
> /home/httpd/vhosts/carpet-art.ch/httpdocs/pm/pm-sources/pmwiki.php on
> line 586
> PmWiki can't process your request
>
> PmWiki needs to have a writable /pm/ directory before it can continue.
> You can create the directory manually by executing the following
> commands on your server:
>
> mkdir //pm <---- strange??
> chmod 777 //pm
> Then, reload this page.
>
>
> => is this a correct hint? I remember to just copy the commands.
> mkdir //pm
> chmod 777 //pm
> ==================================================================
>
> I for year's I never had problems with attach, when
> $UploadDir, $UploadUrlFmt was set correctly.
>
> ------------------------------------------------------------------------
>
> regards
> Patrick Ogay
>
>
>
> config.php
> *********
> <?php if (!defined('PmWiki')) exit();
> ## unsually not needed im source installation path
> ##
> ## farmconfig renamed, config.php created for minimal config
> ## attach/upload test
>
> $UpPath = "/pm/pm-sources";
> # activate upload for attach, and deblock
> $EnableUpload = 1;
> $UploadPermAdd = 0;
> $DefaultPasswords['upload'] = crypt('secret');
>
> $UploadDir = $HTTP_SERVER_VARS['DOCUMENT_ROOT'].$UpPath."/uploads";
> $UploadUrlFmt = "http://".$_SERVER["HTTP_HOST"].$UpPath."/uploads";
>
> echo ("--".$UploadDir."<br/>");
> echo ("--".$UploadUrlFmt);
>
> ----
> I guess I have to make an other test with pmwiki 2.2.0.beta 68
> casa-debellis.ch (which runs at the moment php 5.3 but "o.k" "without
> login")
>
More information about the pmwiki-users
mailing list