Configuring Apache Config files /etc/apache/* Configuration Information The main configuration file is called httpd.conf. See for detailed instructions on customizing your Apache HTTP server. To automate the running of Apache, use the following command to create the init.d script: cat > /etc/rc.d/init.d/apache << "EOF" #!/bin/bash source /etc/sysconfig/rc source $rc_functions case "$1" in start) echo "Starting Apache daemon..." /usr/sbin/apachectl -k start evaluate_retval ;; stop) echo "Stopping Apache daemon..." /usr/sbin/apachectl -k stop evaluate_retval ;; restart) echo "Restarting Apache daemon..." /usr/sbin/apachectl -k restart evaluate_retval ;; status) statusproc /usr/sbin/httpd ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac EOF chmod 755 /etc/rc.d/init.d/apache Create the symbolic links to this file in the relevant rc.d directory with the following commands: cd /etc/rc.d/init.d && ln -sf ../init.d/apache ../rc0.d/K28apache && ln -sf ../init.d/apache ../rc1.d/K28apache && ln -sf ../init.d/apache ../rc2.d/K28apache && ln -sf ../init.d/apache ../rc3.d/S32apache && ln -sf ../init.d/apache ../rc4.d/S32apache && ln -sf ../init.d/apache ../rc5.d/S32apache && ln -sf ../init.d/apache ../rc6.d/K28apache