2.4.4. Running the HTTP Server

After you have extracted the Enterprise Web Server ZIP file, change into the httpd directory and run the post install script by executing the following:
./.postinstall
Check to see if a user called apache exists on the system by running the following command:
id apache
If the user does not exist then it will need to be added, along with the appropriate usergroup. In order to achieve this, execute the following:
/usr/sbin/groupadd -g 91 -r apache
/usr/sbin/useradd -c "Apache" -u 48 -s /bin/sh -r  apache
Once this is completed, if the apache user will be running the httpd service, then the ownership of the HTTP directories will need to be changed to reflect this:
chown -R apache:apache httpd
To test that the above commands have been successful, check that the apache user has execution permission to the HTTP server install path.
Start the HTTP server by changing to the httpd directory and executing:
su -m -c "./sbin/apachectl start"
Stop the HTTP server by executing:
su -m -c "./sbin/apachectl stop"