Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D0A786F24 for ; Thu, 16 Jun 2011 17:07:01 +0000 (UTC) Received: (qmail 84487 invoked by uid 500); 16 Jun 2011 17:06:58 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 84426 invoked by uid 500); 16 Jun 2011 17:06:58 -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 84418 invoked by uid 99); 16 Jun 2011 17:06:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 17:06:58 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of zavelopez@gmail.com designates 209.85.210.69 as permitted sender) Received: from [209.85.210.69] (HELO mail-pz0-f69.google.com) (209.85.210.69) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2011 17:06:52 +0000 Received: by pzk12 with SMTP id 12so512622pzk.0 for ; Thu, 16 Jun 2011 10:06:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.30.194 with SMTP id u2mr115839pbh.54.1308243992512; Thu, 16 Jun 2011 10:06:32 -0700 (PDT) In-Reply-To: <20110616061755.GA8800@mogwai.ath.cx> Message-ID: Date: Thu, 16 Jun 2011 17:06:32 +0000 From: zavelopez@gmail.com To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=bcaec520f05b740db104a5d74aa2 Subject: Re: Re: [users@httpd] PHP Parsing Problem --bcaec520f05b740db104a5d74aa2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Any php file that I try to open, including the one containing phpinfo(), which is called testphp.php in my case, causes Firefox to ask me what I want it to do with the file. On , zeek wrote: > Try the info.php test: > phpinfo(); > ?> > On Wed, Jun 15, 2011 at 10:57:10PM -0700, Xavier Lopez wrote: > > Dear Users, > > > > I'm still not getting Apache to parse PHP. I've learned a lot though, > > here's what I know: > > > > In apache2.conf, there are these lines: > > > > Include /etc/apache2/mods-enabled/*.load > > Include /etc/apache2/mods-enabled/*.conf > > > > When I run ls /mods-enabled, I see php5.conf and php5.load, among > others, > > And when I run cat 'php5.load', I see LoadModule php5_module > > /usr/lib/apache2/modules/libphp5.so. > > > > Do these facts, taken together, not mean that PHP5 is installed, > > available, and enabled? > > > > Shouldn't Apache therefore parse PHP? > > > > When I run apache2ctl -L. I don't see the string 'PHP' anywhere in the > > output. Should I? > > > > When I run a2enmod php5, it says it's already enabled. > > > > This is my Virtual Host configuration: > > > > > > ServerName http://testing.dev > > ServerAdmin webmaster@localhost > > DocumentRoot /home/zave/Public/testing > > > > SetHandler application/x-httpd-php > > > > > > Options FollowSymLinks > > AllowOverride None > > > > > > Options Indexes FollowSymLinks MultiViews > > AllowOverride None > > Order allow,deny > > allow from all > > > > > > ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ > > > > AllowOverride None > > Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch > > Order allow,deny > > Allow from all > > > > > > > > Does anyone see what is preventing PHP from being parsed? I'm running > > Apache 2.2.14/Ubuntu 10.04, LAMP Install. Thanks for your help thus > > far. > > > > -Xavier > > > > --------------------------------------------------------------------- > > The official User-To-User support forum of the Apache HTTP Server > Project. > > See http://httpd.apache.org/userslist.html> 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 http://httpd.apache.org/userslist.html> 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 --bcaec520f05b740db104a5d74aa2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Any php file that I try to open, including the one containing phpinfo(), wh= ich is called testphp.php in my case, causes Firefox to ask me what I want = it to do with the file.

On , zeek <zeek@mogwai.ath.cx> wr= ote:
>
>
>
>
> Try the info.php= test:
>
>
>
>
> phpinfo();>
> ?>
>
>
>
>
&= gt;
>
>
> On Wed, Jun 15, 2011 at 10:57:10PM -07= 00, Xavier Lopez wrote:
>
> > Dear Users,
> > >
>
> > I'm still not getting Apache to = parse PHP. I've learned a lot though,
>
> > here= 9;s what I know:
>
> >
>
> > In apa= che2.conf, there are these lines:
>
> >
>
> > Include /etc/apache2/mods-enabled/*.load
>
> &g= t; Include /etc/apache2/mods-enabled/*.conf
>
> >
= >
> > When I run =A0ls /mods-enabled, I see php5.conf and ph= p5.load, among others,
>
> > And when I run cat 'ph= p5.load', I see LoadModule php5_module
>
> > /usr/l= ib/apache2/modules/libphp5.so.
>
> >
>
&g= t; > Do these facts, taken together, not mean that PHP5 is installed,>
> > available, and enabled?
>
> >>
> > Shouldn't Apache therefore parse PHP?
>= ;
> >
>
> > When I run apache2ctl -L. I don= 't see the string 'PHP' anywhere in the
>
> &g= t; output. Should I?
>
> >
>
> > Wh= en I run a2enmod php5, it says it's already enabled.
>
&g= t; >
>
> > This is my Virtual Host configuration:>
> >
>
> >
>
> >= ; =A0 =A0 =A0 =A0 ServerName http://testing.dev
>
> > = =A0 =A0 =A0 =A0 ServerAdmin webmaster@localhost
>
> > = =A0 =A0 =A0 =A0 DocumentRoot /home/zave/Public/testing
>
>= > =A0 =A0 =A0 =A0
>
> > =A0 =A0 =A0 =A0 =A0 =A0Set= Handler application/x-httpd-php
>
> > =A0 =A0 =A0 =A0 <= br />>
> > =A0 =A0 =A0 =A0
>
> > =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 Options FollowSymLinks
>
> >= ; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 AllowOverride None
>
> &= gt; =A0 =A0 =A0 =A0
>
> > =A0 =A0 =A0 =A0
> <= br />> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Options Indexes FollowSymLin= ks MultiViews
>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 All= owOverride None
>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 O= rder allow,deny
>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 a= llow from all
>
> > =A0 =A0 =A0 =A0
>
&g= t; >
>
> > =A0 =A0 =A0 =A0 ScriptAlias /cgi-bin/ /us= r/lib/cgi-bin/
>
> > =A0 =A0 =A0 =A0
>
&= gt; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 AllowOverride None
>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Options +ExecCGI -MultiViews +Sy= mLinksIfOwnerMatch
>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 Order allow,deny
>
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 Allow from all
>
> > =A0 =A0 =A0 =A0
> > >
>
> >
>
> > Does anyon= e see what is preventing PHP from being parsed? I'm running
> <= br />> > Apache 2.2.14/Ubuntu 10.04, LAMP Install. Thanks for your he= lp thus
>
> > far.
>
> >
> =
> > -Xavier
>
> >
>
> >= ---------------------------------------------------------------------
>
> > The official User-To-User support forum of the Apache= HTTP Server Project.
>
> > See http://httpd.apache.org= /userslist.html> for more info.
>
> > To unsubscribe= , e-mail: users-unsubscribe@httpd.apache.org
>
> > =A0 = =A0" =A0 from the digest: users-digest-unsubscribe@httpd.apache.org>
> > For additional commands, e-mail: users-help@httpd.a= pache.org
>
>
>
> ----------------------= -----------------------------------------------
>
> The of= ficial User-To-User support forum of the Apache HTTP Server Project.
&= gt;
> See http://httpd.apache.org/userslist.html> for more info= .
>
> To unsubscribe, e-mail: users-unsubscribe@httpd.apac= he.org
>
> =A0 " =A0 from the digest: users-digest-u= nsubscribe@httpd.apache.org
>
> For additional commands, e= -mail: users-help@httpd.apache.org
>
>
> --bcaec520f05b740db104a5d74aa2--