Results 1 to 4 of 4
hi to everybody I'm new here, I write from Belgium.
I've a problem with Fedora Core 3, Apache 2.0.52 and apparently the command "mv" I gonna to show the problem:
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-02-2005 #1Just Joined!
- Join Date
- Jun 2005
- Posts
- 6
APACHE and "mv" command: serious problem: help please...
hi to everybody I'm new here, I write from Belgium.
I've a problem with Fedora Core 3, Apache 2.0.52 and apparently the command "mv" I gonna to show the problem:
I download photos with my photocamera in a directory
I move the photos with "mv" command example:
mv photo.jpg /var/www/html/photo-1.jpg
chmod 644 /var/www/html/photo-1.jpg
chown apache.apache /var/www/html/photo-1.jpg
ls -la /var/www/html/photo-1.jpg
-rw-r--r-- 1 apache apache /var/www/html/photo-1.jpg
when I try to see the photo with the browser, it gives me: error, you don't have the permissions to see the file...ok...so I control ALL permission and I've them.
But if I move the photos in the followng manner:
I download photos with my photocamera in a directory
I move the photos with "cp" command (instead of "mv") example:
cp photo.jpg /var/www/html/photo-1.jpg
chmod 644 /var/www/html/photo-1.jpg
chown apache.apache /var/www/html/photo-1.jpg
ls -la /var/www/html/photo-1.jpg
-rw-r--r-- 1 apache apache /var/www/html/photo-1.jpg
and I visit the website looking the photo, it will be visible !!!
Sincerely I don't know how to do and if there is some problem, how to solve it...do you have some suggestione please ?
I thank you very much
Tiziano
- 06-03-2005 #2Linux Engineer
- Join Date
- Feb 2005
- Posts
- 1,044
That's weird. Are you saying that you did exactly what you said, in that order, and without anything happening between times (no reboots, etc)? I can't see that there's any difference between mv-ing and cp-ing the files, given that you're changing the owner, groups and permissions exactly the same way.
- 06-03-2005 #3Just Joined!
- Join Date
- Jun 2005
- Posts
- 6
Exactly, I've xpalined the exact order of the operations, WITHOUT any kind of restarts.
Originally Posted by scm
Sincerely I'm seriously in but. Actually I've changed my script that move the files in the manner that I've described, simply deleting the "mv" lines, and sobstitute them with a "cp" line and a "rm" line...in this manner I moving the files exaclty like with "mv", but at least everithing works...butstill the problem....
- 06-06-2005 #4Just Joined!
- Join Date
- Jun 2005
- Posts
- 6
There is THE SOLUTION here below. Thank you to eric_x:
http://fedora.redhat.com/docs/selinu...ple-setup.html


Reply With Quote
