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

  • SEARCH
  • Home
  • 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 7398241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:50:47+00:00 2026-05-29T03:50:47+00:00

I have not used phing before, but would like to use it to automate

  • 0

I have not used phing before, but would like to use it to automate my deployment process. Currently I log in under myuser, Apache runs under www-data. All my application code is owned by myuser, but other (cache) files are generated by www-data.

I currently solve this by using sudo to remove these files. I would like to keep the application code owned by myuser, because it’s easier to access the files via ssh. I wouldn’t like phing to run with super powers, because at this moment I don’t trust this automated tool yet.

What is the best practice to use phing with limited file permissions?

  • 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-29T03:50:47+00:00Added an answer on May 29, 2026 at 3:50 am

    I had the same issue. Apache is running as www-data.www.data and files created by the webserver are 644 and directories 755.

    I solved it by:

    1. adding the user running phing to the www-data group
    2. adding umask 002 to the /etc/apache2/envvar file, see link

    Phing is now able to remove the directories and files created by the apache

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have not used valgrind before, but I need to use it to check
I have not used ASP.NET Membership and Role Providers before but looking for a
I have not used MAC OSX before, but I wanted to buy one for
I have not used many lambda expressions before and I ran into a case
Disclaimer: I have not used RoR, and I have not generated tests. But, I
I have not used Junit before and have not done unit testing automatically. Scenario:
I am long time user of LINQ2SQL, but have not used the Entity Framework
While integrating a Django app I have not used before, I found two different
I have not used SVN so far. Why would a Web site (such as
I have not used jquery much yet and not very familiar with it. Trying

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.