Bluehost.com Web Hosting $6.95

PHP not working with Apache 2

This is a discussion on PHP not working with Apache 2 within the Windows Web Servers forums, part of the Web Server and Related Forums category; I have installed both PHP4 and Apache2. I have set everything I know about in the conf file. When I ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-10-2004
Walter Holl
 
Posts: n/a
Default PHP not working with Apache 2

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
  #2 (permalink)  
Old 11-11-2004
Kees Nuyt
 
Posts: n/a
Default Re: PHP not working with Apache 2

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[_]
  #3 (permalink)  
Old 11-11-2004
Nil
 
Posts: n/a
Default Re: PHP not working with Apache 2

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.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:26 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0