Re: [PHP4BETA] PHP4b3 & Apache 1.3.11 on Linux - getting download of .php!
| From: | Simon Roberts | Date: | Mon, 07 Feb 2000 04:03:00 +0000 |
| Subject: | Re: [PHP4BETA] PHP4b3 & Apache 1.3.11 on Linux - getting download of .php! | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9890@lists.php.net to get a copy of this message | ||
Well, mine says :
[simon@blinky conf]$ grep php *.conf
httpd.conf:DirectoryIndex index.php index.php3
httpd.conf:AddType application/x-httpd-php .php3 .php
httpd.conf:AddType application/x-httpd-php-source .phps
[simon@blinky conf]$
and works perfectly. Are you sure you're running the right httpd? If it's a
dynamically loaded module (DSO), you'd need a "LoadModule" line too.
What about making a file phpinfo.php
<?php phpinfo(); ?>
loading it, through the webserver (save-as, if necessary). Obviously if the
file contains the above code, it isn't parsing it. If it's HTML, then it is,
but something is happening to the doctype. Read the HTML there, it might
help.
Simon
----- Original Message -----
From: "David McMahon" <djm@mcmahons.com>
To: "Simon Roberts" <simon@airdmhor.gen.nz>
Cc: <php4beta@lists.php.net>
Sent: Monday, February 07, 2000 4:46 PM
Subject: RE: [PHP4BETA] PHP4b3 & Apache 1.3.11 on Linux - getting download
of .php!
>
>
> Thanks, yes tried the following different Addtype
> configurations:
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php4 .php
> AddType application/x-httpd-php-source .phps
>
> AddType application/x-httpd-php4 .php
> AddType application/x-httpd-php-source .phps
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
>
> What's weird is that the it seems to be recognizing
> the type, because in Netscape when it asks to save the
> file, it says "save file of type: application/x-httpd-php".
>
> dave
>
>
> > -----Original Message-----
> > From: Simon Roberts [mailto:simon@airdmhor.gen.nz]
> > Sent: Sunday, February 06, 2000 10:39 PM
> > To: David McMahon; php4beta@lists.php.net
> > Subject: Re: [PHP4BETA] PHP4b3 & Apache 1.3.11 on Linux - getting
> > download of .php!
> >
> >
> > That second line is overwriting the first line. Remove it and you'll be
> > fine.
> >
> > ----- Original Message -----
> > From: "David McMahon" <djm@mcmahons.com>
> > To: <php4beta@lists.php.net>
> > Sent: Monday, February 07, 2000 1:44 PM
> > Subject: [PHP4BETA] PHP4b3 & Apache 1.3.11 on Linux - getting download
of
> > .php!
> >
> >
> > >
> > >
> > > Hi,
> > >
> > > This has got to be one of the most common problems
> > > and I'll probably slap myself when I found out, but...
> > > Everything looks fine as far as I can tell.
> > >
> > > I just configured/made/installed this on
> > > Linux Slackware 2.2.10:
> > > 1. Fresh compile of apache 1.3.11 and PHP4.b3
> > > 2. httpd -l
> > > Compiled-in modules:
> > > <other modules snipped>
> > > mod_php4.c
> > > 3. /usr/local/lib/php.ini (the default)
> > > 4. In my httpd.conf:
> > > AddType application/x-httpd-php .php
> > > AddType application/x-httpd-php4 .php
> > > AddType application/x-httpd-php-source .phps
> > > ** I confirmed the use of this file by putting
> > > a syntax error in at the first
> > > AddType line you see above and apachectl configtest found it
> > > 5. Restarted Apache countless times
> > >
> > >
> > > Problem: .php files are asking to be downloaded on the browser side.
> > > The server does not appear to be processing the .php's. Everything
> > > looks right here. What am I doing wrong?
> > >
> > > thanks for reading -
> > > dave
> > >
> > > ==============================================
> > > David McMahon Ph: 617.746.9545
> > > mailto:djm@toolix.com Fax: 617.746.9549
> > > TooliX, Inc. http://www.toolix.com
> > > ==============================================
> > >
> > > --
> > > PHP 4.0 Beta Mailing List <http://www.php.net/version4/¹U
> > > o4¥zÜÔ
ãH>
> > > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php4beta-help@lists.php.net
> > > To contact the list administrators, e-mail:
php4beta-admin@lists.php.net
> > >
> >
>