Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6604181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:07:11+00:00 2026-05-25T19:07:11+00:00

I am using Arch Linux on a web development machine, and have a multi-vhost

  • 0

I am using Arch Linux on a web development machine, and have a multi-vhost setup with the root directories of each vhost under:

/var/www/vhosts

Apache2 is using the user/group: http/http

If I setup the files to be owned by my user and the http group then apache cannot access them. If I setup the files to be owned by http and the users group then I have no access.

I am trying to move from a Windows development machine to Linux since right now I am doing PHP MySQL work.

How can I get around this issue so that my user can create and edit files without needing to worry about breaking access for apache each time?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:07:12+00:00Added an answer on May 25, 2026 at 7:07 pm

    I use Arch as well quite a lot and instead like the approach of using a limited user’s home directory instead of /var/www/vhosts. For instance, you could have a user named sites, ensure that they’re not apart of any admin groups and then have the sites in /home/sites/site1, /home/sites/site2, etc… Then make sure that those directories are 644 and files 75:

    find . -type f -print0 | xargs -0 chmod 0664 # For files
    find . -type d -print0 | xargs -0 chmod 0755 # For directories
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Apache 2.2.21 with mod_wsgi on a machine running arch linux. I
I am using Arch linux and I need to create virtual serial port on
I am using embedded-linux for device which has Arch ARMv5 Speed 266MHZ, vfpu and
I am using following versions of Ruby and Rails on arch linux [hardik@sunshine: kandibank
I'm using GNU/Linux distro (Arch, if that's relevant), Emacs v23.2.1, ESS v5.9 and AucTeX
I am using Arch Linux . I want to do the same thing like
I'm using Python 2.7.2 and wxPython 2.8.12.1 on Arch Linux x86_64. I'd like to
So I'm running netbeans 7.0-1 using Arch Linux. I'm running xming for my x-server.
I'm using Arch Linux (Rolling Release Distro) and after the system upgrade I'm not
I'm using Python 3.2.1 in Arch Linux x86_64. This one is really driving me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.