Re: upload in windows

Reini Urban <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
otrotabi schrieb:
> Hi, I need help on uploading files for the following configuration:
> 
> Windows XP/Apache 2.0.63/PHP 5.1.2/phpwiki 1.3
> 
> I get the following message: Error uploading "file" (any files so far), and
> the following PHP warning at the bottom:
> 
> lib\pear\Cache\Container\file.php:119 Warning[2]: mkdir() [ function.mkdir
> function.mkdir ]: No such file or directory 
> 
> I thought it meant the directory could not be created, but there is an
> "uploads" and an "uploadsMyUserName" directory created under phpwiki
> directory. 
> 
> Any hints ?

Yes. You encountered the typical Upload missing ending slash problem.
Search the mailinglist for adhoc solutions.
I would set the UPLOAD_FILE_PATH in config.ini, with ending slash.

UPLOAD_FILE_PATH = /var/www/htdocs/uploads/

> Also I´m having some problems regarding user authentication, I have tried
> the Apache httpasswd aproach but it just does not work, I read the config
> file several times but I can´t figure out what I´m missing here, I´m not a
> php guru but I know about Apache passwords and how to configure them. 

There are two options here:
First, let apache do the auth.
phpwiki is just in one apache realm and does no auth at all, it just 
gets the userid from the webserver headers.
This is called:
USER_AUTH_ORDER = "HttpAuth"

The second is via a htpasswd alike file.
USER_AUTH_ORDER = "File"
AUTH_USER_FILE = /etc/httpd/.htpasswd

Typically with
AUTH_USER_FILE_STORABLE = false
-- 
Reini Urban
http://phpwiki.org/  http://murbreak.at/

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Phpwiki-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpwiki-talk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.