Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: need a little direction

  1. #1
    Join Date
    Sep 2002
    Posts
    11
    Rep Power
    0

    Default need a little direction

    :-\well, my dilemma is this. I downloaded and successfully installed (at least I think I did) apache web server and the "runtime environment" for pHp but I don't know if it works. whenever I try to run a pHp script, I'm getting a prompt to download the pHp file from the localhost (NB. I'm using my PC as webserver). I'm thinking one of the configurations in the httpd.conf file are incorrect but I can't tell which one. I was sure to follow all the instructions... the php file is in the apache root dir (htdocs) and the file extension is correct but I'm not sure how exactly to manipulate the Scriptaliases and Action lines to make them match up.

    can anyone give me some pointers as to where I could've gone wrong while installing?

  2. #2
    Join Date
    Jul 2002
    Posts
    5,446
    Rep Power
    10

    Default Re:need a little direction

    Questions:
    1. what OS ar you running?
    2. what versions of apache and PHP have you installed?

    These might seem like stupid questions but I had issues with Apache 2.x and PHP 4.x on a Win 98 machine (don't laugh :-[). I ended up using Apache 1.23 and PHP 4.x.

  3. #3
    Join Date
    Sep 2002
    Posts
    11
    Rep Power
    0

    Default Re:need a little direction

    well I'm using windows ME , and I've installed pHp 4.2.3 and apache HTTP server 2.0.40

  4. #4
    Join Date
    Jul 2002
    Posts
    170
    Rep Power
    0

    Default Re:need a little direction

    All I have to say is ;D hehe hehe - just kidding. I had problems with it too - maybe not the same one - but hey - this is where i turned to (below).


    http://www.phpbuilder.com/columns/moon19990716.php3
    http://www.phpbuilder.com/columns/boutwell19991212.php3
    http://www.phpbuilder.com/columns/suyoto20010809.php3

    Those pages have links to other stuff that should help you out. - You too Chris. I fixed my problem - hope you have the same luck with yours.
    Are you using latest version - http://www.php.net/downloads.php - the link is stairing you right in the face at the bottom of each page of this board :

    Respec... 8)


    FYI:
    Physicists create antimatter - http://news.com.com/2100-1001-958719.html
    Microsoft buys game developer "Rare" - http://news.com.com/2100-1040-958821.html
    First wearable PC - http://www.techtv.com/news/computing...392846,00.html

  5. #5
    Join Date
    Jul 2002
    Posts
    5,446
    Rep Power
    10

    Default Re:need a little direction

    Verm, I'll deal with you later ;D

    dfross, after you moved php4ts.dll to the windows\system directory, make sure you add the three lines to the Apache conf file:

    LoadModule php4_module c:/php/sapi/php4apache2.dll
    AddModule mod_php4.c
    AddType application/x-httpd-php .php

    Note that I have c:/php/sapi/php4apache2.dll instead of c:/php/sapi/php4apache.dll as indicated in the php instructions.

    Try this and see if it works.

    Oh, make sure you stop and start back the server after making the changes.

  6. #6
    Join Date
    Sep 2002
    Posts
    11
    Rep Power
    0

    Default Re:need a little direction

    fixed the problem guys, apparently apache version 2.x does not work properly with php 4.x on windows ME. so I had was to download the previous version of apache (version 1.3.x) and now it is working just fine.

    thanks alot for the help.

    one
    8)

  7. #7
    Join Date
    Jul 2002
    Posts
    5,446
    Rep Power
    10

    Default Re:need a little direction

    dfross, glad to know you've resolved the problem. I thought I was missing something when I encountered the same issues. If you want Apache 2.x and PHP 4.x to work, upgrade to Windows 2000 or XP pro from ME/98.

  8. #8
    Join Date
    Jul 2002
    Posts
    170
    Rep Power
    0

    Default Re:need a little direction

    ??? Why use Apache on Win2k or XP - when you have IIS at your disposal?

  9. #9
    Join Date
    Jul 2002
    Posts
    818
    Rep Power
    0

    Default Re:need a little direction

    code red anyone?

  10. #10
    Join Date
    Jul 2003
    Posts
    1
    Rep Power
    0

    Default Re:need a little direction

    basically, i have installed php using a server know as sambar on my pc. you might not choose the correct installation option for php when you were installing it. if problems persists you need to check your php.ini file and make sure every things is correct.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •