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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:46:18+00:00 2026-05-12T13:46:18+00:00

Hi I am trying to troubleshoot why I cannot get files to upload to

  • 0

Hi I am trying to troubleshoot why I cannot get files to upload to my CentOS machine running on EC2 and think it may be a permissions problem (as I have gleamed from previous questions). How do I check what privileges my PHP installation has for writing files. The directory that I want to write files to has been created in the same folder as the PHP scripts that are trying to write the files and the rights for this folder is rwxr-xr-x. The owner of the folder is root. The owner of the PHP files trying to write the uploaded files is root also.

When the PHP file attempts to write the bytearray data that it is sent I get the following error message – file_put_contents failed to open stream: No such file or directory in …

How should i reference the directory in which I want to save the file – absolute or relative? What else am I doing wrong?

cheers

  • 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-12T13:46:19+00:00Added an answer on May 12, 2026 at 1:46 pm

    Assuming by PHP you mean web server process and assuming you’re running default apache and haven’t changed its defaults, I’d expect it to be apache user for CentOS.

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

Sidebar

Related Questions

While trying to troubleshoot a problem I'm having with a project, I noticed that
I've been trying to troubleshoot the navigation on my website. (sequoiawaste.com) The problem arises
I have a software-hardware related issue that I'm trying to troubleshoot. My app was
I'm trying to troubleshoot this problem using SQL Profiler (SQL 2008). After days of
So, I have been having a bear of a time trying to troubleshoot why
I have been trying to troubleshoot for a while now and I officially give
I am trying to troubleshoot this code and am running into a dead-end, so
I have a php script that is rather hairy and I'm trying to troubleshoot
I have inherited a poorly designed Access 2002 database. I am trying to troubleshoot
I'm in a trouble trying to fix some problem.. I have a program with

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.