Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Dec 2006
    Posts
    1

    ...


    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
    Location
    North Carolina
    Posts
    1,077
    so does this file exist libphp5.so and is it located or symlinked in the apache modules directory?

  3. #13
    Just Joined!
    Join Date
    Dec 2006
    Posts
    5

    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.pl 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/libphp5.so

    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/libphp5.so, 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.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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