browser tries to download .php files instead of executing them

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JT

    browser tries to download .php files instead of executing them

    I'm running Redhat 9 and just upgraded from PHP 4.2.x to 4.3.1 and no
    when I try to execute a script on my local server here it opens a
    window to try and download any .php files. I think Apache isn't
    loading the module, but when I add in:

    LoadModule php4_module modules/libphp4.so

    it can't find the module and I can't find it on my system under
    libexec or modules or anywhere else for that matter. What do I need
    to do to httpd.conf (or php.ini) to make it execute these scripts?

    Thanks in advance.
  • Louis-Philippe Huberdeau

    #2
    Re: browser tries to download .php files instead of executing them

    You probably forgot a line in the configuration file:

    AddType application/x-httpd-php .php

    JT wrote:[color=blue]
    > I'm running Redhat 9 and just upgraded from PHP 4.2.x to 4.3.1 and no
    > when I try to execute a script on my local server here it opens a
    > window to try and download any .php files. I think Apache isn't
    > loading the module, but when I add in:
    >
    > LoadModule php4_module modules/libphp4.so
    >
    > it can't find the module and I can't find it on my system under
    > libexec or modules or anywhere else for that matter. What do I need
    > to do to httpd.conf (or php.ini) to make it execute these scripts?
    >
    > Thanks in advance.[/color]

    Comment

    • Allodoxaphobia

      #3
      Re: browser tries to download .php files instead of executing them

      On Sun, 19 Oct 2003 14:20:07 -0400, Louis-Philippe Huberdeau hath writ:
      [color=blue]
      > You probably forgot a line in the configuration file:
      >
      > AddType application/x-httpd-php .php[/color]

      Or, (but unlikely...) , you're loading it by file reference
      rather than by ip reference.

      Jonesy
      --
      | Marvin L Jones | jonz | W3DHJ | OS/2
      | Gunnison, Colorado | @ | Jonesy | linux __
      | 7,703' -- 2,345m | config.com | DM68mn SK

      Comment

      • JT

        #4
        Re: browser tries to download .php files instead of executing them

        No, I've had that line in there all along, this is good one....

        Louis-Philippe Huberdeau <lphuberdeau@sy mpatico.ca> wrote in message news:<mGAkb.193 5$7t3.23843@new s20.bellglobal. com>...[color=blue]
        > You probably forgot a line in the configuration file:
        >
        > AddType application/x-httpd-php .php
        >
        > JT wrote:[color=green]
        > > I'm running Redhat 9 and just upgraded from PHP 4.2.x to 4.3.1 and no
        > > when I try to execute a script on my local server here it opens a
        > > window to try and download any .php files. I think Apache isn't
        > > loading the module, but when I add in:
        > >
        > > LoadModule php4_module modules/libphp4.so
        > >
        > > it can't find the module and I can't find it on my system under
        > > libexec or modules or anywhere else for that matter. What do I need
        > > to do to httpd.conf (or php.ini) to make it execute these scripts?
        > >
        > > Thanks in advance.[/color][/color]

        Comment

        Working...