
# prototype AddType definition for apache2
if [ -f /etc/httpd/conf/httpd.conf ] ; then
  if ! grep -q "x-httpd-php" /etc/httpd/conf/httpd.conf ; then
    cat >> /etc/httpd/conf/httpd.conf << EOF

# AddType required for php to work:
AddType  application/x-httpd-php         .php .php5 .php4 .php3 .phtml
AddType  application/x-httpd-php-source  .phps

EOF
  fi
fi

if [ ! -e /etc/php.ini ] ; then
  cp $SOURCE_DIRECTORY/php.ini-dist /etc/php.ini
fi

case  $REGGLOBALS  in
  y|Y)
    sedit "s/register_globals = Off/register_globals = On/" /etc/php.ini
    ;;
    *) true
    ;;
esac

