Re: File permission problem Apache / PHP

From: Joe.. (margolin_2090_at_yahoo.com)
Date: 01/18/04


Date: Sun, 18 Jan 2004 20:09:59 +1100

from what i have seen on my box...

i had the same problem as i tried using user accts on the box & it would
get access denied when trying to view uploaded files through the webserver

what i did was put the files into a directory with nobody/nobody settings
rather than the main user directory

ie. the public or www directories you sometimes find on certain isps...

"Swartz" <swartz@inbox.ru> wrote in message
news:100jd34qi76q5dd@corp.supernews.com...
> Hi all.
>
> I've got here what seems to be a file permission-related problem.
> I have an older pentium mmx linux box running apache 1.3.29 + php 4.3.4.
> Apache runs as uid/gid: nobody/nobody. This webserver is for development
> purposes only. I have a paid hosting account elsewhere, but I'm trying to
> mimic the hosting environment in which the final version of the project(s)
> will reside.
>
> Now everything works flawlessly on the development server. When a user
> uploads files via ftp: the files receive user's uid/gid. However, if the
> files are created through the web, they receive apache's uid/gid
> (nobody/nobody). I have two commercial packages (ad-management and
> user-community) that come with installation scripts. Upon installing the
> scripts, the installed files are chmod-ed 644, thus any attempt to modify
> these files via ftp results in permission denial. Manually chown/chgrp-ing
> files is pain in the butt.
>
> Now my paid hosting company doesn't have this problem. Any file uploaded
via
> ftp or created through the web automatically receives my user/group
> permissions. Would someone, please, show me how to configure my server in
a
> similar fashion?
>
> TIA
>
> --
> Swartz
>
>
>



Relevant Pages

  • Re: Apache2 & MySQL
    ... I just reinstalled my LAMP development server ... installed any "recommended" packages as well. ... > understand Apache 2 well. ... > I'm doing a new Sarge installation on a box which won't be on the ...
    (Debian-User)
  • pop-forum Poplog Version 15.61 installation scripts improved
    ... There have been unfortunate interactions between Poplog and the ... The problem arose from Linux mechanisms designed to prevent ... That problem often used to cause the installation process to fail, ... Linux Poplog installation scripts for version 15.61 have now been ...
    (comp.lang.pop)
  • Re: File permission problem Apache / PHP
    ... Swartz wrote: ... > I've got here what seems to be a file permission-related problem. ... I have a paid hosting account elsewhere, ... > user-community) that come with installation scripts. ...
    (alt.os.linux.redhat)
  • Re: why so many processes listening?
    ... > commands to select which services you want to run at boot-time. ... The installation scripts for Debian packages of ...
    (Debian-User)
  • Re: SSH hackability?
    ... He was spole Dutch and the account was named 'wortel' ... > It is an interesting idea, and lots of languages to choose from. ... > referenced in several installation scripts as the way to install ... > have to start fixing/patching all of those installation scripts. ...
    (alt.os.linux.suse)