When you build and install Apache from source, start the server manually from the command line through sudo (such as when testing). You do this for two reasons:
• The standalone server uses the default HTTP port (port 80), and only the superuser can bind to Internet ports that are lower than 1024.
• Only processes owned by root can change their UID and GID as specified by Apache's User and Group directives. If you start the server under another UID, it runs with the permissions of the user starting the process.
Note that although some of the following examples show how to start the server through sudo, you should do so only for testing after building and installing Apache.
Was this article helpful?