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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:13:01+00:00 2026-05-28T18:13:01+00:00

Running a VM with CentOS 5.7 with typical httpd install. I’m trying to write

  • 0

Running a VM with CentOS 5.7 with typical httpd install.

I’m trying to write a file to a folder outside of /var/www/html, lets say in /var/somedir

  • I’ve chmoded somedir with 777
  • I chowned it to apache:apache (root:apache didn’t work either)
  • PHP’s safe_mode is off
  • PHP’s doc_root is empty (i.e. doc_root =)

I can’t use rename() to move something out of the doc root and I can’t use fwrite() to create a file outside of it either.

Just to verify, I exec’d whoami from a php file and it echo’d/returned apache when accessed in the browser.

I think I’ve hit google with about 200 searchs about this so far and I guess I’m still missing something.

  • 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-28T18:13:02+00:00Added an answer on May 28, 2026 at 6:13 pm

    Turns out that selinux was in fact enabled although my “linux guy” assured me that it was not!

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

Sidebar

Related Questions

I am trying to install MediaCore on my machine running CentOS as soon as
I'm running CentOS 5, and am trying to get a django application working with
I'm running a django project on Centos 5.4 and serving it with httpd/mod_wsgi. I
I have a server with KVM. Running Centos 5. Can you show me install
I'm running CentOS 5.5 and I want to install the Haskell Platform there. According
I am running centos and I have around 1,300 files in a folder that
I'm trying to set up a virtual machine (vmware workstation 8.0.2) running CentOS 6.2
I'm working on my dedicated server running CentOS. I found out that one of
We're running a CentOS server with a lot of MySql databases atm, what I
I just copied my magento site over to a local server running CentOS 5.4.

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.