Informatik.hu wrote: > I would like use lighttpd with fastcgi-php. Fastcgi-php connects to > php5-cgi on 127.0.0.1:521. > I can start "php5-cgi -b 127.0.0.1:521" with root, but i would like > to run in with another user, like www-data.
Ports below 1024 are available only to the root user. In order to use them with a non-root user you would need to pick a port above 1024. > Exactly i want to run multiple php5-cgi with multiple user > (different ports per virtual hosts). > > When i try to start php5-cgi with a normal user, i got the > > "Cannot bind/listen socket - [13] Permission denied. Couldn't create > FastCGI listen socket on port 127.0.0.1:522" Correct. To use port 521 or 522 it needs to be opened by the root user. This is a security restriction. > How can i star php5-cgi with a normal, or reduced user? The best solution would be to pick a port above 1024. Bbo
signature.asc
Description: Digital signature