#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    6
    Rep Power
    0
    Ive just installed apache on my windows nt machine, i have allready got IIS 4.0 and Java Webserver.

    Ive called the root of the server the same as IIS i.e. localhost, this means that i can only run them when the other has been stopped.

    I have installed PHP4 and have it running with IIS but cant get the Apache web server to work with it. I have changed the conf file to point to the PHP4 directory. When i start apache a dos window appears with apache running in it. This stays open though, would this have anything to do with it.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    City, State, Country
    Posts
    12
    Rep Power
    0
    Could you tell me the exact steps you took??
    These are the steps to a successful PHP4/Apache install.

    Step1. Download & Unzip the PHP 4 source to C:PHP4
    Step2. Copy MSVCRT.DLL (it may already exist in there)
    and PHP4TS.DLL to C:WindowsSYSTEM (or C:WindowsSYSTEM32 if your on NT)
    Step3. Re-Name & Copy 'php.ini-dist' to C:Windows.
    Step4. Edit PWD-php4.reg to reflect the directory your php4 files are in. It SHOULD(if you follow all my directions EXACTLY) be like this:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
    REGEDIT4

    [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesw3svcparametersScript Map]
    ".php"="Chpphp4isapi.dll"
    [/quote]

    Step5. Goto the Apache conf Dir, should be something like...
    C:Program FilesApache GroupApacheconf
    Open httpd.conf and find section:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the realname directory are treated as applications and
    # run by the server when requested rather than as documents sent to the client.
    # The same rules about trailing "/" apply to ScriptAlias directives as to
    # Alias.
    #
    [/quote]
    Add this after that:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
    ScriptAlias /php4/ "C:/PHP4/"
    [/quote]
    Don't close httpd.conf yet!
    Find this section:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
    #
    # To enable the cache as well, edit and uncomment the following lines:
    # (no cacheing without CacheRoot)
    #
    #CacheRoot "C:/Program Files/Apache Group/Apache/proxy"
    #CacheSize 5
    #CacheGcInterval 4
    #CacheMaxExpire 24
    #CacheLastModifiedFactor 0.1
    #CacheDefaultExpire 1
    #NoCache a_domain.com another_domain.edu joes.garage_sale.com
    [/quote]
    Add this after:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
    AddType application/x-httpd-php .phtml .php .php3
    AddType application/x-httpd-php-source .phps
    Action application/x-httpd-php /php4/php.exe
    [/quote]
    Save & Close httpd.conf.

    Step5. Now, make a file which contains EXACTLY this:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    <? phpinfo() ?>
    [/code]
    Save it to the htdocs directory, or whatever your Root directory is. Name it whatever you would like, but make sure it ends in .phtml, .php, or .php3. Run Apache, and then execute this file. If you see...
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>
    <? phpinfo() ?>
    [/quote]
    It did NOT work. If you see a page with lots of stuff on it, with info about your php and MySQL and other stuff status, then it worked!

    Step6. Place Any & All php scripts in the Root directory(standard:
    C:Program FilesApache GroupApachehtdocs)
    And they will be executed. You can execute a php script from ANYWHERE in the Root directory, even sub directorys of the root dir.

    Step7. Enjoy!!!=)

    Good luck, and remember...this will only work, if you follow these instructions exactly how they are explained, and you're using Windows 9x/2k/NT.

    ^N|R

    [This message has been edited by Nobodys Real (edited August 01, 2000).]
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    6
    Rep Power
    0
    Thankyou very much

    it works

    All the best Paul

IMN logo majestic logo threadwatch logo seochat tools logo