Networking Forums

Networking Forums > Computer Networking > Linux Networking > apache2 - wwwrun cant create files? Help!

Reply
Thread Tools Display Modes

apache2 - wwwrun cant create files? Help!

 
 
Coenraad Loubser
Guest
Posts: n/a

 
      02-25-2005, 12:50 AM
Hi

I've got a standard SuSe9.1 setup with Apache2 - I've got a little script
that calls wget to download an image and then process it. The problem is,
wget says it doesnt have permission to write ANYWHERE, regardless of the
user or permissions I set on whatever path I give it!

Can anyone explain to me what is happening and why... and what I should do.

I've set the user to wwwrun, and chmod a+rwx everything, on several paths,
and pointed wget to write there, only to get the exact same result.

Curiously, wwwrun cant list my /srv/www/htdocs directory.. HMM??/ Even if i
give it permission?
How and why?


Probably my perl that is lacking, too

#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print `pwd`;
print `whoami`;
print `ls /var/lib/wwwrun`;
print `wget http://www.weathersa.co.za/weathersa/RadarMaps/CT.gif ~/ -v -o
/dev/
#print `convert -crop 263x238+177+240 -resize 300% /srv/www/htdocs/CT.gif
/var/l
print 'it is done!';


--------- output:
/srv/www/cgi-bin
wwwrun
--03:47:06-- http://www.weathersa.co.za/weathersa/RadarMaps/CT.gif
=> `CT.gif'
Resolving www.weathersa.co.za... 196.25.43.195
Connecting to www.weathersa.co.za[196.25.43.195]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26,225 [image/gif]
CT.gif: Permission denied

Cannot write to `CT.gif' (Permission denied).
/var/lib/wwwrun/: Unsupported scheme.

FINISHED --03:47:06--
Downloaded: 0 bytes in 0 files
it is done!





 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 ACL Lars Linux Networking 0 06-18-2008 01:56 AM
Programs unable to create files on share after SP2 DK Windows Networking 2 09-09-2007 08:04 AM
NAT and Apache2 access_log =?ISO-8859-1?Q?Lutz_Br=F6del?= Linux Networking 6 11-01-2005 12:28 PM
mod_proxy on apache2 Madhusudan Singh Linux Networking 0 03-27-2005 02:02 AM
apache2&php taavi Linux Networking 0 07-13-2004 09:33 PM



1 2 3 4 5 6 7 8 9 10 11