You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by JM Fraser <jm...@cybertrex.co.uk> on 2005/01/10 21:57:48 UTC

Re: [users@httpd] Apache will not serve PHP pages - [POST CLOSED]

Thanks Jean-Marc. But on this occasion the logs failed to show anything; I
looked there first before posting. But your advice and that of Ralf
Glauberman has worked. I COMPLETELY forgot about AddType statements. 

Everything is working ok now. On with the migration. cheers.


On 19:08:14 January 10, 2005 "Jean-Marc Lachaine" <jm...@tbaytel.net>
wrote:
> Look for
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> in your httpd.conf.
>
> Also verify that the group that apache runs under has at least read (&
> execute?) permissions for your php files.
>
> Check your logs as well. The Apache logs have often very clear
> messages about the problems that it encounters and can be quite
> valuable when trying to track down the source of an error. These
> error messages usually make it easier for the gurus (which I am most
> certainly not) to provide you assistance.
>
> JML
>
> ----- Original Message -----
> From: "JM Fraser" <jm...@cybertrex.co.uk>
> To: <us...@httpd.apache.org>
> Sent: Monday, January 10, 2005 1:11 PM
> Subject: Re: [users@httpd] Apache will not serve PHP pages
>
>
> >  Where would I look for the mime type; commonapache.conf? What
> >  directive should I look for/add? I have placed the following into
> an info.php file at
> >  the webserver root:
> >
> >  <?php phpinfo() ?>
> >
> >  But whereas normal default information about the PHP engine would
> >  be displayed, it simply tries to download the file.
> >
> >
> >
> >  On 18:01:52 January 10, 2005 "Ralf Glauberman"
> <rg...@michaeli-gymnasium.de> wrote:
> > >  not sure about php5, but is the mime-type set up correctly?
> > >  request a php-file via telnet, does the server say text/text,
> > >  text/html, application/x-php, or what?
> > >  ralf
> > >
> > >  ----- Original Message -----
> > >  From: "JM Fraser" <jm...@cybertrex.co.uk>
> > >  To: <us...@httpd.apache.org>
> > >  Sent: Monday, January 10, 2005 7:01 PM
> > >  Subject: [users@httpd] Apache will not serve PHP pages
> > >
> > >
> > > >  I have three UNIX boxes now, the third one for some reason,
> > > >   will not serve PHP pages. The apache.conf and
> > > >   commonapache.conf page is copied from one of
> > > >   the other boxes, so I cannot understand the prob.
> > > >
> > > >   I have the correct modules loaded in apache.conf:
> > > >
> > > >   Code:
> > > >   LoadModule php5_module                   modules/libphp5.so
> > > >   LoadModule frontpage_module              modules/mod_frontpage
> > > > .so
> > > >   LoadModule access_module                 modules/mod_access.so
> > > >   LoadModule auth_module                   modules/mod_auth.so
> > > >   LoadModule auth_anon_module              modules/mod_auth_anon
> > > > .so
> > > >
> > > >
> > > >   And the server will serve normal html with the other virtual
> > > >   sites that I have. But whenever I try and load up stuff with
> > > >   PHP content, the browser simply displays the raw text. It
> > > >   must be something really silly that I have
> > > >   overlooked, but there isn't anything in Google,
> > > >   LinuxQuestions, Webmaster or anything else that I have looked
> > > > at.
> > > >   PHP is also registered with the server signature:
> > > >
> > > >   Code:
> > > >   Apache/2.0.52 (Gentoo/Linux) PHP/5.0.3 FrontPage/5.0.2.2635
> > > >
> > > >
> > > >   --------------------------------------------------------------
> > > > -----
> > > >  --
> > > >   The official User-To-User support forum of the Apache HTTP
> > > >   Server Project. See <URL:http://httpd.apache.org/userslist.htm
> > > > l> for more
> > > >   info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.o
> > > > rg
> > > >     "   from the digest: users-digest-unsubscribe@httpd.apache.o
> > > > rg
> > > >   For additional commands, e-mail: users-help@httpd.apache.org
> > > >
> > >
> > >
> > >  -----------------------------------------------------------------
> > > ----
> > >  The official User-To-User support forum of the Apache HTTP Server
> > >  Project. See <URL: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 <URL: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 <URL: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 <URL: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


Re: [users@httpd] Log file Monitors

Posted by Jeff White <jl...@earthlink.net>.
From: "Nick Kirby"

> I would like to ask what people
> use to view their access and
> error logs.
>
> Be aware that I am ostensibly
> a Windows user,

Use the one that works best
with your Windows OS system
files too.

Free from Microsoft

A stand alone exe or Windows
Scripting callable with graphic
output too.

Log Parser
http://www.microsoft.com/downloads/details.aspx?displaylang=en&familyid=8cde4028-e247-45be-bab9-ac851fc166a4

IIS 6.0 Resource Kit Tools
(includes Log Parser 2.1)
http://www.microsoft.com/downloads/details.aspx?familyid=56FC92EE-A71A-4C73-B628-ADE629C89499&displaylang=en

Scripting Log Parser
http://www.microsoft.com/technet/scriptcenter/tools/logparser/default.mspx

The Unofficial Log Parser Support Site
http://www.logparser.com/

Consolidating events with free Log Parser 2.0 tool
http://techrepublic.com.com/5100-6329-5034923.html

Log Parser 2.1 FAQ
http://www.larkware.com/Articles/LogParser2.0Help.html

