Thursday, July 26, 2012

How to configure Apache Server with port less than 1024?

Goal: Apache Server runs on a http port and needs to be started/stopped as non-root user if Apache Server port is greater than 1024. How to make Apache server run as root user if port is less than 1024 in linux environment?

Solution:
  1. Login as root user.
  2. Goto Apache directory say $ORACLE_HOME/Apache/Apache/bin
  3. Change ownership of apachectl as root chown root .apachectl
  4. Change permission as chmod 6750 .apachectl