Find the answer to your Linux question:
Results 1 to 2 of 2
I just got a new server dedicated running php5 and SUExec. I understand the concept. INstead of running as "nobody", PHP scripts run as the user of that website. This ...
  1. #1
    Just Joined!
    Join Date
    Apr 2003
    Posts
    52

    using symlinks with SuExec - URGENT

    I just got a new server dedicated running php5 and SUExec. I understand the concept. INstead of running as "nobody", PHP scripts run as the user of that website. This also means I don't have to have some special directory where I set permissions to 775 or 770 with group=nobody etc just to upload files via PHP .. since PHP will upload files just as the user would using FTP. OK, great so far, and more security, I'm all for it.

    THE PROBLEM
    ----------------------------------------------
    .. is that I have made extensive use of symlinks in my coding prior to this, and these symlinks point to a repository folder on a "master" site .. and PHP no longer has permission to open them.

    I know others are facing this, what is the most elegant solution to this problem? Please and thank you.

    Samuel Fullman

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    The containing directory and linked files have to have the correct ownership+permissions as well as the links to them.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...