Gentoo Archives: gentoo-user

From: Todd Goodman <tsg@×××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Setting up a local web server
Date: Sat, 02 Apr 2011 13:32:57
Message-Id: 20110402130223.GE10937@ns1.bonedaddy.net
In Reply to: Re: [gentoo-user] Setting up a local web server by Adam Carter
1 * Adam Carter <adamcarter3@×××××.com> [110402 01:15]:
2 > > dig you build php with an apache2 flag to enable the Apache module?
3 > >
4 >
5 > And you'll also need this in your httpd.conf;
6 >
7 > AddType application/x-httpd-php .php
8
9 70_mod_php5.conf in /etc/apache2/modules.d adds the handler for that
10 automatically when PHP5 is defined (and mod_mime.c is there.)
11
12 So doublecheck that php was built with the apache2 USE flag as mentioned
13 above. I've rebuilt php after apache2 before to be sure the needed
14 modules are installed.
15
16 Also as mentioned make sure your APACHE2_OPTS in /etc/conf.d/apache2
17 uses -D PHP5 and not just PHP or PHP4.
18
19 And finally don't forget to restart apache after emerging php
20
21 Todd