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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:53:31+00:00 2026-05-10T17:53:31+00:00

I chmod’ed the directory to 777, same with the directory contents. Still, I get

  • 0

I chmod’ed the directory to 777, same with the directory contents. Still, I get a ‘permission denied’ error. Does PHP throw this error if apache is not the group/owner, regardless of the file permissions? Here’s the call that’s failing:

rename('/correct/path/to/dir/1', '/correct/path/to/dir/2'); 
  • 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. 2026-05-10T17:53:31+00:00Added an answer on May 10, 2026 at 5:53 pm

    You’re editing the higher level directory, so the PHP user needs to have write access to that directory.

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

Sidebar

Related Questions

After years of using chmod 777 to solve PHP write permission woes, I want
I can fix the below error by doing chmod -R 777 current (as root).
I am creating a directory and I am getting the error Warning: chmod() [function.chmod]:
I got stuck when chmod a file. At the bottom of this page ,about
I often read articles saying something along the lines of chmod 777 is bad!
I have inherited some code: Process p = new ProcessBuilder(/bin/chmod, 777, path).start(); p.waitFor(); Basically,
I am trying to achieve the same as sudo chmod 755 myfile would. I
chmod -R 775 *.cgi only changes permissions on the files in the current directory,
I am trying to use os.chmod to set directory permissions to ensure the webserver
I have tried this: echo substr(sprintf('%o', fileperms($mdbFilename)), -4).'<br />'; echo chmod($mdbFilename, 0777); echo substr(sprintf('%o',

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.