Errors while view php file on my computer

Discussion in 'Apache' started by sugarland, Aug 4, 2009.

  1. #1
    Just downloaded apache, php5.3 and installed on my computer, and followed the step by step guide from this site: http://www.thesitewizard.com/apache/install-apache-on-vista.shtml and http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml to config the apache and php, and now the apache server runs normally on my computer.

    But after i make a simple page like with <?php echo phpinfo(); ?>, and when copied the file to htdocs folder and trying to view it in my browser by typing http://localhost/test.php, it showed the following. What's wrong with my apache and php settings?

    BTW, my computer is installed Windows Vista Home Edition. Also I deleted the conf and htdocs from the original installed directory, and made another "apache" directory to my desktop, and copied the 2 directory under "apache".
     
    Last edited: Aug 4, 2009
    sugarland, Aug 4, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No clue, but instead of manually installing apache/php/mysql you should just use XAMPP or WAMP to minimize user error.
     
    premiumscripts, Aug 5, 2009 IP
  3. sugarland

    sugarland Member

    Messages:
    105
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #3
    I just want to install them one by one, since i need to know how to install lamp on my linux server in future.
     
    sugarland, Aug 5, 2009 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    There is a big difference on installing things in Windows and installing things in Linux. That being said, from your issue above it looks as if you may have missed a step in the tutorial. Did you set it up as a module, or cgi binary?
     
    RHS-Chris, Aug 5, 2009 IP
  5. sugarland

    sugarland Member

    Messages:
    105
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #5
    I followed the tutorial step by step, and i didn't miss any steps, since I configured the apache and php.ini 2 times. I set it up as a module.
     
    sugarland, Aug 5, 2009 IP
  6. sugarland

    sugarland Member

    Messages:
    105
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #6
    Problem solved. I just downloaded another cvs version php and configured it again, it's working.
     
    sugarland, Aug 5, 2009 IP