Differences
This shows you the differences between two versions of the page.
— | amp_stack_apache_configuration [2015/06/01 21:32] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== AMP Stack: Apache Configuration ====== | ||
+ | * [[AMP Stack]] | ||
+ | |||
+ | There are going to be some changes to the Apache configuration. | ||
+ | ==== Ubuntu ==== | ||
+ | |||
+ | Enable modules: | ||
+ | |||
+ | < | ||
+ | a2enmod auth_digest authz_default authz_host authz_user deflate headers info rewrite ssl status suexec version vhost_alias fcgid | ||
+ | a2dismod auth_basic authz_groupfile cgid | ||
+ | </ | ||
+ | |||
+ | Edit site configuration files: | ||
+ | |||
+ | < | ||
+ | sed -i -e ' | ||
+ | </ | ||
+ | |||
+ | Enable the sites: | ||
+ | |||
+ | < | ||
+ | a2dissite default default-ssl | ||
+ | a2ensite www ssl | ||
+ | service apache2 restart | ||
+ | </ | ||
+ | |||
+ | ==== Gentoo ==== | ||
+ | |||
+ | |||
+ | Edit ''/ | ||
+ | |||
+ | < | ||
+ | APACHE2_OPTS=" | ||
+ | </ | ||
+ | |||
+ | Also, create a new file in ''/ | ||
+ | |||
+ | Create ''/ | ||
+ | |||
+ | < | ||
+ | Listen 80 | ||
+ | NameVirtualHost *:80 | ||
+ | DirectoryIndex index.php index.html | ||
+ | < | ||
+ | Listen 443 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== FCGI Configuration ==== | ||
+ | |||
+ | * [[http:// | ||
+ | |||
+ | By default, Apache' | ||
+ | |||
+ | You'll know if you are having timeout issues if you see this error in your Apache logs: | ||
+ | < | ||
+ | mod_fcgid: read data timeout in 40 seconds | ||
+ | </ |