View Single Post

  #1 (permalink)  
Old 07-08-2003
Ashley
 
Posts: n/a
Default Win2k pro, apache 2.0, php - downloads php files, how do i stop it?

I've searched groups for this topic and found many results that didn't
work in my configuration.

I'm using:

Windows 2000 pro
Apache 2.0.43 (distributed with indigoperl 2003(latest version))
PHP 4.2.3 (distributed with above distrbution)

Apache works fine. After attempting to configure apache with PHP, it
all goes wrong.

PROBLEM

I'm asked to save / download php files when opening them in a browser
window.

SOME FILE PATHS

PHP
C:/indigoperl/apache/php

APACHE
C:/indigoperl/apache


Here are some key parts of my apache configuration file:

BOTTOM OF MODULES SECTION
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so
LoadModule php4_module C:/indigoperl/apache/php/sapi/php4apache2.dll

DOCUMENT ROOT SECTION
DocumentRoot "C:/Documents and Settings/ASHLEY/My Documents/My Webs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "C:/Documents and Settings/ASHLEY/My Documents/My Webs">

ADD TYPE SECTION
AddType application/x-tar .tgz
AddType image/x-icon .ico
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

THE
QUESTIONS
Is there anything wrong with the config?

I've read about php.ini changes. Are there any changes that have to
made? If so, what?

Thanks
Ash