Doing something silly in installing PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fensic
    New Member
    • Aug 2006
    • 4

    Doing something silly in installing PHP

    Hello everyone.

    I am having a problem installing and configuring PHP 5.1.6. Initially I had it installed and working with Apache 2.2.3 and MySQL 5.0.24 but decided to abort and redo the installation when I had problems getting phpMyAdmin to work.

    So far I seem to have gotten Apache up as I get the "It Works!" when I enter "http//localhost" into my browser.

    I am trying to reinstall PHP now but when I enter "http://localhost/phpinfo.php" into my browser, I get my script back in response:

    <? echo phpinfo() ?>

    Does my problem ring a bell with anyone so that they can point me to an obvious error? I have gone through php.ini and http.conf until I am blue in the face and cannot find what I am doing wrong and I have been around computers long enough to suspect that it is something simple.

    H E L P ? ?
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    All your script should contain is
    [PHP]<?php
    phpinfo();
    ?>[/PHP]

    Ronald :cool:

    Comment

    • Fensic
      New Member
      • Aug 2006
      • 4

      #3
      Originally posted by ronverdonk
      All your script should contain is
      [PHP]<?php
      phpinfo();
      ?>[/PHP]

      Ronald :cool:
      Unfortunately Ronald that did not solve my problem as I still get the script as my results. I think I need to go back to the beginning on this and try again. I will report any progress I make. All suggestions are still welcome in the meantime.

      Comment

      • rkagrawal
        New Member
        • Aug 2006
        • 13

        #4
        Its not a problem with PHPINFO.php .
        Its a problem with your "server" . Its unable to parse the PHP , rather its returning back the same text as contained.

        You should uninstall the full thing and go for XAMPP.
        www.apachefrien ds.org

        Or do a google search and download EASYPHP , thats good too.

        If you face any similar problem , you can let us know here.

        Rahul Agrawal
        Developer
        Web2003 Corporation
        www.web2003corp .com

        Comment

        • plumpnation
          New Member
          • Sep 2006
          • 16

          #5
          you should check your apache configuration file as well so that it knows where php is. I think. I'm new to all this but have had this problem before. I think.

          Oh well, bye.

          Comment

          Working...