php files downloading

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

    php files downloading

    Hi,
    Can anyone suggest me why some .php files are downloading and some are
    executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
    along with Fedora 4. I downloaded php from the site and built it


    Thanks
    Danish

  • shimmyshack

    #2
    Re: php files downloading

    On 16 Feb, 10:32, "danish" <me.linuxad...@ gmail.comwrote:
    Hi,
    Can anyone suggest me why some .php files are downloading and some are
    executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
    along with Fedora 4. I downloaded php from the site and built it
    >
    Thanks
    Danish
    short tags?

    <? instead of <?php

    Comment

    • danish

      #3
      Re: php files downloading

      On Feb 16, 3:53 pm, "shimmyshac k" <matt.fa...@gma il.comwrote:
      On 16 Feb, 10:32, "danish" <me.linuxad...@ gmail.comwrote:
      >
      Hi,
      Can anyone suggest me why some .php files are downloading and some are
      executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
      along with Fedora 4. I downloaded php from the site and built it
      >
      Thanks
      Danish
      >
      short tags?
      >
      <? instead of <?php
      Its not making any difference. I changed it bothways

      Danish

      Comment

      • danish

        #4
        Re: php files downloading

        On Feb 16, 4:15 pm, "danish" <me.linuxad...@ gmail.comwrote:
        On Feb 16, 3:53 pm, "shimmyshac k" <matt.fa...@gma il.comwrote:
        >
        On 16 Feb, 10:32, "danish" <me.linuxad...@ gmail.comwrote:
        >
        Hi,
        Can anyone suggest me why some .php files are downloading and some are
        executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
        along with Fedora 4. I downloaded php from the site and built it
        >
        Thanks
        Danish
        >
        short tags?
        >
        <? instead of <?php
        >
        Its not making any difference. I changed it bothways
        >
        Danish
        Hi...I found out that this downloading option only comes when the
        index.php file is accesses by giving the full url...

        eg...http://192.168.1.1/inventory/index.php

        Comment

        • Mityok

          #5
          Re: php files downloading

          On Feb 16, 1:50 pm, "danish" <me.linuxad...@ gmail.comwrote:
          On Feb 16, 4:15 pm, "danish" <me.linuxad...@ gmail.comwrote:
          >
          >
          >
          On Feb 16, 3:53 pm, "shimmyshac k" <matt.fa...@gma il.comwrote:
          >
          On 16 Feb, 10:32, "danish" <me.linuxad...@ gmail.comwrote:
          >
          Hi,
          Can anyone suggest me why some .php files are downloading and some are
          executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
          along with Fedora 4. I downloaded php from the site and built it
          >
          Thanks
          Danish
          >
          short tags?
          >
          <? instead of <?php
          >
          Its not making any difference. I changed it bothways
          >
          Danish
          >
          Hi...I found out that this downloading option only comes when the
          index.php file is accesses by giving the full url...
          >
          eg...http://192.168.1.1/inventory/index.php
          Check the httpd.conf Content-type settings for lines related to PHP5.
          If you have module-based PHP installation, there should be line like
          that:

          LoadModule php5_module "path-to-your-php-module"

          Also,check the mime.types file. There should be lines

          application/x-httpd-php php
          application/x-httpd-php-source phps



          Comment

          • Jerry Stuckle

            #6
            Re: php files downloading

            danish wrote:
            On Feb 16, 4:15 pm, "danish" <me.linuxad...@ gmail.comwrote:
            >On Feb 16, 3:53 pm, "shimmyshac k" <matt.fa...@gma il.comwrote:
            >>
            >>On 16 Feb, 10:32, "danish" <me.linuxad...@ gmail.comwrote:
            >>>Hi,
            >>>Can anyone suggest me why some .php files are downloading and some are
            >>>executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
            >>>along with Fedora 4. I downloaded php from the site and built it
            >>>Thanks
            >>>Danish
            >>short tags?
            >><? instead of <?php
            >Its not making any difference. I changed it bothways
            >>
            >Danish
            >
            Hi...I found out that this downloading option only comes when the
            index.php file is accesses by giving the full url...
            >
            eg...http://192.168.1.1/inventory/index.php
            >
            This would be an Apache configuration problem, not PHP. I'd recommend
            you check in alt.apache.conf iguration. They'll want to know what's in
            your httpd.conf file.

            --
            =============== ===
            Remove the "x" from my email address
            Jerry Stuckle
            JDS Computer Training Corp.
            jstucklex@attgl obal.net
            =============== ===

            Comment

            • IchBin

              #7
              Re: php files downloading

              Jerry Stuckle wrote:
              danish wrote:
              >On Feb 16, 4:15 pm, "danish" <me.linuxad...@ gmail.comwrote:
              >>On Feb 16, 3:53 pm, "shimmyshac k" <matt.fa...@gma il.comwrote:
              >>>
              >>>On 16 Feb, 10:32, "danish" <me.linuxad...@ gmail.comwrote:
              >>>>Hi,
              >>>>Can anyone suggest me why some .php files are downloading and some are
              >>>>executing . Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
              >>>>along with Fedora 4. I downloaded php from the site and built it
              >>>>Thanks
              >>>>Danish
              >>>short tags?
              >>><? instead of <?php
              >>Its not making any difference. I changed it bothways
              >>>
              >>Danish
              >>
              >Hi...I found out that this downloading option only comes when the
              >index.php file is accesses by giving the full url...
              >>
              >eg...http://192.168.1.1/inventory/index.php
              >>
              >
              This would be an Apache configuration problem, not PHP. I'd recommend
              you check in alt.apache.conf iguration. They'll want to know what's in
              your httpd.conf file.
              >
              In the Apache config make sure you added index.php to DirectoryIndex.

              Example:

              DirectoryIndex index.html index.html.var index.php
              --
              Thanks in Advance... http://weconsultants.prophp.org
              IchBin, Pocono Lake, Pa, USA http://ichbinquotations.awardspace.com
              _______________ _______________ _______________ _______________ __________
              'If there is one, Knowledge is the "Fountain of Youth"'
              -William E. Taylor, Regular Guy (1952-)

              Comment

              • danish

                #8
                Re: php files downloading

                On Feb 16, 7:48 pm, "Mityok" <mit...@gmail.c omwrote:
                On Feb 16, 1:50 pm, "danish" <me.linuxad...@ gmail.comwrote:
                >
                >
                >
                On Feb 16, 4:15 pm, "danish" <me.linuxad...@ gmail.comwrote:
                >
                On Feb 16, 3:53 pm, "shimmyshac k" <matt.fa...@gma il.comwrote:
                >
                On 16 Feb, 10:32, "danish" <me.linuxad...@ gmail.comwrote:
                >
                Hi,
                Can anyone suggest me why some .php files are downloading and some are
                executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
                along with Fedora 4. I downloaded php from the site and built it
                >
                Thanks
                Danish
                >
                short tags?
                >
                <? instead of <?php
                >
                Its not making any difference. I changed it bothways
                >
                Danish
                >
                Hi...I found out that this downloading option only comes when the
                index.php file is accesses by giving the full url...
                >>
                Check the httpd.conf Content-type settings for lines related to PHP5.
                If you have module-based PHP installation, there should be line like
                that:
                >
                LoadModule php5_module "path-to-your-php-module"
                >
                Also,check the mime.types file. There should be lines
                >
                application/x-httpd-php php
                application/x-httpd-php-source phps
                application/x-httpd-php php
                application/x-httpd-php-source phps
                These lines are not present in mime.types file but in httpd.conf
                file. The LoadModule directive is also present in the httpd.conf file


                Comment

                • danish

                  #9
                  Re: php files downloading

                  On Feb 16, 9:40 pm, IchBin <wecon...@ptd.n etwrote:
                  Jerry Stuckle wrote:
                  danish wrote:
                  On Feb 16, 4:15 pm, "danish" <me.linuxad...@ gmail.comwrote:
                  >On Feb 16, 3:53 pm, "shimmyshac k" <matt.fa...@gma il.comwrote:
                  >
                  >>On 16 Feb, 10:32, "danish" <me.linuxad...@ gmail.comwrote:
                  >>>Hi,
                  >>>Can anyone suggest me why some .php files are downloading and some are
                  >>>executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
                  >>>along with Fedora 4. I downloaded php from the site and built it
                  >>>Thanks
                  >>>Danish
                  >>short tags?
                  >><? instead of <?php
                  >Its not making any difference. I changed it bothways
                  >
                  >Danish
                  >
                  Hi...I found out that this downloading option only comes when the
                  index.php file is accesses by giving the full url...
                  >>
                  This would be an Apache configuration problem, not PHP. I'd recommend
                  you check in alt.apache.conf iguration. They'll want to know what's in
                  your httpd.conf file.
                  >
                  In the Apache config make sure you added index.php to DirectoryIndex.
                  >
                  Example:
                  >
                  DirectoryIndex index.html index.html.var index.php
                  --
                  Thanks in Advance... http://weconsultants.prophp.org
                  IchBin, Pocono Lake, Pa, USA http://ichbinquotations.awardspace.com
                  _______________ _______________ _______________ _______________ __________
                  'If there is one, Knowledge is the "Fountain of Youth"'
                  -William E. Taylor, Regular Guy (1952-)

                  Thanks for the help Jerry. Ill be posting in the
                  alt.apache.conf iguration group.

                  Ichbin..

                  I do have index.php in the DirectoryIndex directive

                  Danish


                  Comment

                  Working...