|
||||||||
|
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|
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 |
![]() |
| Tags |
| apache2, create, files, wwwrun |
| Thread Tools | |
| Display Modes | |
|
|