PHP problems

edited October 2004 in Software
just installed the latest apache 1.3X, but my problems come when i try to serve a .php page. it shows text. i copied php4apache.dll to C:\apache\modules, copied php4ts.dll to win32, i set in the httpd.conf for the index to be index.php. what have i left out?

Comments

  • did u add the module definitions in the httpd.conf?
  • # Add to the end of the LoadModule section
    LoadModule php5_module "c:/php/php5apache.dll"

    # Add to the end of the AddModule section
    AddModule mod_php5.c
  • i use php 4.x so in the module code i substitute 5 for 4?
  • still get all text after adding those to my httpd.conf (substituting the 5's for 4's)
  • oh my mistake
    lemme get u the right code.

    # Add to the end of the LoadModule section
    LoadModule php4_module "c:/php/sapi/php4apache.dll"

    # Add to the end of the AddModule section
    AddModule mod_php4.c
  • grrrr. it works fine on internet exploder. but when i try to go to it on mozilla i get text. www.chaoticorder.info anybody see a problem in the code that makes mozilla not display it as a page?
  • I put it on http://fishnet.no-ip.org:81/test/ and it works fine for me LOL
  • ok, it works with IE, so i am guessing that my php is somewhat functional. the php code itself seems to be sound, given the fact that it runs fine when tim mirrors it, its just when i run the page with mozilla that it gives me the uninterpreted source
  • fishnet just fixed the problem- i forgot to add AddType application/x-httpd-php .php .htm .html after the addmodules. thanks for all the help everyone now i can start development!
  • The user and all related content has been deleted.
  • *Moved to Servers Support*

    -Q

    PS. Congrats on getting it up and running.

    PPS. Interesting flag...
Sign In or Register to comment.