Apache does not excecute PHP commands - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Apache does not excecute PHP commands

helshels Posts: 1Member
Hi,
I have installed Debian Linux.
I have Apache 1.3.26 installed; works fine.
After that i installed PHP through the normal 'dselect' setup tool.

If i create a file 'phpinfo.php': <?php phpinfo(); ?>

When i call this script in my browser, i had expected to get some info; however, my browser tries to download the 'source' instead of executing it.

I obviously am missing a (trivial?) setting somewhere, that Debian does not create automatically.

Anybody an idea ???
Thanks in advance.

Comments

  • JonathanJonathan Posts: 2,914Member
    : Hi,
    : I have installed Debian Linux.
    : I have Apache 1.3.26 installed; works fine.
    : After that i installed PHP through the normal 'dselect' setup tool.
    :
    : If i create a file 'phpinfo.php': <?php phpinfo(); ?>
    :
    : When i call this script in my browser, i had expected to get some info; however, my browser tries to download the 'source' instead of executing it.
    :
    : I obviously am missing a (trivial?) setting somewhere, that Debian does not create automatically.
    :
    : Anybody an idea ???
    : Thanks in advance.
    :
    I believe you have to do stuff in your httpd.conf. There is plenty of info here:-
    http://www.php.net/manual/en/installation.php

    Look at docs for Apache or Apache 2 depending on what your distro ships with/you've installed.

    Hope this helps,

    Jonathan

    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Sign In or Register to comment.