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