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. apache server problem
    By pankajkarde in forum Redhat / Fedora
    Replies: 2
    Last Post: 01-17-2007, 10:16 AM
  2. Instaklling Apache with PHP Problem
    By omidkamangar in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 10-24-2006, 04:30 PM
  3. problem with configuring apache
    By leva008 in forum Linux - General Topics
    Replies: 3
    Last Post: 04-22-2005, 09:28 PM
  4. Apache Authentication Problem
    By rhonneil in forum Linux - General Topics
    Replies: 2
    Last Post: 11-10-2003, 08:49 AM
  5. Problem starting Apache 2.0
    By Compunuts in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 09-14-2003, 02:15 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
  •