Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.