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 286007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:35:52+00:00 2026-05-12T05:35:52+00:00

I just learned to install Apache 2 on my ubuntu linux localhost for the

  • 0

I just learned to install Apache 2 on my ubuntu linux localhost for the first time. I’m making it work with PHP5.

I noticed that anytime I want to write to a file or directory, I have to chmod 777 the destination.

But from my experience working on 3rd party hosting solutions, I am generally allowed to write to files and dirs that have 755 permissions.

What can I do on my localhost so that I can write to files and dirs with 755 permissions? If the answer to this is very long, can someone send me a link to a step by step guide to do this?

  • 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-12T05:35:52+00:00Added an answer on May 12, 2026 at 5:35 am

    You probably can’t achieve this because the owner of the file is different than the user trying to perform an action on the file.

    the permissions are:

    owner-group-everyone

    rwx-rwx-rwx
    
    i.e.  111 = 7 which allows read/write and execute.  
    101 = 5 which is just read and execute
    

    you can’t write to the file because your logged in user isn’t part of the owner/group that has access to the file.

    the final 7 (i.e. rwx-rwx-111(7)) means that globally, everyone has read/write access to that file.

    how to fix this
    In Linux, you can use the chown or chgrp command to achieve your desired results.

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

Sidebar

Ask A Question

Stats

  • Questions 184k
  • Answers 184k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A CSS reset isn't necessary, but it definitely helps a… May 12, 2026 at 4:52 pm
  • Editorial Team
    Editorial Team added an answer Number 2 is better, use inheritence not composition for this… May 12, 2026 at 4:52 pm
  • Editorial Team
    Editorial Team added an answer Change your SubSet=new List<int>().AddRange(one) for SubSet=new List<int>(one) May 12, 2026 at 4:52 pm

Related Questions

I am not a DBA by any means, but being a web developer means
I have an application server which connects to a database server. I would like
I have sevevral custom actions as part of an MSI project, defined in vS2008.
I've been charged with creating a little GUI launcher app to go on a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.