Apache/Installation

From Wikibooks, open books for an open world
Jump to: navigation, search

Windows[edit]

The program can be installed alone from http://www.apache.org/dyn/closer.cgi.

However the best is generally to get it with an all-in-one solution like WAMP or EasyPHP, because it includes the installation or PHP and MySQL at the same time.

Apart from that, a portable all-in-one is XAMPP.

Unix-like[edit]

Debian[edit]

 apt-get install apache2

Gentoo[edit]

 emerge apache

Configuration[edit]

The service should be restarted manually after the most part of the configuration modifications:

 vim /etc/httpd/conf/httpd.conf
 /etc/init.d/apache2 restart