Advice 1: How to start Apache

Apache HTTP server is a free web server, it is cross-platform and has support for such OS as Linux, Mac OS, Windows, BSD.
How to start Apache
You will need
  • - computer with Internet access.
Instruction
1
Click on the link http://apache.rinet.ru/dist/httpd/binaries/win32/ and download the installation package to install the Apache server. Run the installation file of the Apache web server, the screen will display the license agreement window, accept it by clicking the check box in the appropriate field, go to the next page.
2
Next, enter the server information: the server domain name, e-mail address administrator name of the server. If you install the server on your local computer, as names for the server use localhost in the bottom of the window, select the port number. On this port the server will accept requests, set the value to 80 or 8080 to continue running the Apache server, click "Next".
3
Select the method of installation of Apache: standard or custom. Then in the next window select the folder into which you will install the server. You will see a message ready to be installed.
4
Click the Install button copies the server files, then it will be launched automatically. Next, enter in the browser window http://localhost/ or http://127.0.0.1/opens server page.
5
Use to control, start and stop the server ApacheMonitor utility, you can also use the management console of Windows. Run the commands "start" – "setting" – "control Panel" – "administrative tools – "Service" in the window that appears, select Apache2, use the context menu to start the service, stop or restart.
6
Next, select the context menu item "Properties" from the drop-down list of "startup Type" select "Auto", in this case, the service will be started automatically at system startup. Also add server to startup in the following way: open the file /etc/rc.conf in the folder server installed, add in the last line of text apache_enable="YES".

Advice 2 : How to restart apache

The most popular and feature rich HTTP server today is Apache. It is very stable and capable of continuously operating for long years. However, update configuration settings, such as modifying the list of virtual hosts, you must restart Apache.
How to restart apache
You will need
  • - root access on the target machine;
  • - SSH-client.
Instruction
1
Log on the local machine or connect to a remote server running Apache, and also authorize. If you have physical access to the machine on which the server functions that require a reboot, and connected the monitor with the keyboard, the authorization process will not be a problem.

If the target machine has only remote SSH access, use the program customers to implement connectivity. Under Windows you can use the freely distributed graphical client PuTTY is available for download on the website putty.nl. In Linux-like systems switch to a text console, or run a terminal emulator and then run the command:
ssh username@serveraddress

After connect enter the password.
How to restart apache
2
Start a session as root. Run the command su. Enter the root password.
How to restart apache
3
Determine which of the server Apache is running on the target machine. Run the command:
service httpd status

The message httpd is running will attest to the fact that Apache operates in version 1.x. Message service: httpd: Unrecognized service indicates that this service is not installed. The inscription httpd is stopped says that the server is installed but not running.

Likewise, check whether you are running Apache version 2.x. Run the command:
service httpd2 status

Upon inspection, will reveal the presence or absence of the services httpd and httpd2. They (including simultaneously) can be started and stopped. If the target machine is functioning Apache, go to the next step.
How to restart apache
4
Restart Apache. To restart the server by stopping it and then running, run the command:
service ServiceName restart
As the name of a service, specify httpd or httpd2 depending on the results obtained in the previous step. For the implementation of a "soft" reboot with the updated configuration instead of restart, use the graceful. For example:
service httpd2 graceful
This method is more preferable.
How to restart apache
5
Shut down. Close the session to the root user, perform the exit command. Disconnect from the server using the command exit or logout.
How to restart apache
Is the advice useful?
Search