You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wiki-changes@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2009/12/15 16:40:33 UTC

[Httpd Wiki] Update of "DebianPHP" by thumbs

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.

The "DebianPHP" page has been changed by thumbs.
http://wiki.apache.org/httpd/DebianPHP?action=diff&rev1=14&rev2=15

--------------------------------------------------

  
  You're half done now. The last two things that need to be taken care of are to '''correct''' Debian's [and php.net's] default PHP configuration for Apache. You can do this by typing:
  {{{
- sed -r 's/AddType/AddHandler/g' -i /etc/apache2/mods-available/php5.conf
+ sed -r 's/AddType application/x-httpd-php .php/<FilesMatch .php$>\nSetHandler application\/x-httpd-php\n<\/FilesMatch>/g' -i /etc/apache2/mods-available/php5.conf
  }}}
  And now you'll have to tell Apache to reload its configuration and thus enable PHP:
  {{{