Results 1 to 5 of 5

Thread: Apache and PHP problem

  1. #1

    Apache and PHP problem

    I have my apache and php installed .. but when i tried to surf http://localhost/index.php .. all i can see is the code of index.php ... can any help me where i can configure this kind of problem? is it with my apache or php itself ? thanks in advance.
    :: nocturnal taciturn ::

  2. #2
    Associate
    Join Date
    Feb 2005
    Posts
    22

    Re: Apache and PHP problem

    Quote Originally Posted by root
    I have my apache and php installed .. but when i tried to surf http://localhost/index.php .. all i can see is the code of index.php ... can any help me where i can configure this kind of problem? is it with my apache or php itself ? thanks in advance.
    more often than not, this is a misconfiguration of your httpd.conf file (or lack of configuration). have you added a handler for your php file?

    e.g.,
    AddType application/x-httpd-php .php

    better yet, if you can post your "additional configurations" for your apache config to make php work, would greatly clear things up

  3. #3

    Re: Apache and PHP problem

    e.g.,
    AddType application/x-httpd-php .php

    yes, i have already added it .. and when i tried again .. there's a window that will pop out:

    Open 'http://127.0.0.1/admin'?
    Type: application/x-httpd-php

    and there's an option to save, open and cancel
    :: nocturnal taciturn ::

  4. #4
    Associate
    Join Date
    Feb 2005
    Posts
    22

    Re: Apache and PHP problem

    have you loaded the php module in your apache config?
    example:
    LoadModule foo_module modules/mod_foo.so

    if you could please post the additions you made to your httpd.conf, it would really make things easier...


  5. #5

    Re: Apache and PHP problem

    @hombre: you are really good at this :-)

    *bows to hombre*

Similar Threads

  1. Instaklling Apache with PHP Problem
    By omidkamangar in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 10-24-2006, 04:30 PM
  2. PHP Tutorial
    By Waka-Gashira in forum Windows - General Topics
    Replies: 8
    Last Post: 01-27-2005, 08:10 AM
  3. Apache, PHP, MySQL
    By vwgtiturbo in forum Linux - Software, Applications & Programming
    Replies: 8
    Last Post: 11-24-2003, 03:57 AM
  4. Apache php page cannot be loaded
    By rhonneil in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 10-31-2003, 07:34 AM
  5. PHP takes ASP as Number 1 SSSL
    By coltrane in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 07-04-2002, 03:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •