i just installed php 5 apache 2.0 but the php aint working

Discussion in 'PHP' started by mahmoudhh, Feb 15, 2007.

  1. #1
    hi everyone i installed php 5 and apache 2.0 but it isnt working
    when i open the page in th browser it shows the codes anyone help
     
    mahmoudhh, Feb 15, 2007 IP
  2. Yazari

    Yazari Peon

    Messages:
    180
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Maybe you should verify that apache load the php module.
     
    Yazari, Feb 15, 2007 IP
  3. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Provide us more information like which platform you install and etc...
     
    tanfwc, Feb 15, 2007 IP
  4. rays

    rays Active Member

    Messages:
    563
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    if you are getting php source it means apache is not configured to load php modules.. please provide more details... if you want to save your time and want to install apache, mysql, php then there is one package called XAMPP ... on windows platforms i use this ... www.xampp.org

    more over it is having facility to switch between php 4.4 and php 5
     
    rays, Feb 15, 2007 IP
  5. vivaspots

    vivaspots Peon

    Messages:
    161
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    if you use it locally , why you just use APPSERV software, its free to use and very effective
     
    vivaspots, Feb 15, 2007 IP
  6. phper

    phper Active Member

    Messages:
    247
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #6
    1. In the Apache installation directory, find a file called httpd.conf (it should be in a subdirectory called 'conf/') and open it with your text editor.

    2. Add this line in the httpd.conf file:
    AddType application/x-httpd-php .php

    3. Restart your Apache and see if it works now.


    If with the above steps it still doesn't work, search for this line:
    LoadModule php5_module "/path/to/your/php5/module/file"
    In case it's not obvious, "/path/to/your/php5/module/file" is to be changed to where ever your module file is.
    If you can't find "LoadModule php5_module" in the httpd.conf file, add it yourself, then restart Apache again and see if it works now.

    If it still doesn't work, try re-installing, Apache first, then PHP.
     
    phper, Feb 15, 2007 IP