Can someone help me?

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

    Can someone help me?

    I've been trying to configure php and Apache 1.3.27 on my Windows XP.
    I'm only using the server for myself to learn php. I tried to follow
    what it says in the install.txt file on php, so I already have the
    LoadModule, AddModule, and AddType directives typed into the
    httpb.conf file. I also changed the php.ini file like it said in
    install.txt.

    The server works, but every php file I try to test out makes a
    download prompt come up. (I type in http://localhost/hello.php and it
    tries to download the file instead of just opening it in IE.) It
    works for homemade html files though, so I think that php just isn't
    melding with apache, but I don't know why. Any help would be
    appreciated.

    Darren Yin
  • Bob

    #2
    Re: Can someone help me?

    did you remember to restart the apache server after changing the configuration? =)

    On 18 Jul 2003 13:51:44 -0700
    zyin23@yahoo.co m (Darren Yin) wrote:
    [color=blue]
    > I've been trying to configure php and Apache 1.3.27 on my Windows XP.
    > I'm only using the server for myself to learn php. I tried to follow
    > what it says in the install.txt file on php, so I already have the
    > LoadModule, AddModule, and AddType directives typed into the
    > httpb.conf file. I also changed the php.ini file like it said in
    > install.txt.
    >
    > The server works, but every php file I try to test out makes a
    > download prompt come up. (I type in http://localhost/hello.php and it
    > tries to download the file instead of just opening it in IE.) It
    > works for homemade html files though, so I think that php just isn't
    > melding with apache, but I don't know why. Any help would be
    > appreciated.
    >
    > Darren Yin[/color]

    Comment

    • Jamie C

      #3
      Re: Can someone help me?

      "Darren Yin" <zyin23@yahoo.c om> wrote in message
      news:6eab638.03 07181251.274820 a7@posting.goog le.com...[color=blue]
      > I've been trying to configure php and Apache 1.3.27 on my Windows XP.
      > I'm only using the server for myself to learn php. I tried to follow
      > what it says in the install.txt file on php, so I already have the
      > LoadModule, AddModule, and AddType directives typed into the
      > httpb.conf file. I also changed the php.ini file like it said in
      > install.txt.
      >
      > The server works, but every php file I try to test out makes a
      > download prompt come up. (I type in http://localhost/hello.php and it
      > tries to download the file instead of just opening it in IE.) It
      > works for homemade html files though, so I think that php just isn't
      > melding with apache, but I don't know why. Any help would be
      > appreciated.
      >
      > Darren Yin[/color]

      have you added lines like the 4 bellow to you apache 'httpd.conf' file ??

      start lines-------------

      AddType application/x-httpd-php .phtml .php .php3 .php4
      AddType application/x-httpd-php-source .phps

      ScriptAlias /apache/php/ "c:/apache/php/"
      Action application/x-httpd-php "/apache/php/php.exe"

      end line----------------

      any help??


      Comment

      • Darren Yin

        #4
        Re: Can someone help me?

        "Jamie C" <jamie.c@blueyo nder.co.uk> wrote in message news:<Y70Sa.397 78$4c.28400@new s-binary.blueyond er.co.uk>...[color=blue]
        > "Darren Yin" <zyin23@yahoo.c om> wrote in message
        > news:6eab638.03 07181251.274820 a7@posting.goog le.com...[color=green]
        > > I've been trying to configure php and Apache 1.3.27 on my Windows XP.
        > > I'm only using the server for myself to learn php. I tried to follow
        > > what it says in the install.txt file on php, so I already have the
        > > LoadModule, AddModule, and AddType directives typed into the
        > > httpb.conf file. I also changed the php.ini file like it said in
        > > install.txt.
        > >
        > > The server works, but every php file I try to test out makes a
        > > download prompt come up. (I type in http://localhost/hello.php and it
        > > tries to download the file instead of just opening it in IE.) It
        > > works for homemade html files though, so I think that php just isn't
        > > melding with apache, but I don't know why. Any help would be
        > > appreciated.
        > >
        > > Darren Yin[/color]
        >
        > have you added lines like the 4 bellow to you apache 'httpd.conf' file ??
        >
        > start lines-------------
        >
        > AddType application/x-httpd-php .phtml .php .php3 .php4
        > AddType application/x-httpd-php-source .phps
        >
        > ScriptAlias /apache/php/ "c:/apache/php/"
        > Action application/x-httpd-php "/apache/php/php.exe"
        >
        > end line----------------
        >
        > any help??[/color]

        Actually, I found the problem, just a horrible mistype. It was
        because I had a # sign in front of the stuff I was supposed to add to
        the httpd.conf file. Thanks for your efforts anyways though.

        Comment

        Working...