installing php on apache2/windows xp

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

    installing php on apache2/windows xp

    hello!

    i am a newbie and 'am trying to install php 5.0.3 on apache 2.0.52 on
    windows xp sp1.

    the problem i am getting is whenever i call a .php page in my web
    browser e.g. http://localhost/test.php, contents on test.php file are
    displayed on web browser, instead on the result. e.g. my test.php file
    has:

    Today's date is: <? print (date ("M d, Y")); ?>

    this whole message is displayed when i call http://localhost/test.php
    instead of today;s date.

    i am a newbie and don't know much.

    i shall greatly appreciate if you can help me out.
    thanks for looking,

    regards,
    siddharth

  • Schraalhans Keukenmeester

    #2
    Re: installing php on apache2/windows xp

    Sid wrote:[color=blue]
    > hello!
    >
    > i am a newbie and 'am trying to install php 5.0.3 on apache 2.0.52 on
    > windows xp sp1.
    >
    > the problem i am getting is whenever i call a .php page in my web
    > browser e.g. http://localhost/test.php, contents on test.php file are
    > displayed on web browser, instead on the result. e.g. my test.php file
    > has:
    >[/color]
    Did you tell Apache to use the php_module and what to do with php
    extensions ? Is your php.ini correct and in the correct place ?

    (See the PHP install readme for details on how to)
    HTH
    Schraalhans

    Comment

    • Rex Karz

      #3
      Re: installing php on apache2/windows xp

      Sid wrote:[color=blue]
      > hello!
      >
      > i am a newbie and 'am trying to install php 5.0.3 on apache 2.0.52 on
      > windows xp sp1.
      >[/color]

      Save yourself much trouble.
      Install XAMPP.


      xampp contains apache, PHP, MySQL, and some other related
      open-source packages.

      XAMPP is the best solution to developing web content on a Windows
      box where the intended target platform for actual hosting is a
      Unix host.

      --
      The name, "Rex Karz" is a pseudonym. The From: email address
      is a spam trap. Messages sent to that address may cause the
      sender's IP-address to be listed in one or more DNSBls.

      Comment

      • Manzoorul  Hassan

        #4
        Re: installing php on apache2/windows xp

        I have installed PHP v5.0.3 and Apache 2.0.53 on my Windows XP system
        and am trying to cofigure PHP as a Module. I tried following the
        Documentation on PHP.net
        (http://us2.php.net/manual/en/install...ws.apache2.php) but I didn't
        find the php5apache2.dll as the doc was expecting me to set

        LoadModule php5_module "c:/php/php5apache2.dll "

        But there is a php5ts.dll, so I just set the LoadModule ot point ot it.

        Now Apache will not start :o(

        What am I doing wrong? Please help.

        - manzoor

        Comment

        • steve

          #5
          Re: Re: installing php on apache2/windows xp

          "Rex Karz" wrote:[color=blue]
          > Sid wrote:[color=green]
          > > hello!
          > >
          > > i am a newbie and 'am trying to install php 5.0.3 on apache[/color]
          > 2.0.52 on[color=green]
          > > windows xp sp1.
          > >[/color]
          >
          > Save yourself much trouble.
          > Install XAMPP.
          > http://www.apachefriends.org/en/xampp.html
          >
          > xampp contains apache, PHP, MySQL, and some other related
          > open-source packages.
          >
          > XAMPP is the best solution to developing web content on a
          > Windows
          > box where the intended target platform for actual hosting is a
          >
          > Unix host.
          >
          > --
          > The name, "Rex Karz" is a pseudonym. The From: email address
          > is a spam trap. Messages sent to that address may cause the
          > sender's IP-address to be listed in one or more DNSBls.[/color]

          I also recommend using a package. It will save you all the trouble
          and isolates you from detail that you really don’t need to know. I
          use appserv.

          --
          Posted using the http://www.dbforumz.com interface, at author's request
          Articles individually checked for conformance to usenet standards
          Topic URL: http://www.dbforumz.com/PHP-installi...ict189896.html
          Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=678608

          Comment

          • Manzoorul  Hassan

            #6
            Re: installing php on apache2/windows xp

            Thanx.

            "appserv" (http://www.appservnetwork.com/) seems like a Windows only
            solution. I need to the same on Linux. What would be a comparable
            solution there?

            - manzoor

            Comment

            • steve

              #7
              Re: Re: installing php on apache2/windows xp

              "user2718" wrote:[color=blue]
              > Thanx.
              >
              > "appserv" (http://www.appservnetwork.com/) seems like a
              > Windows only
              > solution. I need to the same on Linux. What would be a
              > comparable
              > solution there?
              >
              > - manzoor[/color]

              xampp recommended in earlier posts also works for Linux....

              --
              Posted using the http://www.dbforumz.com interface, at author's request
              Articles individually checked for conformance to usenet standards
              Topic URL: http://www.dbforumz.com/PHP-installi...ict189896.html
              Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=679229

              Comment

              • Jerry Stuckle

                #8
                Re: installing php on apache2/windows xp

                Manzoorul Hassan wrote:[color=blue]
                >
                > I have installed PHP v5.0.3 and Apache 2.0.53 on my Windows XP system
                > and am trying to cofigure PHP as a Module. I tried following the
                > Documentation on PHP.net
                > (http://us2.php.net/manual/en/install...ws.apache2.php) but I didn't
                > find the php5apache2.dll as the doc was expecting me to set
                >
                > LoadModule php5_module "c:/php/php5apache2.dll "
                >
                > But there is a php5ts.dll, so I just set the LoadModule ot point ot it.
                >
                > Now Apache will not start :o(
                >
                > What am I doing wrong? Please help.
                >
                > - manzoor[/color]

                Manzoor,

                Why don't you have a php5apache2.dll module? This is the one you need
                to load, as per the documentation, and it exists on my system.

                Check to ensure you downloaded the correct file.

                --

                To reply, delete the 'x' from my email
                Jerry Stuckle,
                JDS Computer Training Corp.
                jstucklex@attgl obal.net
                Member of Independent Computer Consultants Association - www.icca.org

                Comment

                Working...