PHP installed, working from shell but not browser

Discussion in 'Installation/Configuration' started by Kankles, Jan 20, 2006.

  1. Kankles

    Kankles New Member

    any ideas? if i run
    # php index.php

    for example it gives the desired effect.. how ever if i point my browser to /index.php it shows the source code as if it were any other html file.

    i'm running red hat fed 4 and have followed your howto to the letter. -the ispconfig stuff for now.

    thanks,

    kankles
     
  2. falko

    falko Super Moderator Howtoforge Staff

    If you don't use ISPConfig, then have a look again at the Apache/PHP section of the tutorial. Undo all the steps where something PHP-related is commented out in some files and restart Apache.
     
  3. Kankles

    Kankles New Member

    :) thanks very much. i thought that i had done this but i must have forgot to restart, or not saved the document or something.

    just out of interest, why dose ispconfig need it different?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig enables and configures php for each vhost individually. So it must be deactivated in the global configuration.
     
  5. Kankles

    Kankles New Member

    aahh..

    nice:)

    thanks.
     

Share This Page