Your Server

Why can't I upload a file to my LINUX server with apache as owner and apache as group?

I recently switched to a dedicated LINUX server am having trouble uploading files. The default upload owner and group is apache, and for some reason I can run PHP functions mkdir and chmod but NOT chgrp or chown. Ultimatly the PHP move_uploaded_file function is failing due to the apache group and owner. Any ideas how to fix this? The problem was related to safe mode being off. Once I changed the local and master values of safe mode, it worked.

Public Comments

  1. What do the permissions look like? Are you sure that the web processes are running as apache or could it be "nobody" or "www"? Set the permissions on the upload directory to 777 for a second to test (remember to set them back). If it works, it's definitely a permissions issue and I would check the user Apache runs as and check that the upload directory is at least 700
Powered by Yahoo! Answers