[pmwiki-users] Upload setup produces download pmwiki.php dialog box

Mitchell,James mitcheje at drexel.edu
Wed Nov 7 16:45:57 CST 2007


Thanks for the quick response.

I think I did what you suggested - Below is the way the relevant pieces
of config.php currently read, but I'm getting the following that
precedes them.  I'd note that for me the root is /httpdocs/.....

I checked and have created a path "/httpdocs/pmwiki/uploads/uploads/Main
 with the "Main" directory having 777 permissions, but that doesn't do
the trick.

 

I also tried

$UploadDir =
"/var/www/vhosts/mitchell.lamp.drexel.edu/httpdocs/pmwiki/uploads/";

 

And got back an error message again that doubled the path.


*********
PmWiki can't process your request

PmWiki needs to have a writable uploads/Main/ directory before it can
continue. You can create the directory manually by executing the
following commands on your server:

    mkdir
/var/www/vhosts/mitchell.lamp.drexel.edu/httpdocs/pmwiki/uploads/uploads
/Main
    chmod 777
/var/www/vhosts/mitchell.lamp.drexel.edu/httpdocs/pmwiki/uploads/uploads
/Main
**************


 $DefaultPasswords['admin'] = crypt('######');
 $DefaultPassword['upload'] = '';  #  Patrick Michaud 11/5/2007



##  If you want uploads enabled on your system, set $EnableUpload=1.
##  You'll also need to set a default upload password, or else set
##  passwords on individual groups and pages.  For more information
##  see PmWiki.UploadsAdmin.
 $EnableUpload = 1; 
 ## $DefaultPasswords['upload'] = crypt('sandbox'); # JEM disabled
because of setting below
## $HandleAuth['upload'] = 'edit';  # Patrick Michaud says disable
11/5/2007
## The following comes from http://pmwiki.org/wiki/PmWiki/UploadsAdmin
<https://exchangeweb.drexel.edu/exchweb/bin/redir.asp?URL=http://pmwiki.
org/wiki/PmWiki/UploadsAdmin>  to force uploads by page
## $UploadDir = "/httpdocs/pmwiki/uploads/";  # Patrick Michaud says
disable 11/5/2007
 $UploadUrlFmt = "http://mitchell.lamp.drexel.edu/pmwiki/uploads/
<https://exchangeweb.drexel.edu/exchweb/bin/redir.asp?URL=http://mitchel
l.lamp.drexel.edu/pmwiki/uploads/> ";
 ## $UploadPrefixFmt = '/$Group/$Name';  # JEM disabled because having
difficulties with uploads 11/4/2007 didn't help
 ## have been sure to make directories writeable 11/4/2007
 $UploadMaxSize = 1000000; # limit upload file size to 1 megabyte


-----Original Message-----
From: Patrick R. Michaud [mailto:pmichaud at pobox.com]
Sent: Mon 11/5/2007 1:29 PM
To: Mitchell,James
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] Upload setup produces download pmwiki.php
dialog box

On Sun, Nov 04, 2007 at 10:11:41AM -0500, Mitchell,James wrote:
>    config.php
>     $EnableUpload = 1;                     
>     $HandleAuth['upload'] = 'edit';
>     $UploadDir = "/httpdocs/pmwiki/uploads/";
>     $UploadUrlFmt = "http://mitchell.lamp.drexel.edu/pmwiki/uploads/
<https://exchangeweb.drexel.edu/exchweb/bin/redir.asp?URL=http://mitchel
l.lamp.drexel.edu/pmwiki/uploads/> ";
>     $UploadMaxSize = 1000000; # limit upload file size to 1 megabyte
>     $ScriptUrl = 'http://mitchell.lamp.drexel.edu/pmwiki/pmwiki.php';
<https://exchangeweb.drexel.edu/exchweb/bin/redir.asp?URL=http://mitchel
l.lamp.drexel.edu/pmwiki/pmwiki.php%27;> 
>     $PubDirUrl = 'http://mitchell.lamp.drexel.edu/pmwiki/pub';
<https://exchangeweb.drexel.edu/exchweb/bin/redir.asp?URL=http://mitchel
l.lamp.drexel.edu/pmwiki/pub%27;> 

Unless there's a strong reason for explicitly setting $UploadDir,
you probably want to leave it alone.  PmWiki will generally figure
out the correct setting.

You also probably don't want to set $HandleAuth['upload'] explicitly;
if you want uploading to default to edit permissions you can
more easily do this with

    $DefaultPassword['upload'] = '';

Other than that, these settings look okay to me.  Let us know if you're
still having trouble and I'll look into it a bit further.

Pm

Bottom of Form

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20071107/0cf18f90/attachment.html 


More information about the pmwiki-users mailing list