Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

apache2 - wwwrun cant create files? Help!

Reply
 
Thread Tools Display Modes
  #1  
Old 02-25-2005, 01:50 AM
Default apache2 - wwwrun cant create files? Help!



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!







Coenraad Loubser
Reply With Quote
Reply

Tags
apache2, create, files, wwwrun

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
Forum Jump


All times are GMT. The time now is 07:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.