Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 43191 invoked from network); 9 Dec 2003 13:49:44 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Dec 2003 13:49:44 -0000 Received: (qmail 51318 invoked by uid 500); 9 Dec 2003 13:49:29 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 51307 invoked by uid 500); 9 Dec 2003 13:49:28 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 51264 invoked from network); 9 Dec 2003 13:49:28 -0000 Received: from unknown (HELO mail3.bes.pt) (194.65.23.129) by daedalus.apache.org with SMTP; 9 Dec 2003 13:49:28 -0000 Received: from mail1 ([10.254.50.10]) by mail3.bes.pt (Netscape Messaging Server 4.15) with ESMTP id HPMRQE03.I18 for ; Tue, 9 Dec 2003 13:49:26 +0000 Received: from D11342 ([10.254.50.110]) by mailrelay.bes.pt (iPlanet Messaging Server 5.1 (built May 7 2001)) with SMTP id <0HPM006AXRQAE2@mailrelay.bes.pt> for users@httpd.apache.org; Tue, 09 Dec 2003 13:49:22 +0000 (GMT) Date: Tue, 09 Dec 2003 13:49:25 +0000 From: Luis Moreira To: users@httpd.apache.org Reply-to: Luis Moreira Message-id: <005501c3be5b$42327410$5ac8ea0a@D11342> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Mailer: Microsoft Outlook Express 5.50.4927.1200 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal References: <20031209132350.M70836@tauraizimbabwe.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] PHP files being downloaded instead of running X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Installing PHP is one thing, telling Apache how to handle those scripts is another, since (on Windows) it is not automatic. Did you edit httpd.conf accordingly ? You should find something like # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # # ScriptAlias /cgi-bin/ "d:/program files/Apache Group/Apache/cgi-bin/" # # AddType allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps # # "d:/program files/Apache Group/Apache/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # # # # Action lets you define media types that will execute a script whenever # a matching file is called. This eliminates the need for repeated URL # pathnames for oft-used CGI file processors. # Format: Action media/type /cgi-script/location # Format: Action handler-name /cgi-script/location # # Where PHP.exe is located # Action application/x-httpd-php /php/php.exe Luis ----- Original Message ----- From: "innocent" To: Sent: Tuesday, December 09, 2003 1:27 PM Subject: [users@httpd] PHP files being downloaded instead of running > hie > > I have installed php and it works fine, but when i try to run some php files > I have created they don.t run but they try to be downloaded instead. what > should I do > > > Thank you > > Innocent Muchedzi > tele:: 795541/795562 > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org