apache php configuration

Discussion in 'Apache' started by samzi, Feb 13, 2007.

  1. #1
    hi,
    i have installed apache 2.2.4 on my linux box and it says "it works"

    i have installed php and ran a sample program in shell even that works.

    configured httpd to load php5 module and read .php

    configured php for apxs2 mysql

    copied the php.ini-dist file to /usr/local/lib

    created a test.php file in htdocs

    when i type http://localhost/test.php i get a blank screen!!

    any idea where i have missed and what
     
    samzi, Feb 13, 2007 IP
  2. samzi

    samzi Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i removed the line "AddType text/html php"

    restarted apache and it worked!!
     
    samzi, Feb 13, 2007 IP
  3. pondlife

    pondlife Peon

    Messages:
    898
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Isn't that always the way; you ask someone and then, almost immediately, you figure it out for yourself!
     
    pondlife, Feb 13, 2007 IP