Apache
Apache
http://news.netcraft.com/archives/category/web-server-survey/
Apache features
Server Side Programming Language Support
Apache supports some common language interfaces which include Perl, Python, Tcl, and
PHP. It also supports a variety of popular authentication modules like mod_auth,
mod_access, mod_digest and many others.
IPv6 Support
On systems where IPv6 is supported by the underlying Apache Portable Runtime library,
Apache gets IPv6 listening sockets by default.
Virtual Hosting
Apache will allow one installation instance to serve multiple websites. For instance one
Apache installation can serve sse.afnog.org, ws.afnog.org etc
Simplified configuration
Native Windows NT Unicode Support
More at: http://httpd.apache.org/docs/2.2/new_features_2_0.html
Virtual Hosting
PHP and Mysql implementations have increased
driven mainly by development requests
LAMP and WAMP are the most common
implementations
Installation via “dkpg” and “apt-get” and
relatively straight forward
See PHP & Mysql installation exercise section
Apache and IPv6
Apache can be installed from APT-
GET
apt-get install apache2
Can be installed from dpkg
Or from source if one requires a
more recent version than what's on
Debian source list
File System Layout
/etc/apache2/
|-- apache2.conf
| `-- ports.conf
|-- mods-enabled
| |-- *.load
| `-- *.conf
|-- conf-enabled
| `-- *.conf
|-- sites-enabled
| `-- *.conf
Starting Apache
Startup scripts are located at
/etc/init.d/
Take a look in startup script
/etc/init.d/apache2
Add Apache to startup
update-rc.d apache2 enable
Run
$ /etc/init.d/apache2 restart
/etc/init.d/apache2 start
Check that you can access
http://your.ip.add.ress in your browser
Check that you can access
https://your.ip.add.ress in your
browser, and that you get a certificate
warning
Click on the padlock icon in your browser and
check that the certificate details are correct
Apache use cases