How do I run Apache as non-root user?

How do I run Apache as non-root user?

1 Answer

  1. Download source.
  2. Decompress it.
  3. cd to httpd source directory.
  4. ./configure –prefix=/home/youruser/httpd -otheroptionshere.
  5. make install.

What user does apache2 run as?

Apache user is typically the user that the apache httpd server uses when running. It uses this “apache” user to avoid having to use a “human” user, and to avoid having to run as root.

What is SuEXEC log?

SuEXEC is a feature of Apache that allows CGI scripts to run under your Pair Networks username and not as the default user “nobody.” suEXEC can protect your scripts and any files they create from other customers on your server when used properly.

What user does xampp run as?

user daemon
Xampp runs on the user daemon and group daemon. The user jos needs to modify an installed theme. I can only do that by opening the files as su.

Is it possible to run Apache as any user?

You can run Apache as any user. Just make sure that it is set up to only use allowed resources (directories, files and most importantly listening on a non privileged port). To have it appear on HTTP’s standard port 80 (which is priviledged) you will have to setup, as root a redirection to your real Apache server.

Is there a way to run Apache server without using sudo?

I’d like to know if it is possible for non-root user on linux (i’m using openSUSE) to run apache without using sudo command. Take into account that the user is in the same group as apache (wwwrun). Thanks in advance.

Is there a way to start / restart / stop Apache server on?

Now the httpdctrl is owned by root, and setuid will run it as root. IMPORTANT: Make sure the start/stop script and all parent dirs are owned by root as well. Also remove write access to files and dirs for ‘other’. Basically, you don’t want someone to be able to edit or change the dirs/files that are executed with root.