Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11


    I'm having the same problem. I've been banging my head against the wall for the last 36 hours... PHP will not parse the files, I'm just getting a "download" notification from the browser.

  2. #12
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    North Carolina
    so does this file exist and is it located or symlinked in the apache modules directory?

  3. #13

    Cool two lines is all you need

    Change /etc/httpd/conf/httpd.conf

    append entries to DirectoryIndex:

    DirectoryIndex index.php index.php4 index.php3 index.cgi index.html index.htm index.shtml index.phtml

    add the line somewhere:

    AddType application/x-httpd-php .php

    If httpd does not have php compiled in, you might need to add the following to the LoadModule block:

    LoadModule php5_module path/to/your/php/module

    on FC5, this would be

    LoadModule php5_module modules/

    Remember that the path is relative to the ServerRoot defined at the beginning of the httpd.conf. In my case, ServerRoot "/etc/httpd".
    Other distros will have webexec/, and/or require

    AddModule mod_php5.c

    underneath. Just have a look at the other entries in httpd.conf.

    I have reported this omission to Fedora bugzilla, hopefully future updates will run PHP out of the box. There's probably some twisted security ******** reason why they disabled it. Some Linux people seem to have the philosophy that broken = secure, I reckon a Apache server without PHP support... is useless. Most of the web runs on PHP code now. Jeez.

  4. $spacer_open

Posting Permissions

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