0

I have installed apache from the source with:prefix=/usr sysconfdir=/etc/httpd/ localstatedir=/var.

useradd -g apache -d /usr/apache -s /sbin/nologin apache
2
  • When installing things from source, generally you should use a prefix of /usr/local, to keep things separate from software provided by your OS.
    – jordanm
    Commented Jan 13, 2013 at 6:33
  • Yes, I know. This is a test, I am learning how to make distribution packages.
    – fdisk
    Commented Jan 13, 2013 at 7:21

1 Answer 1

1

If you wonder about the home directory, it should not matter that much, because it will probably not change the behavior of apache at all.

On Debian, the default homedir for the user running apache is /var/www (which is the default DocumentRoot).

Also, if you're on a Debian-based distrib, you should prefer using adduser instead of useradd which is quite low level.

1
  • I am pretty sure adduser is a symlink to useradd in RHEL. The upstream for adduser in Debian, is actually Debian, so I would consider it Debian-specific.
    – jordanm
    Commented Jan 13, 2013 at 6:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .