#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    14
    Hi all,

    It probably has been asked several times before and I posted this in the Apache newsgroup as well, but I can't seem to get is all done.

    I installed Apache (1.3.12 If I'm correct) and it's working. I installed PHP 3 and when I execute a script from my explorer I get the right output, but when I do a request form my browser it starts downloading the file.

    I added the scriptalias, Addtype and AddHandler to the httpd.conf, but I don't know what to do anymore

    Can somebody help me.
    BR Bas
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    33
    Rep Power
    14
    If Apache is working okay (there's a start page whenever you type localhost in the address line, isn't there?), then you only need to configure PHP to work with it. You should have configured php3.ini file that goes into Windows dir, and add type to httpd.conf. If you did all this, I can e-mail you conf scripts - write me at stanis@sibfair.nsk.su
    Stas
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    14
    Thanks for your reply, but fortunately I got it working yesterday. I had configured everything right, but I was not thinking clearly.

    I wanted to use SSI with PHP, but hadn't heard of the include() function in PHP, so I added the

    AddHandles server-parsed .php3 to my httpd.conf

    When I removed this everything worked fine

    Thanks Bas

Similar Threads

  1. Apache 2 and PHP 4
    By stanley1610 in forum Apache Development
    Replies: 2
    Last Post: February 12th, 2004, 08:20 PM
  2. php for apache
    By wannabe in forum Beginner Programming
    Replies: 3
    Last Post: February 6th, 2004, 02:28 PM
  3. PHP -> system commands
    By Tantalus in forum PHP Development
    Replies: 1
    Last Post: January 28th, 2004, 10:51 AM
  4. Can PHP interpret Apache Directory Protection?
    By xpatriot in forum PHP Development
    Replies: 1
    Last Post: January 25th, 2004, 01:51 PM
  5. UnixODBC + PHP + Apache + Empress
    By coder4hire in forum Database Management
    Replies: 0
    Last Post: January 15th, 2004, 01:41 PM

IMN logo majestic logo threadwatch logo seochat tools logo