public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Todd Goodman <tsg@bonedaddy.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Setting up a local web server
Date: Sat, 2 Apr 2011 09:02:23 -0400	[thread overview]
Message-ID: <20110402130223.GE10937@ns1.bonedaddy.net> (raw)
In-Reply-To: <BANLkTikURU96+uwp5nowZFyNFmwgByuYOw@mail.gmail.com>

* Adam Carter <adamcarter3@gmail.com> [110402 01:15]:
> > dig you build php with an apache2 flag to enable the Apache module?
> >
> 
> And you'll also need this in your httpd.conf;
> 
> AddType application/x-httpd-php .php

70_mod_php5.conf in /etc/apache2/modules.d adds the handler for that
automatically when PHP5 is defined (and mod_mime.c is there.)

So doublecheck that php was built with the apache2 USE flag as mentioned
above.  I've rebuilt php after apache2 before to be sure the needed
modules are installed.

Also as mentioned make sure your APACHE2_OPTS in /etc/conf.d/apache2
uses -D PHP5 and not just PHP or PHP4.

And finally don't forget to restart apache after emerging php

Todd



  reply	other threads:[~2011-04-02 13:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-01 11:57 [gentoo-user] Setting up a local web server Peter Humphrey
2011-04-01 12:18 ` Stéphane Guedon
2011-04-01 19:56   ` Peter Humphrey
2011-04-01 23:03     ` kashani
2011-04-02  5:40       ` Adam Carter
2011-04-02 13:02         ` Todd Goodman [this message]
2011-04-02  8:45       ` Neil Bothwick
2011-04-04  9:17     ` Joost Roeleveld
2011-04-04 13:15       ` Peter Humphrey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110402130223.GE10937@ns1.bonedaddy.net \
    --to=tsg@bonedaddy.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox