Announcement

Collapse
No announcement yet.

Apache2 + PHP Problem

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Apache2 + PHP Problem

    Hi all,

    I have recently installed a LAMP server on my machine, using the tasksel method. Unfortunately, PHP is not parsing correctly.
    It must be parsing, as I am not being asked to download a file, yet all I get is a blank screen, even when the only code is for phpinfo();

    The HTML is displaying correctly.

    I have changed the DocumentRoot in Apache2 in to my user folder, for my convenience (it is my own testing/development machine and will never actually go online). Do I need to do anything to PHP configurations?

    Thanks for any help, this is becoming a frustrating problem.

    SM

    #2
    Re: Apache2 + PHP Problem

    Rename the file to something.php not .html; that way the PHP parser will be called rather than the HTML one.

    If that doesn't work, add the following to the httpd.conf file
    AddType application/x-httpd-php .php

    Comment

    Working...
    X