此内容没有您所选择的语言版本。
2.5.6. 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
./.postinstall
Check to see if a user called
apache
exists on the system by running the following command:
id apache
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 2> /dev/null || : /usr/sbin/useradd -c "Apache" -u 48 \ -s /sbin/nologin -r -d %{contentdir} apache 2> /dev/null || :
/usr/sbin/groupadd -g 91 -r apache 2> /dev/null || :
/usr/sbin/useradd -c "Apache" -u 48 \ -s /sbin/nologin -r -d %{contentdir} apache 2> /dev/null || :
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
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"
su -m -c "./sbin/apachectl start"
Stop the HTTP server by executing:
su -m -c "./sbin/apachectl stop"
su -m -c "./sbin/apachectl stop"