Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)

    HI:

    Can anyone refer me to someone that can help with the problem below.

    I installed Apache Web Server on my laptop which has Windows XP. I then installed PHP. I followed the directions in the book I had on installing apache and php and what to add to the apache configuration file.

    Here is what is happening: After installing everything, I tested my Apache web server installation first and saw the apache web server page like the book said. Then it said to do a little php program - which had phpinfo() in it. But when I retyped the url I got a message that asked me did I want to download a file, which was the php program file.

    The PHP is 4.3.2 and the apache web server is 2.0. What am I doing wrong? Should I use apache 1.3.2?

    Please help. I understand everything, just don't know why it is prompting me to download a file.

    Thanks.

    Karen






    ---------------------------------
    Do you Yahoo!?
    SBC Yahoo! DSL - Now only $29.95 per month!
    Karen Santmyer Guest

  2. Similar Questions and Discussions

    1. JRun Web Server Config display problem
      Hi, I have the multiserver CF MX7 running on our live server, and have a small problem with the Web Server Configuration app. We have about 50...
    2. CF7 server instance config problem
      Hi all. I have 2 sites in IIS 5-each with their own IP. I installed the multiple instance CF7 configuration (Enterprise). I created an instance in...
    3. mod_perl config problem with apache ?
      Hey all, This should be a simple thing, and I hope its not ... perhaps something very simple and silly is going wrong, but I've exhausted as...
    4. Apache 1.3 config problem
      ----- Original Message ----- From: "Devin B. Hedge" <devinhedge@yahoo.com> To: <beginners@perl.org> Sent: Wednesday, September 17, 2003 2:32 PM...
    5. Problem with Apache Web Server config file and PHP working together Please help!!
      HI: I installed Apache Web Server on my laptop which has Windows XP. I then installed PHP. I followed the directions in the book I had on...
  3. #2

    Default Re: [PHP] Problem with Apache Web Server config file and PHP (pleasegive advice on what problem may be me)

    Did you add these lines to http.conf?:
    LoadModule php4_module c:/php4/sapi/php4apache.dll
    AddModule mod_php4.c
    AddType application/x-httpd-php .php

    If you did, did you restart apache afterwards?


    karen santmyer wrote:
    > HI:
    >
    > Can anyone refer me to someone that can help with the problem below.
    >
    > I installed Apache Web Server on my laptop which has Windows XP. I then installed PHP. I followed the directions in the book I had on installing apache and php and what to add to the apache configuration file.
    >
    > Here is what is happening: After installing everything, I tested my Apache web server installation first and saw the apache web server page like the book said. Then it said to do a little php program - which had phpinfo() in it. But when I retyped the url I got a message that asked me did I want to download a file, which was the php program file.
    >
    > The PHP is 4.3.2 and the apache web server is 2.0. What am I doing wrong? Should I use apache 1.3.2?
    >
    > Please help. I understand everything, just don't know why it is prompting me to download a file.
    >
    > Thanks.
    >
    > Karen
    >
    >
    >
    >
    >
    >
    > ---------------------------------
    > Do you Yahoo!?
    > SBC Yahoo! DSL - Now only $29.95 per month!
    Marek Kilimajer Guest

  4. #3

    Default Re: Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)

    It prompts you for downloading the file because Apache doesn't recognize it
    as a PHP-file but sends it directly to the browser. The browser then doesn't
    find any known extension (.txt, .htm, .html) and prompts for download.

    As Marek allready explained, you need to configure Apache to recognize .php
    files. Marek sent you the lines you need already. I may add that maybe these
    lines need to be different with your Apache version (2), check the
    install.txt in your PHP directory for that. You may also need to replace the
    directoryname in de config lines for where your PHP is.

    Good luck!

    --
    [Win2000 | Apache/1.3.23]
    [PHP/4.2.3 | MySQL/3.23.53]

    Ivo Fokkema
    PHP & MySQL programmer
    Leiden University Medical Centre
    Netherlands

    "Karen Santmyer" <ksantmyer@yahoo.com> wrote in message
    news:20030716155109.66478.qmail@web40613.mail.yaho o.com...
    > HI:
    >
    > Can anyone refer me to someone that can help with the problem below.
    >
    > I installed Apache Web Server on my laptop which has Windows XP. I
    then installed PHP. I followed the directions in the book I had on
    installing apache and php and what to add to the apache configuration file.
    >
    > Here is what is happening: After installing everything, I tested my
    Apache web server installation first and saw the apache web server page like
    the book said. Then it said to do a little php program - which had
    phpinfo() in it. But when I retyped the url I got a message that asked me
    did I want to download a file, which was the php program file.
    >
    > The PHP is 4.3.2 and the apache web server is 2.0. What am I doing
    wrong? Should I use apache 1.3.2?
    >
    > Please help. I understand everything, just don't know why it is
    prompting me to download a file.
    >
    > Thanks.
    >
    > Karen
    >
    >
    >
    >
    >
    >
    > ---------------------------------
    > Do you Yahoo!?
    > SBC Yahoo! DSL - Now only $29.95 per month!

    Ivo Fokkema Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139