Win2k pro, apache 2.0, php - downloads php files, how do i stop it?

This is a discussion on Win2k pro, apache 2.0, php - downloads php files, how do i stop it? within the Apache Web Server forums, part of the Web Server and Related Forums category; I've searched groups for this topic and found many results that didn't work in my configuration. I'm ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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
  #2 (permalink)  
Old 07-08-2003
The Other Guy
 
Posts: n/a
Default Re: Win2k pro, apache 2.0, php - downloads php files, how do i stop it?

On 8 Jul 2003 08:23:10 -0700, The Other Guy responded to a post from
hot_geezer@hotmail.com (Ashley) who wrote in alt.apache.configuration:

>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



You might want to review a howto I posted a few months back on setting
up PHP with Apache. It is available at
http://www.apachelounge.com/article.php?sid=9.


HTH
TOG

--
../configure --prefix=~/zyterion
Not this guy or that guy, The Other Guy.

This spot may contain a satirical comment or comedic source,
and is meant to be funny. If you are easily offended, gullible
or don't have a sense of humour we suggest you read elsewhere.
  #3 (permalink)  
Old 07-09-2003
Ashley
 
Posts: n/a
Default Re: Win2k pro, apache 2.0, php - downloads php files, how do i stop it?

The Other Guy <nospam@this.addy> wrote in message news:<a6plgvgk764hu2ltrfdn7d5ji1c6o2q9mn@4ax.com>. ..
> On 8 Jul 2003 08:23:10 -0700, The Other Guy responded to a post from
> hot_geezer@hotmail.com (Ashley) who wrote in alt.apache.configuration:
>
> >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

>
>
> You might want to review a howto I posted a few months back on setting
> up PHP with Apache. It is available at
> http://www.apachelounge.com/article.php?sid=9.
>
>
> HTH
> TOG




I followed this before i posted the first message, after doing this
the PHP files just started downloading. I think i might as well
uninstall all of apache and PHP all together, and just start over! :(
 


Thread Tools
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

vB 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 04:30 AM.


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