SourceForge logo
SourceForge logo
Menu

phpwiki-talk

From: otrotabi <jos...@te...> - 2008年06月30日 23:13:37
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 ?
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. 
Thanks for your help.
Regards 
-- 
View this message in context: http://www.nabble.com/upload-in-windows-tp18206215p18206215.html
Sent from the phpwiki-talk mailing list archive at Nabble.com.
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/
From: otrotabi <jos...@te...> - 2008年07月06日 15:26:41
Dear Reini
I added the following line con config.ini in /phpwiki/config
UPLOAD_FILE_PATH=C:/program files/Apache
Group/Apache2/htdocs/phpwiki/uploads/, and also tried the same between "". I
still get the same errors. 
I also tried manually adding a slash into upload.php, as suggested in a post
by Zac Elston. It looks line Zac had the same problems I do, but his August
2 2007 post seems to have changed its topic and I don ́t know how this ended.
Reini Urban wrote:
> 
> 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/
> 
> 
-- 
View this message in context: http://www.nabble.com/upload-in-windows-tp18206215p18303136.html
Sent from the phpwiki-talk mailing list archive at Nabble.com.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /