Search K
Appearance
Appearance
Apache is the most widely used web server software. Developed and maintained by Apache Software Foundation, Apache is an open source software available for free. It is a webhosting industry standard and compatible with all website engines and CMSs. With event and worker MPMs, it benchmarks as well as Nginx in terms of concurrency (http://people.apache.org/~jim/presos/ACNA11/Apache_httpd_cloud.pdf).
You may get the basic information about your Apache installation with:
httpd -VUse CustomBuild to switch to Apache and to define the needed PHP engine. The following example uses PHP-FPM as the PHP engine to build Apache and PHP:
da build set webserver apache
da build set php1_mode php-fpm
da build apache
da build php
da build rewrite_confsValid choices for each of the options above in addition to the available PHP versions to be chosen from can be found like so:
da build opt_help | grep "webserver\|mpm\|php._[mode|release]"Instead of implementing a single architecture, Apache provides a variety of MultiProcessing Modules (MPMs), which allow it to run in either a process-based mode, a hybrid (process and thread) mode, or an event-hybrid mode, in order to better match the demands of each particular infrastructure. Choice of MPM and configuration is therefore important.
To check what MPM is in use, you can ask the httpd binary:
httpd -V | grep 'MPM'If you want to customize the MPM options, do it in the appropriate section of the /etc/httpd/conf/extra/httpd-mpm.conf file to customize it in a proper way.
We get this question quite a bit, but not too sure why. It's always enabled in Apache by default. To confirm, type:
httpd -l | grep mod_rewriteand you should see
mod_rewrite.cin the output if it's enabled.
This is enabled by default. Global rules are defined in /etc/httpd/conf/extra/httpd-deflate.conf. Confirm this is enabled via the following command:
httpd -M | grep deflateExpected output:
[root@host]# httpd -M | grep deflate
deflate_module (static)
[root@host]#Since Mod_Cloudflare has been deprecated and Apache includes Mod_RemoteIP in Apache core, it is enabled by default and configured to work with Cloudflare automatically.
You can confirm it is enabled using this command:
httpd -M | grep remoteipExpected output:
[root@host]# httpd -M | grep remoteip
remoteip_module (static)
[root@host]#Rules for Cloudflare's IPs can be found in the file /etc/httpd/conf/extra/httpd-cloudflare.conf.
Apache server status can be accessed in your browser via http://Your-IP/server-status.
There it will ask you to authenticate using the credentials that were randomly generated in /etc/httpd/conf/extra/httpd-info.conf.secret:
#Authenticate using:
#Username: info
#Password: randomly generated passwordIf you don't see this, run
da build rewrite_confsto generate new credentials.