(From the developer of Log Parser)
Microsoft Log Parser Toolkit  (book)
http://www.amazon.com/exec/obidos/tg/detail/-/1932266526/ref%3Dpd%5Fsl%5Faw%5Falx-jeb-9-1%5Fbook%5F6551384%5F1/002-1934350-1410440

Log Parser V2.1
http://geekswithblogs.net/drewby/articles/LogParser.aspx

Google Microsoft Scripting Search
http://groups-beta.google.com/groups?q=%22Log+Parser%22+group%3Amicrosoft.public.scripting.*

Google Microsoft Newsgroup General Search
http://groups-beta.google.com/groups?as_epq=Log%20Parser&safe=images&as_ugroup=microsoft.public.*&lr=&hl=en


Jeff




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: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


[users@httpd] Log file Monitors

Posted by Nick Kirby <ni...@freeuk.com>.
Hello there, Apache is apparently working fine on my machine (many thanks
everyone!) so I would like to ask what people use to view their access and
error logs.

Be aware that I am ostensibly a Windows user, so therefore am used to nice
GUI driven programs.

Is there something like MySQL that Apache can dumb into?

Cheers,

Nick

-----Original Message-----
From: JM Fraser [mailto:jmf@cybertrex.co.uk] 
Sent: 10 January 2005 20:58
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache will not serve PHP pages - [POST CLOSED]

Thanks Jean-Marc. But on this occasion the logs failed to show anything; I
looked there first before posting. But your advice and that of Ralf
Glauberman has worked. I COMPLETELY forgot about AddType statements. 

Everything is working ok now. On with the migration. cheers.


On 19:08:14 January 10, 2005 "Jean-Marc Lachaine" <jm...@tbaytel.net>
wrote:
> Look for
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> in your httpd.conf.
>
> Also verify that the group that apache runs under has at least read (&
> execute?) permissions for your php files.
>
> Check your logs as well. The Apache logs have often very clear
> messages about the problems that it encounters and can be quite
> valuable when trying to track down the source of an error. These
> error messages usually make it easier for the gurus (which I am most
> certainly not) to provide you assistance.
>
> JML
>
> ----- Original Message -----
> From: "JM Fraser" <jm...@cybertrex.co.uk>
> To: <us...@httpd.apache.org>
> Sent: Monday, January 10, 2005 1:11 PM
> Subject: Re: [users@httpd] Apache will not serve PHP pages
>
>
> >  Where would I look for the mime type; commonapache.conf? What
> >  directive should I look for/add? I have placed the following into
> an info.php file at
> >  the webserver root:
> >
> >  <?php phpinfo() ?>
> >
> >  But whereas normal default information about the PHP engine would
> >  be displayed, it simply tries to download the file.
> >
> >
> >
> >  On 18:01:52 January 10, 2005 "Ralf Glauberman"
> <rg...@michaeli-gymnasium.de> wrote:
> > >  not sure about php5, but is the mime-type set up correctly?
> > >  request a php-file via telnet, does the server say text/text,
> > >  text/html, application/x-php, or what?
> > >  ralf
> > >
> > >  ----- Original Message -----
> > >  From: "JM Fraser" <jm...@cybertrex.co.uk>
> > >  To: <us...@httpd.apache.org>
> > >  Sent: Monday, January 10, 2005 7:01 PM
> > >  Subject: [users@httpd] Apache will not serve PHP pages
> > >
> > >
> > > >  I have three UNIX boxes now, the third one for some reason,
> > > >   will not serve PHP pages. The apache.conf and
> > > >   commonapache.conf page is copied from one of
> > > >   the other boxes, so I cannot understand the prob.
> > > >
> > > >   I have the correct modules loaded in apache.conf:
> > > >
> > > >   Code:
> > > >   LoadModule php5_module                   modules/libphp5.so
> > > >   LoadModule frontpage_module              modules/mod_frontpage
> > > > .so
> > > >   LoadModule access_module                 modules/mod_access.so
> > > >   LoadModule auth_module                   modules/mod_auth.so
> > > >   LoadModule auth_anon_module              modules/mod_auth_anon
> > > > .so
> > > >
> > > >
> > > >   And the server will serve normal html with the other virtual
> > > >   sites that I have. But whenever I try and load up stuff with
> > > >   PHP content, the browser simply displays the raw text. It
> > > >   must be something really silly that I have
> > > >   overlooked, but there isn't anything in Google,
> > > >   LinuxQuestions, Webmaster or anything else that I have looked
> > > > at.
> > > >   PHP is also registered with the server signature:
> > > >
> > > >   Code:
> > > >   Apache/2.0.52 (Gentoo/Linux) PHP/5.0.3 FrontPage/5.0.2.2635
> > > >
> > > >
> > > >   --------------------------------------------------------------
> > > > -----
> > > >  --
> > > >   The official User-To-User support forum of the Apache HTTP
> > > >   Server Project. See <URL:http://httpd.apache.org/userslist.htm
> > > > l> for more
> > > >   info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.o
> > > > rg
> > > >     "   from the digest: users-digest-unsubscribe@httpd.apache.o
> > > > rg
> > > >   For additional commands, e-mail: users-help@httpd.apache.org
> > > >
> > >
> > >
> > >  -----------------------------------------------------------------
> > > ----
> > >  The official User-To-User support forum of the Apache HTTP Server
> > >  Project. See <URL: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 <URL: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 <URL: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 <URL: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 <URL: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