From: Reini U. <ru...@x-...> - 2008-07-04 16:49:52
|
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/ |