[pmwiki-users] Upload setup produces download pmwiki.php dialogbox
Curtis, Clayton
Clayton.Curtis at va.gov
Thu Nov 8 07:36:52 CST 2007
How do your logical root (http:// mitchell.lamp.drexel.edu) and what
seems to be your physical root
(/var/www/vhosts/mitchell.lamp.drexel.edu) correspond?
Are you sure that the physical path (which $UploadDir needs) is actually
"/var/www/vhosts/mitchell.lamp.drexel.edu/httpdocs/pmwiki/uploads/"
Looks like you have a "virtual host" ... in which case creating anything
like "/httpdocs/pmwiki/uploads" (much less .../uploads/uploads/...)
would be unlikely to work
Clayton Curtis MD PhD
VHA-IHS Interagency Liaison & Informatics
VAMC (00)
150 South Huntington Avenue
Boston, MA 02130
voice: 857-364-4786 cel: 617-794-7151
fax: 781-687-3470 email: clayton.curtis at va.gov
<mailto:clayton.curtis at va.gov>
________________________________
From: pmwiki-users-bounces at pmichaud.com
[mailto:pmwiki-users-bounces at pmichaud.com] On Behalf Of Mitchell,James
Sent: Wednesday, November 07, 2007 5:46 PM
To: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] Upload setup produces download pmwiki.php
dialogbox
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/20071108/c92afbad/attachment-0001.html
More information about the pmwiki-users
mailing list