Changes

Jump to: navigation, search

Package:Apache

17 bytes added, 5 years ago
m
grammar and spelling edits only
== Install ==
=== Configure USE Flags ===
Flags change sometime Depending upon one's personal preferences, flag changes are sometimes necessary to . To extend default USE flags in apache an Apache ebuild and , compile a custom flavor of it. This can be achieved by portagePortage's <code>package.use</code>. Create a directory <code>/etc/portage/package.use</code> and file called <code>/etc/portage/package.use/apache</code> , and add the USE flags you want. For example:
<console>###i## install -d /etc/portage/package.use</console>
{{file|name=/etc/portage/package.use/apache|desc= |body=
www-servers/apache ssl threads
}}
Alternatively, if someone prefer one prefers a <code>/etc/portage/package.use</code> flat file:
<console>###i## echo 'www-servers/apache ssl threads' >> /etc/portage/package.use</console>
=== Emerge ===
After you have configured the configuring your preferred USE flags that you want to build Apache with, emerge itApache:
<console>###i## emerge apache</console>
== Configuration ==
=== System ===
Many packages have apache2 use Apache2 USE flags. These use USE flags are often required for an application to be supported by Apache. Setting a system wide apache2 use Apache2 USE flag is a good idea.
{{file|name=/etc/portage/make.conf|desc=set system wide apache2 useflag|body=
=== {{package|dev-lang/php}} ===
==== DSO / mod_php ====
To show which php PHP versions are available for apache Apache on your system:
<console>###i## eselect php list apache2
[1] php5.5
</console>
To select php5PHP 5.5:
<console>###i## eselect php set apache2 php5.5</console>
}}
restart apacheRestart Apache:
<console>###i## rc-service apache2 restart</console>
APACHE2_OPTS="... -D SECURITY"}}
Control this module by editing these files, and restarting apacheApache.
<code>/etc/apache2/modules.d/79_modsecurity.conf</code> & <code>/etc/apache2/modules.d/80_modsecurity-crs.conf</code>
== Service ==
To start apache Apache immediately:
<console>
###i## rc-service apache2 start
</console>
To start apache Apache upon boot:
<console>
###i## rc-update add apache2
Then point your browser to http://127.0.0.1/test.html. You should see that the text from rewrite.html has been loaded.
 
{{EbuildFooter}}
wiki-users
9
edits

Navigation menu