NYCPHP Meetup

NYPHP.org

[nycphp-talk] Can't do PHP 'exec' for an rsync command via web server

Hans Zaunere zaunere at gmail.com
Sun Jun 24 20:25:17 EDT 2012


> # grep apache /etc/passwd
> apache:x:48:48:Apache:/var/www:/sbin/nologin
> 
> You suggesting I change apache to just another user, like this?
> apache:x:48:48:Apache:/var/www:/bin/bash

Yes, though I'd make its own home directory, /home/apache, and give
appropriate rights as needed to the doc root.

> Maybe generate apache's own set of ssh keys to access the remote server
> for rsync?

Yeah - just cleanse your input well :)

H





More information about the talk mailing list