From users-return-117480-archive-asf-public=cust-asf.ponee.io@httpd.apache.org Sun Jun 10 19:53:39 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 70C3318062B for ; Sun, 10 Jun 2018 19:53:38 +0200 (CEST) Received: (qmail 43855 invoked by uid 500); 10 Jun 2018 17:53:36 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 43845 invoked by uid 99); 10 Jun 2018 17:53:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jun 2018 17:53:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 619611A07C6 for ; Sun, 10 Jun 2018 17:53:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.101 X-Spam-Level: X-Spam-Status: No, score=-0.101 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=domblogger.net Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id hkiVvSK5T7jL for ; Sun, 10 Jun 2018 17:53:35 +0000 (UTC) Received: from mail.domblogger.net (mail.domblogger.net [104.200.18.67]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 669605F288 for ; Sun, 10 Jun 2018 17:53:34 +0000 (UTC) Received: from localhost.localdomain (unknown [IPv6:2600:1010:b00f:90e4:3087:d890:629a:ea3d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.domblogger.net (Postfix) with ESMTPSA id 9BF913FA for ; Sun, 10 Jun 2018 17:53:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=domblogger.net; s=default; t=1528653206; bh=t8bpvb7EBGPyTECoax43y3zqkkOVWIkhRF5FbSuaSDY=; h=Subject:To:References:From:Date:In-Reply-To; b=0xuKZejsqEZPe+CfT0csPagdOtubk3aUchep1yUQZvNuas68fxN7qxav6V5W2MiBQ MWfqqmQSb/Z/Z/TEimTseen7rmWigby0vScG6crjWdZru/qgj/IbJm3ydJS8zSGpaz 3GriLcxNbo4sgF/tRsbE7ELDLK5zIi9bsoeuHJKI= To: users@httpd.apache.org References: From: "Michael A. Peters" Message-ID: <264d6427-42b5-52cc-4b71-3c9ab5891a76@domblogger.net> Date: Sun, 10 Jun 2018 10:53:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [users@httpd] .php3 files recognised but .php files not On 06/10/2018 06:04 AM, Paul Gardiner wrote: > I have just installed openSUSE Leap 15.0 on a server including Apache > 2.4.33 and php 7.2.5. > > If I attempt to access .php files, I'm offered them as downloads, > although renaming them to .php3 makes them work fine. I have this file > amongst my apache config > > conf.d/php7.conf > > > > SetHandler application/x-httpd-php > > > SetHandler application/x-httpd-php-source > > DirectoryIndex index.php4 > DirectoryIndex index.php5 > DirectoryIndex index.php > Just change it to SetHandler application/x-httpd-php SetHandler application/x-httpd-php-source DirectoryIndex index.php If you really need .php3 .php4 .php5 add them as separate FilesMatch directives. Lot of stuff in php3/4 is deprecated on php7 so scripts written for php that ancient are not likely to work unless they are very simple, and I don't recall .php5 ever being an extension ever officially being promoted. .php3 was because some servers had both php3 and php4 but I don't even recall .php4 being an officially endorsed extension, let alone .php5. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org