LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 09-02-2005, 11:17 AM   #1
Martin Fischer
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Unhappy Apache2 upload fileperms problem


Hi all

How can I define, what file perms my uploaded files with php/apache2 get? Right now it's 600 with user/group apache.apachegroup (sorry, this forum doesn't let me write the true names...). This way uploaded files are not even accessable to the domain-user.

Under apache 1.3 it worked correctly, but with apache 2.0.48 it goes wrong.

My system: Suse Linux 9.0 - Apache 2.0.48, PHP 4.3.4

Thanks for any hints!

Kind regards
Martin Fischer
 
Old 09-03-2005, 04:57 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 50
I'm not sure I understand what you're asking. So you have a PHP script, and it allows you to upload a file and save it on the server. But the files it creates have permission 600 which are not accessible to other people. Is this correct?

I'm not sure how to fix this. One thing I can suggest is that in the PHP script do something like
Code:
chmod('somefile', 0644);
to change the permission to something acceptable
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
proftp upload problem jelgavchik Linux - Networking 2 03-23-2005 05:04 PM
Debian Upload problem LSF Linux - Software 3 07-08-2004 09:06 PM
gFTP upload problem FreakFish Linux - Software 1 04-27-2004 10:10 PM
Upload Files in Apache2.... vous Linux - Software 0 02-03-2004 08:51 AM
File upload problem saravanan1979 Linux - Newbie 4 03-29-2002 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration