Web Servers on Windows - PHP not working with Apache 2

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Windows > November 2004 > PHP not working with Apache 2





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PHP not working with Apache 2
Walter Holl

2004-11-10, 2:47 am

I have installed both PHP4 and Apache2. I have set everything I know
about in the conf file. When I try to execute the php script the
browser just lists the script rather than executing it. Can someone
help me out?

Walt Holl
Kees Nuyt

2004-11-11, 5:49 pm

On 9 Nov 2004 19:48:49 -0800, walter.holl@verizon.net (Walter
Holl) wrote:

>I have installed both PHP4 and Apache2. I have set everything I know
>about in the conf file. When I try to execute the php script the
>browser just lists the script rather than executing it. Can someone
>help me out?
>
>Walt Holl


The Apache config file should contain:

LoadModule php4_module modules/php4apache2.dll

AddType application/x-httpd-php .php

and optionally:
AddType application/x-httpd-php-source .phps

Restart the server after every configuration change and
check your error.log for any messages.

You may also want to add index.php to DirectoryIndex
DirectoryIndex index.html index.htm index.php
which makes your server less vulnerable for configuration
errors, like having
Options +Indexes
on by mistake.

(( In my installation every application has its own webdirectory
and the start script of every application is called index.php.
Each application can be started with
http://server.domain.tld/applicationname/

/applicationname/ is an alias to a directory outside the
webdocumenttree. ))

HTH

--
) Kees Nuyt
(
c[_]
Nil

2004-11-11, 5:49 pm

On 11 Nov 2004, Kees Nuyt <k.nuyt@nospam.demon.nl> wrote in
news:bm47p0la0ikjn6o67q9rqadtl8g04ksd8f@
4ax.com:


> Restart the server after every configuration change and
> check your error.log for any messages.


Also check Window's system and application logs for other clues to what
might be going wrong.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com