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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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[_] |
|
|||
|
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 | |
| Display Modes | |
|
|