+ Reply to Thread
Results 1 to 5 of 5

Thread: Setting group to Apache for a directory?

  1. #1
    Junior Member
    Join Date
    Feb 2008
    Location
    Southern CA, USA
    Posts
    6

    Question Setting group to Apache for a directory?

    The function I'm using to check whether or not the group exists is:

    PHP Code:
    print_r(posix_getgrnam('apache')); 
    But I didn't get anything. Then I replaced "apache" with "Apache" and still got nothing.

    So what is the name of this group? Am I even doing it right?

  2. #2
    Ray
    Ray is offline
    I can't do everything.
    Join Date
    Jun 2004
    Location
    Plymouth, WI
    Posts
    134

    Default

    Hello,

    What type of account do you have? It will depend on what OS and control panel you have as well.
    Ray Tetzloff


  3. #3
    Junior Member
    Join Date
    Feb 2008
    Location
    Southern CA, USA
    Posts
    6

    Default

    Account? If you mean plan, I have Basic. And the control panel is Hsphere. And the OS I use is Mac OS X (but if you meant the OS the web server is on, I would think it's on Linux).

  4. #4
    Ray
    Ray is offline
    I can't do everything.
    Join Date
    Jun 2004
    Location
    Plymouth, WI
    Posts
    134

    Default

    On shared hosting servers (including Basic plan and any other share hosting plan), the Apache user and group are "httpd".
    Ray Tetzloff


  5. #5
    Junior Member
    Join Date
    Feb 2008
    Location
    Southern CA, USA
    Posts
    6

    Default

    All right. Thank you very much!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts