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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:27:38+00:00 2026-05-24T08:27:38+00:00

I run a third party PHP application on my local AMP stack on my

  • 0

I run a third party PHP application on my local AMP stack on my Mac. I recently bought a new Mac Mini with Lion, and am trying to set it up. My previous computer was a MB air with MAMP. Now I’m using the built-in apache/php and a homebrew installed MySQL.

Here’s my problem: I have a directory with symbolic links. These symlinks are to directories, and the PHP application is checking these with is_dir().

On my Lion AMP setup, this is_dir() is failing. The same setup on my Snow Leopard MAMP is_dir() works fine with my symlinks.

Here’s where it gets more curious. If I do php -a (php interactive command line mode), and do is_dir() on the very same directories, it returns true. It only returns false in the context of an apache request. This makes me think it has something to do with the apache user (which is _www) not being able to access the symlinks. Troubleshooting this falls outside of my expertise.

Other notes:

  1. Yes, I have FollowSymLinks turned on in my apache config, and in
    fact, the directory where the symlinks in question reside is a
    symlink itself. Apache has no problem with it. Until PHP is_dir() is
    used.
  2. No, I cannot edit the PHP application and just fall back on is_link()
    and readlink().
  3. This exact same setup worked on my Snow Leopard/MAMP setup.

Any ideas?

  • 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-24T08:27:38+00:00Added an answer on May 24, 2026 at 8:27 am

    Ah saw your comment on changing them to 777 but still wondering why it’s not working.
    My solution below might not help you.

    EDIT:

    If you have access to /etc/apache2/httpd.conf,
    edit it via sudo vi /etc/apache2/httpd.conf.
    Then change these 1 of these lines or both of them

    User _www
    Group _www
    

    Here is an example of my directory listing.

    ace:remote-app ace (git::master)$ ls -al
    total 72
    drwxr-xr-x  24 ace  staff   816  7 Aug 00:24 .
    drwxr-xr-x  11 ace  staff   374  4 Aug 13:46 ..
    drwxr-xr-x   3 ace  staff   102 12 Jul 17:06 .bundle
    drwxr-xr-x  14 ace  staff   476  7 Aug 02:29 .git
    -rw-r--r--   1 ace  staff   100  1 Aug 19:20 .gitignore
    -rw-r--r--   1 ace  staff     9  1 Aug 19:20 .rspec
    drwxrwxr-x  10 ace  staff   340 14 Jul 15:58 public
    

    Now my public directory has 775 permissions, meaning owner and group have full permissions while other users can only read and execute.
    It depends if you want apache user to become ace from the default _www or the apache group to become staff from the default _www.

    Once you’ve decided on which to change, restart apache.

    /usr/sbin/apachectl graceful
    

    And your page should now have access to the directories / files.
    One thing to note is that you have to change ownership for files that have been already been written by your webpage as those have _www:_www ownership and you won’t have access to them after the restart.
    You can change their new ownership through this, -R is to make it recursive.

    sudo chown -R newapacheuser:newapachegroup <path>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to run a very simple PHP script on cron on a third-party
I need to create a desktop application that will run third party code, and
I'm trying to run some third party bash scripts from within my ruby program.
I've run into an issue where a third-party component appears to be interfering with
I've been working on an application that will allow for third-party extensions to be
I have a web server that is run by a third party. I don't
I have an application built that hits a third party company's web service in
We are installing a third party application in one of our 64-bit Windows servers.
I have a third-party application that's extensible by adding exe-files that perform dataconversion etc.
I am using a third party database. A host application runs the database, and

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.