PHP scripts run under their owner and not under the apache user - HowTo?

Discussion in 'Apache' started by lemon.it, Nov 8, 2006.

  1. #1
    Hi folks!

    I've set up an Apache2 webserver mit mod_php. Then I have given a little webspace to a friend of mine configuring a vhost.conf for his domain. His homedir and all ftp-uploaded files have the owner user:group while the webserver runs as apache:apache.
    The problem is now that when a php script of my friend creates something in his homedir, the owner of this new created item is the apache webserver and not the homedir-user.
    How could I change that? I've read something about seExec, CGI, fastCGI, suPHP... but I didn't yet understand which one will the best for me. Maybe someone of you can help me a bit.

    The goal is to have always all files in a homedir owned by the owner of the homedir and not by the apache webserver.

    Greetings from Italy!

    Lemon.it
     
    lemon.it, Nov 8, 2006 IP