Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've heard that one could run the apache2 web-service as just a user without having root access privileges. How could I do this?

I'm not asking if I could set up Apache to run as a user (say for security reasons), but rather as a user how can I run Apache.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You configure Apache to bind to a high port (above 1024), such as 8080. Unless the admins have gone to unusual lengths to prohibit the practise, non-root users can bind to high ports with any program they wish to. The problem is that with a non-standard port, you need to explicitly point your browser to the port:

http://www.example.com:8080
share|improve this answer
1  
Having done this, it's also possible for the admins to add an iptables rule to make your server also appear on a low port such as 80. –  bobince Dec 2 '09 at 2:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.