goodness0001
11-29-2002, 09:29 PM
How do i get apache to run as a non-root user?
![]() | View Full Version : running apache as a non-root user goodness0001 11-29-2002, 09:29 PM How do i get apache to run as a non-root user? daveman 11-29-2002, 09:41 PM In the httpd.conf file you specify user and group. MotleyFool 11-30-2002, 10:11 AM AFAIK, Apache wont run as root James[UH] 11-30-2002, 10:16 AM apache can run as root. Make a user called www if there isnt one all ready, or www-data. Buuut, if your running PHP, on a multi user system, whereby theres one binary for the whole system if you dont run cgi php your operating insecurely and apache can be killed by any user using PHP :) Just a tip... Mdot 11-30-2002, 12:12 PM you can install everything in your homedir and run it from there as a non-root. Simply specify port 1024+ in apache, change user to run to yours, and it will work James[UH] 11-30-2002, 12:27 PM Running an apache Instance for every user who requires a web site is not an a viable option. Could potentionally use a heck of alot of resources. |