#4 Day #2 Getting Started with Apache Wildan Maulana firstname.lastname@example.org http://workshop.openthinklabs.com
Overview● The steps necessary to have a minimal Apache installation up and running; for example, changing basic server properties such as name and port information● How to start and stop Apache and how to troubleshoot basic problems
Layout of Server Files and Directories Section Windows UnixDefault install path C:Program FilesApache /usr/local/apache2 GroupApache2Binaries and support bin/apache.exe bin/httpdscripts bin/ bin/Log files log/error.log log/error_log log/access.log log/access_log log/httpd.pid log/httpd.pidProxy proxy/ proxy/Configuration files conf/httpd.conf conf/httpd.confCGI scripts cgi-bin/test-cgi.bat cgi-bin/test-cgiBuild information and Does not apply in binary Include/header files installation build/
Layout of Server Files and Directories (2) Section Windows UnixError messages error/ error/Modules and libraries modules/ modules/ bin/ lib/HTML documents htdocs/ htdocs/Icons icons/ icons/Manual manual/ manual/
Configuration Files Structure● Directives Directives configure specific settings of Apache, such as authorization, performance, and network parameters.● Containers Containers specify the context to which those settings refer. For example, authorization configuration can refer to the server as a whole, a directory, or a single file.
Conditional Evaluation (2) <IfModule prefork.c>Directives in an IfModule StartServers 5section will be processed MinSpareServers 5only if the module MaxSpareServers 10passed as an argument is present MaxClients 20in the Web server MaxRequestsPerChild 0 </IfModule> <IfModule worker.c> StartServers 3 MaxClients 8 MinSpareThreads 5 MaxSpareThreads 10 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule>
ServerRoot● The ServerRoot directive takes a single argument: a directory path pointing to the directory where the server lives ServerRoot /usr/local/apache
Including Additional Configuration Files Include conf/ssl.conf