Re: [users@httpd] Unable to Upload files through my application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have the following things already present in my httpd.conf:

LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so

#for the Document Root directory
 DAV On

<IfModule mod_dav_fs.c>
# Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

In the error log i get the following:
[Thu Aug 04 22:44:53 2005] [error] [client 127.0.0.1] Unable to PUT new contents for /mohit/howlinuxworks_ch3.pdf.  [403, #0]
[Thu Aug 04 22:44:53 2005] [error] [client 127.0.0.1] (13)Permission denied: An error occurred while opening a resource.  [500, #0]
[Thu Aug 04 22:52:18 2005] [error] [client 127.0.0.1] Unable to PUT new contents for /mohit/howlinuxworks_ch3.pdf.  [403, #0]
[Thu Aug 04 22:52:18 2005] [error] [client 127.0.0.1] (13)Permission denied: An error occurred while opening a resource.  [500, #0]
[Thu Aug 04 22:54:08 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/mohit/auug97.pdf
[Thu Aug 04 22:54:09 2005] [error] [client 127.0.0.1] Unable to PUT new contents for /mohit/auug97.pdf.  [403, #0]
[Thu Aug 04 22:54:09 2005] [error] [client 127.0.0.1] (13)Permission denied: An error occurred while opening a resource.  [500, #0]

Thanks,
Mohit

On 8/5/05, Boyle Owen <Owen.Boyle@xxxxxxx> wrote:
Plain text please...

Although the PUT method is defined in the HTTP RFC, it is not implemented in the core apache. I think you need mod_webdav to enable this function.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.

-----Original Message-----
From: Mohit Kumar [mailto: mohit.kumar@xxxxxxxxx]
Sent: Freitag, 5. August 2005 11:52
To: users@xxxxxxxxxxxxxxxx
Subject: [users@httpd] Unable to Upload files through my application


Hi All,

I am sorry if this quesiton has been asked before, but being a newbie to Apache and after an exhaustive search on the net, I have decided to post here.

I have configured Apache as mentioned in httpd.conf. And have made my server root as /var/www/html/t.

Now when I type http://localhost/mohit/ I get a list of files displayed. The problem comes when I try to upload a file.
I have an application which uses CURL (libcurl) libraries to perform an HTTP PUT at this location. This application runs as user (say mohit).
However, I have been unable to upload the file this way. There are few things that I can think of:
1. /var/www/html/mohit is chowned by root and hence the application is not able to do so.
2. Some special things need to be done to enable uploading?

Following is the essential part of my httpd.conf:

<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
<Limit POST PUT GET>
     order allow,deny
     Allow from all
  </Limit>
</Directory>

Any kind of help would be appreciable.

Thanks,
Mohit
Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen- bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature. It is not related to the exchange or business activities of the SWX Group. Le présent e-mail est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX.


This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux